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

Disassembly:
sub esp, 0x58
mov eax, dword [0x442344]
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.00408344
push 0
push 4
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
call fcn.0040811e
push esi
call fcn.00408146
movzx eax, ax
push esi
mov dword [esp + 0x40], eax
call fcn.00408146
movzx eax, ax
push esi
mov dword [esp + 0x30], eax
call fcn.004081a6
mov ebp, eax
add esp, 0x1c
mov eax, edx
mov dword [esp + 0x1c], eax
cmp eax, 0x7fffffff
jb 0x40572e
ja 0x40571c
cmp ebp, 0xffffffff
jbe 0x40572e
push 0x1b
push 4
push edi
call fcn.00406e11
add esp, 0xc
jmp 0x4059e9
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 0x405762
ja 0x40575c
cmp ecx, dword [esp + 0x18]
jbe 0x405762
push 0
push 0x15
jmp 0x405720
cmp eax, dword [esp + 0x78]
jb 0x4057ae
ja 0x405770
cmp ebp, dword [esp + 0x74]
jb 0x4057ae
push esi
call fcn.0040854f
add eax, dword [esp + 0x78]
pop ecx
adc edx, dword [esp + 0x78]
cmp dword [esp + 0x24], edx
ja 0x4057aa
jb 0x40578d
cmp dword [esp + 0x20], eax
ja 0x4057aa
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.00408524
add esp, 0xc
xor bl, bl
jmp 0x4057eb
mov eax, dword [esp + 0x1c]
push 0
push eax
push ebp
push ebx
call fcn.00407489
add esp, 0x10
test eax, eax
jns 0x4057cc
push ebx
push edi
call fcn.00406dc8
pop ecx
jmp 0x4059e8
push edi
lea eax, [esp + 0x30]
push eax
push 0
push 0x38
push ebx
call fcn.004082ee
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4059e9
mov bl, 1
push 4
push 0x435638
push 0
push 4
push esi
call fcn.0040811e
add esp, 0xc
push eax
call fcn.0041736d
add esp, 0xc
test eax, eax
je 0x405815
push 0
push 0x15
jmp 0x4059d5
push esi
call fcn.004081a6
and dword [esp + 0x80], 4
pop ecx
je 0x40583e
add eax, ebp
adc edx, dword [esp + 0x1c]
add eax, 0xc
adc edx, 0
cmp eax, dword [esp + 0x18]
jne 0x40580c
cmp edx, dword [esp + 0x10]
jne 0x40580c
push 0
push 4
push esi
call fcn.0040811e
push esi
call fcn.00408170
push esi
mov dword [esp + 0x24], eax
call fcn.00408170
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 0x405894
cmp dword [esp + 0x14], eax
jne 0x40580c
cmp edx, ecx
jne 0x40580c
test edx, edx
jne 0x4059d1
cmp dword [esp + 0x14], edx
jne 0x4059d1
push esi
call fcn.004081a6
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edx
call fcn.004081a6
pop ecx
pop ecx
cmp dword [esp + 0x14], eax
jne 0x4059d1
cmp dword [esp + 0x24], edx
jne 0x4059d1
push esi
call fcn.004081a6
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edx
call fcn.004081a6
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], edx
call fcn.0040836d
add esp, 0xc
test al, al
jne 0x405902
push 0
push 0x14
jmp 0x4059d5
test bl, bl
je 0x40590d
push esi
call fcn.004080fd
pop ecx
mov esi, dword [esp + 0x28]
cmp esi, 0x7fffffff
ja 0x40571c
mov ebx, dword [esp + 0x18]
jb 0x40592c
cmp ebx, 0xffffffff
ja 0x40571c
mov eax, ebx
mov ecx, esi
add eax, dword [esp + 0x20]
adc ecx, dword [esp + 0x10]
cmp ecx, esi
jb 0x40571c
ja 0x40594a
cmp eax, ebx
jb 0x40571c
add ebp, dword [esp + 0x74]
mov edx, dword [esp + 0x1c]
adc edx, dword [esp + 0x78]
cmp ecx, edx
jb 0x405968
ja 0x40575c
cmp eax, ebp
ja 0x40575c
cmp dword [esp + 0x7c], 0
je 0x40597f
cmp eax, ebp
jne 0x40575c
cmp ecx, edx
jne 0x40575c
mov ebp, dword [esp + 0x20]
push 0
push 0x2e
push dword [esp + 0x18]
push ebp
call fcn.00415940
mov ecx, dword [esp + 0x24]
cmp ecx, edx
jb 0x4059a9
ja 0x40575c
cmp dword [esp + 0x14], eax
ja 0x40575c
push edi
push ecx
push dword [esp + 0x1c]
call fcn.004086a6
add esp, 0xc
test eax, eax
je 0x4059e9
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 0x4059eb
push 0
push 1
push edi
call fcn.00406e11
add esp, 0xc
test bl, bl
je 0x4059e9
push esi
call fcn.004080fd
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415048
add esp, 0x58
ret