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

Disassembly:
push 0xffffffffffffffff
push 0x52fbe8
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.004b90b0
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 + 0x659a34]
test dword [edx], ecx
je 0x424497
movsx eax, word [ebp + 6]
movsx ecx, word [ebp + 4]
mov word [esp + 0x74], cx
mov word [esp + 0x76], ax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], 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 + 0x78], cx
sar eax, 1
add esi, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x78]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov word [esp + 0x82], si
call fcn.004b4a30
xor eax, eax
test edi, edi
je 0x4242aa
mov edx, dword [edi]
and edx, 0xff000000
mov dword [esp + 0x14], edx
mov cl, byte [esp + 0x17]
test cl, cl
je 0x4242aa
mov eax, 1
mov ecx, dword [esp + 0x10]
lea eax, [eax + ebx*2]
lea esi, [ecx + eax*4 + 4]
mov dword [esp + 0x14], esi
mov ecx, dword [esi]
test ecx, ecx
je 0x4243e7
call fcn.0043d4e0
test eax, eax
je 0x4243c0
push 3
lea edx, [esp + 0x24]
push 0x30
push edx
mov ecx, edi
call fcn.004b90b0
xor esi, esi
lea ecx, [esp + 0x4c]
mov si, word [eax + 2]
mov eax, dword [0x659a28]
push eax
push esi
push esi
call fcn.004a8200
mov ecx, dword [esp + ebx*4 + 0x2c]
mov dword [esp + 0x6c], 0
push ecx
push esi
push esi
push 0
push 0
lea ecx, [esp + 0x48]
call fcn.004b4a60
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x54]
mov ecx, dword [eax]
push edx
call fcn.0043d500
test eax, eax
je 0x42439f
movsx eax, word [esp + 0x26]
movsx ecx, word [esp + 0x24]
mov word [esp + 0x86], ax
mov al, byte [0x8fa7d6]
mov word [esp + 0x84], cx
mov ecx, dword [esp + 0x84]
test al, 1
mov dword [esp + 0x18], ecx
jne 0x42437c
mov dl, al
xor eax, eax
or dl, 1
push fcn.00402b00
mov byte [0x8fa7d6], dl
mov word [0x8fa7d8], ax
mov word [0x8fa7da], ax
call fcn.0051c6ca
add esp, 4
mov eax, dword [0x6734ac]
push 0
push 1
push esi
lea edx, [esp + 0x24]
push esi
push edx
push 0x8fa7d8
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00474b30
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.004a8ce0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + ebx*4 + 0x2c]
mov eax, dword [0x6734ac]
push edi
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esi]
push edx
push eax
call fcn.0043d5b0
test eax, eax
je 0x4243e7
mov ecx, dword [esi]
call fcn.0043d620
test eax, eax
jg 0x42444b
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 0x56c390
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, 0x673490
call fcn.004996d0
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.00414780
add esp, 0x1c
mov dword [esp + 0x80], eax
inc ebx
cmp ebx, 2
jl 0x424218
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