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

Disassembly:
sub esp, 0x58
mov eax, dword [0x43f344]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
mov esi, dword [esp + 0x6c]
push edi
mov edi, dword [esp + 0x80]
push esi
call fcn.00408346
push 0
push 4
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
call fcn.00408120
push esi
call fcn.00408148
movzx eax, ax
push esi
mov dword [esp + 0x40], eax
call fcn.00408148
movzx eax, ax
push esi
mov dword [esp + 0x30], eax
call fcn.004081a8
mov ebp, eax
add esp, 0x1c
mov eax, edx
mov dword [esp + 0x1c], eax
cmp eax, 0x7fffffff
jb 0x405730
ja 0x40571e
cmp ebp, 0xffffffff
jbe 0x405730
push 0x1b
push 4
push edi
call fcn.00406e13
add esp, 0xc
jmp 0x4059eb
mov ecx, dword [esp + 0x74]
add dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x78]
adc dword [esp + 0x10], ecx
mov ecx, ebp
add ecx, 0x38
mov dword [esp + 0x20], ecx
adc edx, 0
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x10]
jb 0x405764
ja 0x40575e
cmp ecx, dword [esp + 0x18]
jbe 0x405764
push 0
push 0x15
jmp 0x405722
cmp eax, dword [esp + 0x78]
jb 0x4057b0
ja 0x405772
cmp ebp, dword [esp + 0x74]
jb 0x4057b0
push esi
call fcn.00408551
add eax, dword [esp + 0x78]
pop ecx
adc edx, dword [esp + 0x78]
cmp dword [esp + 0x24], edx
ja 0x4057ac
jb 0x40578f
cmp dword [esp + 0x20], eax
ja 0x4057ac
mov eax, dword [esp + 0x1c]
mov ecx, ebp
sub ecx, dword [esp + 0x74]
sbb eax, dword [esp + 0x78]
push eax
push ecx
push esi
call fcn.00408526
add esp, 0xc
xor bl, bl
jmp 0x4057ed
mov eax, dword [esp + 0x1c]
push 0
push eax
push ebp
push ebx
call fcn.0040748b
add esp, 0x10
test eax, eax
jns 0x4057ce
push ebx
push edi
call fcn.00406dca
pop ecx
jmp 0x4059ea
push edi
lea eax, [esp + 0x30]
push eax
push 0
push 0x38
push ebx
call fcn.004082f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4059eb
mov bl, 1
push 4
push 0x432628
push 0
push 4
push esi
call fcn.00408120
add esp, 0xc
push eax
call fcn.0041737d
add esp, 0xc
test eax, eax
je 0x405817
push 0
push 0x15
jmp 0x4059d7
push esi
call fcn.004081a8
and dword [esp + 0x80], 4
pop ecx
je 0x405840
add eax, ebp
adc edx, dword [esp + 0x1c]
add eax, 0xc
adc edx, 0
cmp eax, dword [esp + 0x18]
jne 0x40580e
cmp edx, dword [esp + 0x10]
jne 0x40580e
push 0
push 4
push esi
call fcn.00408120
push esi
call fcn.00408172
push esi
mov dword [esp + 0x24], eax
call fcn.00408172
mov edx, dword [esp + 0x3c]
add esp, 0x14
mov ecx, dword [esp + 0x14]
cmp edx, 0xffff
cmove edx, dword [esp + 0x10]
cmp ecx, 0xffff
cmove ecx, eax
cmp dword [esp + 0x7c], 0
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
je 0x405896
cmp dword [esp + 0x14], eax
jne 0x40580e
cmp edx, ecx
jne 0x40580e
test edx, edx
jne 0x4059d3
cmp dword [esp + 0x14], edx
jne 0x4059d3
push esi
call fcn.004081a8
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edx
call fcn.004081a8
pop ecx
pop ecx
cmp dword [esp + 0x14], eax
jne 0x4059d3
cmp dword [esp + 0x24], edx
jne 0x4059d3
push esi
call fcn.004081a8
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edx
call fcn.004081a8
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], edx
call fcn.0040836f
add esp, 0xc
test al, al
jne 0x405904
push 0
push 0x14
jmp 0x4059d7
test bl, bl
je 0x40590f
push esi
call fcn.004080ff
pop ecx
mov esi, dword [esp + 0x28]
cmp esi, 0x7fffffff
ja 0x40571e
mov ebx, dword [esp + 0x18]
jb 0x40592e
cmp ebx, 0xffffffff
ja 0x40571e
mov eax, ebx
mov ecx, esi
add eax, dword [esp + 0x20]
adc ecx, dword [esp + 0x10]
cmp ecx, esi
jb 0x40571e
ja 0x40594c
cmp eax, ebx
jb 0x40571e
add ebp, dword [esp + 0x74]
mov edx, dword [esp + 0x1c]
adc edx, dword [esp + 0x78]
cmp ecx, edx
jb 0x40596a
ja 0x40575e
cmp eax, ebp
ja 0x40575e
cmp dword [esp + 0x7c], 0
je 0x405981
cmp eax, ebp
jne 0x40575e
cmp ecx, edx
jne 0x40575e
mov ebp, dword [esp + 0x20]
push 0
push 0x2e
push dword [esp + 0x18]
push ebp
call fcn.00415950
mov ecx, dword [esp + 0x24]
cmp ecx, edx
jb 0x4059ab
ja 0x40575e
cmp dword [esp + 0x14], eax
ja 0x40575e
push edi
push ecx
push dword [esp + 0x1c]
call fcn.004086a8
add esp, 0xc
test eax, eax
je 0x4059eb
mov edx, dword [esp + 0x10]
mov byte [eax + 0x2c], 1
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], esi
jmp 0x4059ed
push 0
push 1
push edi
call fcn.00406e13
add esp, 0xc
test bl, bl
je 0x4059eb
push esi
call fcn.004080ff
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415050
add esp, 0x58
ret