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

Disassembly:
push 0xffffffffffffffff
push 0x45cf40
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 0x4753f0
mov dword [esp + 0x2c], esi
call fcn.0040bd40
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 0x422373
push esi
push esi
push str.Sector_error:__d__Xh_
push 0x4753f0
call fcn.0040bd40
mov dword [esp + 0x78], 0xffffffff
push esi
push esi
push str.End_checking_sector:__d__Xh_
push 0x4753f0
call fcn.0040bd40
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 0x4223cd
push esi
push esi
push str.Sector_error___AA55_:__d__Xh_
push 0x4753f0
call fcn.0040bd40
mov dword [esp + 0x7c], 0xffffffff
push esi
push esi
push str.End_checking_sector:__d__Xh_
push 0x4753f0
call fcn.0040bd40
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.00422190
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 0x4753f0
call fcn.0040bd40
mov al, byte [ebp + 4]
add esp, 0x34
test al, al
je 0x422663
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 0x422468
push str._b__Entry_error_or_truncated_image_
push 0x4753f0
call fcn.0040bd40
add esp, 8
jmp 0x422663
lea edx, [eax + ebx]
cmp edx, edi
mov byte [esp + 0x13], 0
jbe 0x422499
push str._b__Entry_error_or_truncated_image_
push 0x4753f0
call fcn.0040bd40
mov eax, edi
add esp, 8
sub eax, ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], 1
je 0x422663
mov ecx, dword [0x47559c]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x70], 1
cmp eax, 0xc
jb 0x4224ea
lea edx, [ebx + 0xc]
cmp edx, edi
ja 0x4224ea
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 0x4224cc
cmp ecx, 4
jg 0x4224e0
cmp al, 0x20
je 0x4224d8
cmp al, 0x2e
jb 0x4224ea
cmp al, 0x5a
ja 0x4224ea
inc ecx
cmp ecx, 9
jl 0x4224c0
jmp 0x4224ea
push edx
lea ecx, [esp + 0x20]
call fcn.00441b80
mov al, byte [ebp + 4]
cmp al, 5
je 0x42261c
cmp al, 0xf
je 0x42261c
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 0x422575
lea edi, [esp + 0x28]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x422530
mov dx, word [0x466a4c]
mov eax, dword [esp + 0x20]
mov word [edi], dx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422548
lea edi, [esp + 0x28]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x422556
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 0x4225a3
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x422582
mov eax, dword [str._truncated_]
mov ecx, dword [0x466a44]
mov edx, dword [0x466a48]
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 0x4225a8
mov eax, dword [str..bin]
mov edx, dword [esp + 0x18]
mov cl, byte [0x466a3c]
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 0x4753f0
call fcn.0040bd40
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.00429660
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x1c]
call fcn.004419e0
mov edi, dword [esp + 0x80]
jmp 0x422663
mov edx, dword [esp + 0x14]
push edx
push esi
push str._r_nGo_to_extended_entry:__d__d_
push 0x4753f0
call fcn.0040bd40
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.004222e0
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x1c]
call fcn.004419e0
mov eax, dword [esp + 0x14]
inc eax
add ebp, 0x10
cmp eax, 4
mov dword [esp + 0x14], eax
jl 0x4223d8
mov dword [esp + 0x70], 0xffffffff
push esi
push esi
push str.End_checking_sector:__d__Xh_
push 0x4753f0
call fcn.0040bd40
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