4.46 patched

.text:00523C5A B2 01                mov     dl, 1
.text:00523C5C B0 01                mov     al, 1
.text:00523C5E E8 25 CF FE FF       call    sub_510B88
.text:00523C63 84 C0                test    al, al
.text:00523C65 74 5D                jz      short loc_523CC4
.text:00523C67 80 3D DC 46 53 00 00 cmp     IsAPIMode, 0
.text:00523C6E 74 59                jz      short loc_523CC9
.text:00523C70 E8 93 1C FF FF       call    AnybodyHomeLL
.text:00523C75 84 C0                test    al, al
.text:00523C77 75 50                jnz     short loc_523CC9
.text:00523C79 90                   nop
.text:00523C7A 6A 01                push    1
.text:00523C7C 68 DC 56 52 00       push    offset _str__ATA_protocol___0.Text
.text:00523C81 8D 4D C8             lea     ecx, [ebp+var_38]


4.46 orig

.text:00523C5A B2 01                mov     dl, 1
.text:00523C5C B0 01                mov     al, 1
.text:00523C5E E8 25 CF FE FF       call    sub_510B88
.text:00523C63 84 C0                test    al, al
.text:00523C65 0F 84 67 19 00 00    jz      loc_5255D2
.text:00523C6B E8 98 1C FF FF       call    AnybodyHomeLL                   ; >>> Error 001
.text:00523C70 34 01                xor     al, 1
.text:00523C72 22 05 DC 46 53 00    and     al, IsAPIMode
.text:00523C78 74 4F                jz      short loc_523CC9
.text:00523C7A 6A 01                push    1
.text:00523C7C 68 DC 56 52 00       push    offset _str__ATA_protocol___0.Text
.text:00523C81 8D 4D C8             lea     ecx, [ebp+var_38]


4.30 orig

.text:510EA6BE B2 01                                mov     dl, 1
.text:510EA6C0 B0 01                                mov     al, 1
.text:510EA6C2 E8 A5 8F 01 00                       call    sub_5110366C
.text:510EA6C7 84 C0                                test    al, al
.text:510EA6C9 0F 84 32 17 00 00                    jz      loc_510EBE01    ; <--- al = 1
.text:510EA6CF 80 3D B0 02 11 51 00                 cmp     IsAPIMode, 0    ; var = 0
.text:510EA6D6 74 58                                jz      short loc_510EA730
.text:510EA6D8 E8 C7 D1 01 00                       call    AnybodyHomeLL   ; >> Error 001
.text:510EA6DD 84 C0                                test    al, al
.text:510EA6DF 75 4F                                jnz     short loc_510EA730
.text:510EA6E1 6A 01                                push    1
.text:510EA6E3 68 F8 BE 0E 51                       push    offset _str_Port_.Text
.text:510EA6E8 8D 4D CC                             lea     ecx, [ebp+var_34]

