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

Disassembly:
sub esp, 0x70
mov eax, dword [0x462044]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
push ebx
mov ebx, dword [esp + 0x88]
push ebp
mov ebp, dword [esp + 0x90]
push esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
cmp dword [esi + 0x20], eax
jne 0x420528
push 0x451590
push 0x451580
call fcn.004046cc
mov dword [esi + 0x20], eax
test eax, eax
jne 0x420528
mov eax, 0x8007000e
jmp 0x4206b6
push edi
lea eax, [esp + 0x64]
push eax
call fcn.0040469f
mov eax, dword [esi + 0x38]
xor edx, edx
mov edi, dword [esi + 0x44]
inc edx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x6c], edx
cmp dword [esi + 0x40], eax
je 0x4205cd
cmp edi, edx
jb 0x4205cd
mov al, byte [esi + 0x30]
cmp al, 0x28
jne 0x420562
or eax, 0xffffffff
jmp 0x420573
movzx eax, al
mov ecx, eax
and eax, edx
shr ecx, 1
or eax, 2
add ecx, 0xb
shl eax, cl
push eax
call fcn.00420852
mov ecx, eax
mov eax, edx
mov edx, ecx
shr edx, 4
add edx, ecx
cmp dword [esp + 0x14], eax
jne 0x4205cd
cmp edx, ecx
jb 0x4205cd
mov eax, dword [esp + 0x70]
add eax, ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
xor ecx, ecx
add edx, 0x10000
push ecx
add eax, edx
push eax
push dword [esi + 0x4c]
push dword [esi + 0x48]
call fcn.0043d910
xor ecx, ecx
cmp ecx, edx
jb 0x4205c1
ja 0x4205bf
cmp edi, eax
jbe 0x4205c1
mov edi, eax
push 1
test edi, edi
pop eax
cmove edi, eax
mov dword [esp + 0x6c], edi
push dword [esp + 0x18]
lea ecx, [esp + 0x50]
call fcn.0041c322
push dword [esp + 0x1c]
lea ecx, [esp + 0x38]
call fcn.0041c358
push ebp
lea ecx, [esp + 0x2c]
call fcn.0041c30e
mov eax, dword [esi + 0x40]
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebp, ebp
lea eax, [esp + 0x28]
xorps xmm0, xmm0
cmove eax, ecx
movlpd qword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x58]
push eax
push dword [esi + 0x34]
lea eax, [esp + 0x48]
push ebx
push eax
lea eax, [esp + 0x80]
push eax
movzx eax, byte [esi + 0x30]
push eax
push dword [esi + 0x20]
call fcn.0040479c
xor ebp, ebp
mov edx, eax
inc ebp
cmp dword [esp + 0x6c], ebp
jbe 0x42064c
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x40], ecx
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], ecx
test eax, eax
jne 0x4206b5
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4206b5
mov eax, dword [esp + 0x54]
test eax, eax
je 0x420677
cmp edx, 8
je 0x4206b5
test edx, edx
jne 0x4206af
xor eax, eax
cmp dword [esi + 0x34], eax
je 0x4206af
mov eax, dword [esp + 0x90]
test eax, eax
je 0x420698
cmp dword [eax], edi
jne 0x420696
cmp dword [eax + 4], ecx
je 0x420698
mov edx, ebp
test ebx, ebx
je 0x4206af
mov eax, dword [ebx]
cmp eax, dword [esp + 0x44]
jne 0x4206ad
mov eax, dword [ebx + 4]
cmp eax, dword [esp + 0x48]
je 0x4206af
mov edx, ebp
push edx
call fcn.0041c2aa
pop edi
mov ecx, dword [esp + 0x78]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043d1f0
add esp, 0x70
ret 0x18