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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x585b26
add esp, 0xffffff80
mov edx, dword [esp + 0x84]
mov ebx, dword [edx + 4]
mov eax, dword [esp + 0x88]
cmp eax, ebx
jg 0x585a71
xor ecx, ecx
jmp 0x58579b
mov ebx, dword [esp + 0x24]
lea ecx, [ebx + 1]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
cmp eax, ecx
jle 0x58593c
mov ebx, dword [edx + 4]
mov ebp, dword [edx]
cmp ecx, ebx
jae 0x585a68
mov dword [esp + 0x24], ecx
lea eax, [ecx + ecx*4]
lea esi, [ebp + eax*4]
lea edi, [esp + 0x6c]
call fcn.0045e58e
mov eax, dword [edx + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x24]
add ecx, eax
mov dword [esp + 0x3c], ecx
add ecx, 1
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x38], ecx
mov edx, dword [edx + 0x14]
mov ebp, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
lea eax, [0x5dcee0]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
call fcn.0040f4e0
mov eax, dword [esp + 0x24]
mov ecx, eax
sar eax, 0x1f
mov edx, dword [esp + 0x40]
add edx, ecx
mov edx, dword [esp + 0x38]
adc edx, eax
mov eax, dword [esp + 0x3c]
add eax, 1
adc edx, 0
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
cmp dword [eax], ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
cmp dword [eax + 4], edx
sete al
and eax, ebp
test al, al
jne 0x58590b
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ebx
mov ebp, dword [esp + 0x84]
mov esi, dword [ebp + 0x18]
lea edi, [0x5dd1e0]
mov dword [esp], edi
mov dword [esp + 4], esi
lea esi, [esp + 0x4c]
mov dword [esp + 8], esi
call fcn.0040c7b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
cmp dword [eax], ecx
sete cl
mov edx, dword [esp + 0x34]
cmp dword [eax + 4], edx
sete al
and ecx, eax
test cl, cl
jne 0x5858c2
jmp 0x585786
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x18]
lea edx, [0x5dd1e0]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 8], ecx
call fcn.0040d250
jmp 0x585786
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
lea ebp, [0x5dcee0]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.0040ff50
jmp 0x58584c
mov ecx, dword [edx + 4]
mov ebx, dword [edx]
mov ebp, dword [edx + 8]
cmp eax, ecx
ja 0x585a63
lea edx, [0x5fc3c0]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
lea edx, [eax + eax*4]
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl edx, 2
sar ebp, 0x1f
and edx, ebp
add edx, ebx
mov dword [esp + 0xc], edx
sub ecx, eax
mov dword [esp + 0x10], ecx
call fcn.004107c0
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x88]
sub ecx, edx
jmp 0x58599f
mov ebp, dword [esp + 0x28]
lea ecx, [ebp + 1]
mov eax, ebx
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
mov esi, dword [eax]
cmp ebx, ecx
jle 0x5859f2
jbe 0x585a5a
mov dword [esp + 0x28], ecx
lea ebx, [ecx + ecx*4]
lea edi, [esi + ebx*4]
mov ebx, dword [0x7a0970]
test ebx, ebx
jne 0x5859d0
mov ebx, eax
xor eax, eax
call fcn.0045e0ab
jmp 0x585996
lea eax, [0x5fc3c0]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.004108a0
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
jmp 0x585996
sub ebx, edx
cmp ebp, ebx
jb 0x585a51
mov dword [eax + 4], ebx
mov ecx, dword [eax + 0xc]
mov ebx, edx
add edx, ecx
mov ebp, dword [eax + 0x10]
mov esi, ebx
sar ebx, 0x1f
add esi, ecx
adc ebx, ebp
cmp ebp, ebx
xchg esi, ebx
sete bl
xchg esi, ebx
cmp ecx, edx
seta cl
cmp ebp, ebx
xchg ebp, ebx
seta bl
xchg ebp, ebx
and esi, ecx
or ebp, esi
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x585a39
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
sub esp, 0xffffff80
ret
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65c288]
mov dword [esp + 4], eax
call fcn.00431a30
mov ecx, ebx
mov edx, ebp
call fcn.0045ded0
mov eax, ecx
mov ecx, ebx
call fcn.0045de90
call fcn.0045def0
mov eax, ecx
mov ecx, ebx
call fcn.0045de90
mov dword [esp + 0x30], ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp], eax
call fcn.00409020
mov eax, dword [esp + 4]
lea ecx, [0x5da940]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00409020
mov eax, dword [esp + 4]
lea ecx, [0x5da940]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
lea eax, [0x61b782]
mov dword [esp], eax
mov dword [esp + 4], 0x28
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004affe0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409130
mov eax, dword [esp + 8]
lea ecx, [0x5db180]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00431a30
nop
call fcn.0045c8b0
jmp fcn.00585750