Function at 0x422170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45cd70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
mov esi, dword [esp + 0x78]
push edi
push esi
push esi
push str.Checking_sector:__d__Xh_
push 0x4753e0
mov dword [esp + 0x2c], esi
call fcn.0040bd00
add esp, 0x10
xor ecx, ecx
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x78]
lea edx, [esi + 1]
imul edx, eax
cmp edx, edi
jb 0x422203
push esi
push esi
push str.Sector_error:__d__Xh_
push 0x4753e0
call fcn.0040bd00
mov dword [esp + 0x78], 0xffffffff
push esi
push esi
push str.End_checking_sector:__d__Xh_
push 0x4753e0
call fcn.0040bd00
add esp, 0x20
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 0x14
mov edx, dword [esp + 0x74]
push ebp
mov ebp, esi
imul ebp, eax
add ebp, edx
cmp word [ebp + 0x1fe], 0xaa55
je 0x42225d
push esi
push esi
push str.Sector_error___AA55_:__d__Xh_
push 0x4753e0
call fcn.0040bd00
mov dword [esp + 0x7c], 0xffffffff
push esi
push esi
push str.End_checking_sector:__d__Xh_
push 0x4753e0
call fcn.0040bd00
add esp, 0x20
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 0x14
add ebp, 0x1be
mov dword [esp + 0x10], ecx
push ebx
xor ecx, ecx
mov cl, byte [ebp + 4]
push ecx
call fcn.00422020
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
movzx edx, byte [ebp + 7]
push edx
movzx edx, byte [ebp + 6]
push edx
movzx edx, byte [ebp + 5]
push edx
movzx edx, byte [ebp + 2]
push eax
mov dword [esp + 0x38], eax
movzx eax, cl
movzx ecx, byte [ebp + 3]
push eax
movzx eax, byte [ebp + 1]
push ecx
movzx ecx, byte [ebp]
push edx
push eax
push ecx
push str._02X_t_02X_t_02X_t_02X_t_02X___8s_t_02X_t_02X_t_02X_t_08X_t_08X
push 0x4753e0
call fcn.0040bd00
mov al, byte [ebp + 4]
add esp, 0x34
test al, al
je 0x4224f3
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x88]
mov eax, dword [ebp + 0xc]
add ebx, esi
imul eax, ecx
imul ebx, ecx
cmp ebx, edi
mov dword [esp + 0x18], eax
jb 0x4222f8
push str._b__Entry_error_or_truncated_image_
push 0x4753e0
call fcn.0040bd00
add esp, 8
jmp 0x4224f3
lea edx, [eax + ebx]
cmp edx, edi
mov byte [esp + 0x13], 0
jbe 0x422329
push str._b__Entry_error_or_truncated_image_
push 0x4753e0
call fcn.0040bd00
mov eax, edi
add esp, 8
sub eax, ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], 1
je 0x4224f3
mov ecx, dword [0x47558c]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x70], 1
cmp eax, 0xc
jb 0x42237a
lea edx, [ebx + 0xc]
cmp edx, edi
ja 0x42237a
mov eax, dword [esp + 0x7c]
lea edx, [ebx + eax + 3]
xor ecx, ecx
mov edi, edi
mov al, byte [ecx + edx]
test al, al
jne 0x42235c
cmp ecx, 4
jg 0x422370
cmp al, 0x20
je 0x422368
cmp al, 0x2e
jb 0x42237a
cmp al, 0x5a
ja 0x42237a
inc ecx
cmp ecx, 9
jl 0x422350
jmp 0x42237a
push edx
lea ecx, [esp + 0x20]
call fcn.004419c0
mov al, byte [ebp + 4]
cmp al, 5
je 0x4224ac
cmp al, 0xf
je 0x4224ac
mov edx, dword [esp + 0x14]
movzx ecx, al
push ecx
push edx
push esi
lea eax, [esp + 0x34]
push str._d__d__02X
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x34]
mov al, byte [ecx]
add esp, 0x14
test al, al
je 0x422405
lea edi, [esp + 0x28]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4223c0
mov dx, word [0x466a04]
mov eax, dword [esp + 0x20]
mov word [edi], dx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4223d8
lea edi, [esp + 0x28]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4223e6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x84]
mov al, byte [esp + 0x13]
test al, al
je 0x422433
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x422412
mov eax, dword [str._truncated_]
mov ecx, dword [0x4669fc]
mov edx, dword [0x466a00]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x422438
mov eax, dword [str..bin]
mov edx, dword [esp + 0x18]
mov cl, byte [0x4669f4]
push edx
mov dword [edi], eax
push ebx
lea eax, [esp + 0x30]
push eax
mov byte [edi + 4], cl
mov edi, dword [esp + 0x20]
push edi
push esi
push str._tAdding_entry:__d__d___s___X__X_
push 0x4753e0
call fcn.0040bd00
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
add esp, 0x1c
push ecx
push ebx
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x8c]
push edi
call fcn.00429500
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x1c]
call fcn.00441820
mov edi, dword [esp + 0x80]
jmp 0x4224f3
mov edx, dword [esp + 0x14]
push edx
push esi
push str._r_nGo_to_extended_entry:__d__d_
push 0x4753e0
call fcn.0040bd00
mov eax, dword [esp + 0x98]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x8c]
add esp, 0x10
push eax
mov eax, dword [esp + 0x7c]
add ecx, esi
push ecx
push edi
push edx
push eax
call fcn.00422170
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x1c]
call fcn.00441820
mov eax, dword [esp + 0x14]
inc eax
add ebp, 0x10
cmp eax, 4
mov dword [esp + 0x14], eax
jl 0x422268
mov dword [esp + 0x70], 0xffffffff
push esi
push esi
push str.End_checking_sector:__d__Xh_
push 0x4753e0
call fcn.0040bd00
mov ecx, dword [esp + 0x78]
add esp, 0x10
pop ebx
pop ebp
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret 0x14