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

Disassembly:
sub esp, 0x2cc
push ebx
mov ebx, dword [esp + 0x2d8]
push ebp
push esi
mov esi, dword [esp + 0x2e8]
mov ebp, ecx
mov eax, dword [ebx + 8]
neg esi
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
sbb esi, esi
mov dword [esp + 0x1c], eax
add esi, 6
mov eax, dword [esp + 0x2f0]
push edi
mov edi, dword [esp + 0x2f0]
sub eax, edi
cdq
idiv esi
mov dword [esp + 0x24], ebp
mov esi, eax
cmp esi, 0x103
jbe 0x459673
push ebx
lea edx, [esp + 0x44]
lea ecx, [esp + 0x1c4]
call fcn.004592f0
add esp, 4
test eax, eax
je 0x459673
mov ecx, dword [esp + 0x2e0]
mov eax, dword [esp + 0x1c8]
cmp eax, dword [ecx + 8]
jne 0x459673
mov eax, dword [esp + 0x1cc]
cmp eax, dword [ecx + 0xc]
jne 0x459673
mov eax, dword [esp + 0x1c0]
cmp eax, dword [ebp + 8]
jne 0x459673
mov eax, dword [esp + 0x1c4]
cmp eax, dword [ebp + 0xc]
jne 0x459673
mov ebp, dword [esp + 0x2e8]
test ebp, ebp
jne 0x459680
cmp dword [esp + 0x1d0], ebp
je 0x45969e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2cc
ret
cmp dword [esp + 0x1d0], 0
jbe 0x45969e
lea eax, [esp + 0x1d4]
push eax
mov eax, dword [ebp]
call eax
add esp, 4
test eax, eax
je 0x459673
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x168]
mov dword [esp + 0x10], eax
mov dword [esp + 0xe4], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x124], 0
mov dword [esp + 0x144], 0
call fcn.004580f0
cmp dword [esp + 0x2ec], 0
je 0x45970e
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jmp 0x45974a
push esi
lea eax, [edi + esi*4]
add eax, esi
lea edx, [esp + 0xcc]
push eax
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push dword [esp + 0x68]
lea ecx, [esp + 0xc0]
push dword [esp + 0x68]
push dword [esp + 0x68]
push dword [esp + 0x68]
call fcn.004578a0
add esp, 0x24
test eax, eax
je 0x4598a0
push esi
push edi
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push dword [esp + 0x78]
lea edx, [esp + 0x100]
push dword [esp + 0x78]
lea ecx, [esp + 0x19c]
push dword [esp + 0x78]
push dword [esp + 0x78]
call fcn.004578a0
add esp, 0x24
test eax, eax
je 0x4598a0
push esi
add edi, esi
lea eax, [esp + 0x14]
push edi
push ebp
push eax
push ebx
push dword [esp + 0x88]
lea edx, [esp + 0x120]
push dword [esp + 0x88]
lea ecx, [esp + 0x1bc]
push dword [esp + 0x88]
push dword [esp + 0x88]
call fcn.004578a0
add esp, 0x24
test eax, eax
je 0x4598a0
push esi
add edi, esi
lea eax, [esp + 0x14]
push edi
push ebp
push eax
push ebx
push dword [esp + 0x98]
lea edx, [esp + 0x140]
push dword [esp + 0x98]
lea ecx, [esp + 0x164]
push dword [esp + 0x98]
push dword [esp + 0x98]
call fcn.004578a0
add esp, 0x24
test eax, eax
je 0x4598a0
mov eax, dword [esp + 0x1c]
add edi, esi
cmp dword [esp + 0x10], eax
jne 0x4598a0
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x14], eax
jne 0x4598a0
mov eax, dword [esp + 0x24]
xorps xmm0, xmm0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2ec]
mov dword [esp + 0x34], edi
add edi, esi
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], esi
test eax, eax
jne 0x459876
push 1
lea eax, [esp + 0xac]
push eax
push eax
push dword [esp + 0x50]
mov edx, eax
lea ecx, [esp + 0x50]
push dword [esp + 0x50]
call fcn.004587f0
add esp, 0x14
mov eax, ecx
mov edx, dword [esp + 0x2e0]
lea ecx, [esp + 0x168]
push esi
push edi
push ecx
lea ecx, [esp + 0x154]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00458a40
add esp, 0x14
mov edi, eax
jmp 0x4598a2
xor edi, edi
lea esi, [esp + 0xe4]
mov ebx, 4
nop
mov eax, dword [esi]
test eax, eax
je 0x4598cf
push eax
mov eax, dword [ebp + 8]
push ebp
call eax
xor ecx, ecx
mov dword [esi], 0
add esp, 8
test eax, eax
cmovne ecx, edi
mov edi, ecx
add esi, 0x20
sub ebx, 1
jne 0x4598b0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2cc
ret