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

Disassembly:
push 0xffffffffffffffff
push 0x545988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
push 3
lea eax, [esp + 0x20]
push 0x30
push eax
mov ecx, edi
call fcn.004cdf00
mov edx, dword [esp + 0x74]
mov ecx, eax
mov ebp, dword [esp + 0x84]
xor eax, eax
mov ax, word [ecx]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x30], eax
xor ebx, ebx
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx*4 + 0x67a8e4]
test dword [edx], ecx
je 0x424529
movsx eax, word [ebp + 6]
movsx ecx, word [ebp + 4]
mov word [esp + 0x78], cx
mov word [esp + 0x7a], ax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x94]
cdq
sub eax, edx
movsx edx, word [ebp]
mov ecx, eax
mov eax, dword [esp + 0x90]
movsx esi, word [ebp + 2]
sar ecx, 1
add ecx, edx
cdq
sub eax, edx
mov word [esp + 0x84], cx
sar eax, 1
add esi, eax
lea eax, [esp + 0x74]
lea ecx, [esp + 0x84]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov word [esp + 0x8e], si
call fcn.004c92f0
xor eax, eax
test edi, edi
je 0x424330
mov edx, dword [edi]
and edx, 0xff000000
mov dword [esp + 0x74], edx
mov cl, byte [esp + 0x77]
test cl, cl
je 0x424330
mov eax, 1
mov ecx, dword [esp + 0x10]
lea eax, [eax + ebx*2]
lea esi, [ecx + eax*4 + 4]
mov dword [esp + 0x74], esi
mov ecx, dword [esi]
test ecx, ecx
je 0x424479
call fcn.00441070
test eax, eax
je 0x424452
push 3
lea edx, [esp + 0x24]
push 0x30
push edx
mov ecx, edi
call fcn.004cdf00
xor esi, esi
mov si, word [eax + 2]
test esi, esi
jle 0x42444e
mov eax, dword [0x67a8d8]
cmp eax, 0x18
jl 0x424383
mov eax, 0x18
push eax
push esi
push esi
lea ecx, [esp + 0x58]
call fcn.004bb710
mov eax, dword [esp + ebx*4 + 0x2c]
lea ecx, [esp + 0x34]
push eax
push esi
push esi
push 0
push 0
mov dword [esp + 0x80], 0
call fcn.004c9320
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x50]
push eax
push ecx
mov ecx, dword [edx]
call fcn.00441090
test eax, eax
je 0x424431
movsx eax, word [esp + 0x26]
movsx ecx, word [esp + 0x24]
mov word [esp + 0x14], cx
mov word [esp + 0x16], ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov al, byte [0x9660fa]
test al, 1
jne 0x42440e
mov dl, al
xor eax, eax
or dl, 1
push fcn.00458ab0
mov byte [0x9660fa], dl
mov word [0x9660fc], ax
mov word [0x9660fe], ax
call fcn.0053228e
add esp, 4
mov eax, dword [0x69437c]
push 0
push 1
push esi
lea ecx, [esp + 0x24]
push esi
push ecx
push 0x9660fc
lea edx, [esp + 0x64]
push eax
push edx
call fcn.0047d2c0
add esp, 0x20
movsx eax, word [esp + 0x24]
add eax, esi
lea ecx, [esp + 0x4c]
mov word [esp + 0x24], ax
mov dword [esp + 0x6c], 0xffffffff
call fcn.004bc350
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + ebx*4 + 0x2c]
mov eax, dword [0x69437c]
push edi
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esi]
push edx
push eax
call fcn.00441140
test eax, eax
je 0x424479
mov ecx, dword [esi]
call fcn.004411b0
test eax, eax
jg 0x4244dd
mov ecx, dword [esp + ebx*4 + 0x2c]
xor eax, eax
mov dword [esp + 0x3d], eax
push ecx
mov dword [esp + 0x45], eax
lea edx, [esp + 0x40]
mov dword [esp + 0x49], eax
push 0x5852c8
mov word [esp + 0x51], ax
push edx
mov byte [esp + 0x48], 0
mov byte [esp + 0x57], al
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push 0
push 0
push 0xffffffffffffffff
push eax
push edi
push ecx
mov ecx, 0x694360
call fcn.004a7f80
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x7c]
not ecx
dec ecx
mov eax, ecx
inc eax
mov edx, dword [esp + 0x9c]
lea ecx, [ebx + edx]
mov edx, dword [esp + 0x1c]
imul edx, eax
mov eax, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x98]
add edx, ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x8c]
push ecx
push edx
push eax
push ebp
call fcn.00413870
add esp, 0x1c
mov dword [esp + 0x80], eax
inc ebx
cmp ebx, 2
jl 0x424298
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x80]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x2c