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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x632660
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x68b740]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
cmp dword [edi], 0
jl 0x589b67
cmp dword [edi + 0x18], 0
je 0x589b67
mov esi, dword [ebp + 8]
sub esi, dword [edi + 0xc]
mov eax, dword [ebp + 0xc]
sub eax, dword [edi + 0x10]
test esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
jl 0x589b67
cmp esi, dword [edi + 4]
jge 0x589b67
test eax, eax
jl 0x589b67
cmp eax, dword [edi + 8]
jge 0x589b67
mov eax, dword [0x8e48f4]
mov ecx, dword [eax + 0x8c44]
imul ecx, ecx, 0x113b8
add ecx, dword [0x12c5540]
call fcn.00588900
mov ecx, dword [0x8e48f4]
mov ecx, dword [ecx + 0x8c44]
imul ecx, ecx, 0x113b8
add ecx, dword [0x12c5540]
mov ebx, eax
sub ebx, dword [edi + 0xc]
call fcn.00588960
mov edi, eax
mov eax, dword [esp + 0x20]
sub edi, dword [eax + 0x10]
xor ecx, ecx
cmp ebx, ecx
jl 0x589b67
cmp ebx, dword [eax + 4]
jge 0x589b67
cmp edi, ecx
jl 0x589b67
cmp edi, dword [eax + 8]
jge 0x589b67
xor eax, eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
cmp ebx, esi
mov dword [esp + 0x88], ecx
jne 0x5897b0
mov esi, dword [esp + 0x14]
xor edx, edx
cmp edi, esi
setg dl
cmp esi, edi
lea edx, [edx + edx - 1]
mov dword [esp + 0x28], edx
je 0x5898ae
mov dword [esp + 0x34], ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x3c], esi
call fcn.00589360
add esi, dword [esp + 0x28]
cmp esi, edi
jne 0x589791
jmp 0x5898aa
mov eax, dword [esp + 0x14]
mov ecx, ebx
sub ecx, esi
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
sub edi, eax
cmp ebx, esi
mov dword [esp + 0x28], edi
fstp dword [esp + 0x1c]
mov dword [esp + 0x24], eax
fild dword [esp + 0x28]
fld dword [esp + 0x1c]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x2c]
jle 0x5897ec
fld dword [0x64f4f4]
jmp 0x5897f2
fld dword [0x64f4f0]
fstp dword [esp + 0x1c]
fdiv dword [esp + 0x1c]
call fcn.00612f80
xor ebx, ebx
test eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ebx
jle 0x5898aa
fild dword [esp + 0x18]
fld qword [0x63d690]
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x54]
fiadd dword [esp + 0x14]
fstp qword [esp + 0x44]
fild dword [esp + 0x28]
push ecx
fmul dword [esp + 0x20]
fst qword [esp + 0x50]
fadd qword [esp + 0x58]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp]
call fcn.005886c0
call fcn.00612f80
fld dword [esp + 0x30]
fmul qword [esp + 0x50]
mov edi, eax
fadd qword [esp + 0x48]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp]
call fcn.005886c0
add esp, 4
call fcn.00612f80
cmp edi, esi
jne 0x589881
cmp eax, dword [esp + 0x24]
je 0x58989d
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x70]
mov esi, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
call fcn.00589360
add ebx, 1
cmp ebx, dword [esp + 0x34]
mov dword [esp + 0x28], ebx
jl 0x58982b
mov eax, dword [esp + 0x74]
xor esi, esi
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x70]
test ecx, ecx
mov dword [esp + 0x1c], esi
je 0x589b5e
sub eax, ecx
sar eax, 3
cmp esi, eax
jae 0x589b5e
push esi
lea ecx, [esp + 0x70]
call fcn.00588870
mov edi, dword [eax]
push esi
lea ecx, [esp + 0x70]
call fcn.00588870
mov ebx, dword [eax + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + edi*4]
cmp dword [edx + ebx*4], 0
je 0x589ace
mov eax, edi
sub eax, dword [esp + 0x18]
cdq
mov ecx, eax
xor ecx, edx
mov eax, ebx
sub eax, dword [esp + 0x14]
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
mov edi, ecx
jg 0x58991e
mov edi, eax
cmp edi, dword [esp + 0x28]
jle 0x589ac2
xor eax, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x18]
mov ebx, edi
neg ebx
lea esi, [ebx + eax]
mov ecx, eax
lea eax, [edi + ecx]
cmp esi, eax
mov byte [esp + 0x88], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x24], eax
jg 0x5899a5
mov eax, dword [esp + 0x14]
lea edx, [ebx + eax]
add eax, edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
nop
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x40], esi
call fcn.00589360
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x48], esi
call fcn.00589360
add esi, 1
cmp esi, dword [esp + 0x24]
jle 0x589970
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
add ebx, ecx
add edi, ecx
cmp ebx, edi
jg 0x5899eb
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], eax
lea esp, [esp]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x54], ebx
call fcn.00589360
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x5c], ebx
call fcn.00589360
add ebx, 1
cmp ebx, edi
jle 0x5899c0
mov edi, dword [esp + 0x60]
cmp edi, dword [esp + 0x64]
mov esi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jbe 0x5899fd
call esi
lea edx, [esp + 0x5c]
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x64]
cmp dword [esp + 0x60], ebx
mov dword [esp + 0x30], edi
jbe 0x589a15
call esi
cmp edi, ebx
je 0x589a97
cmp edi, dword [esp + 0x64]
jb 0x589a21
call esi
cmp dword [edi], 0
jl 0x589a87
cmp edi, dword [esp + 0x64]
jb 0x589a2e
call esi
mov eax, dword [edi]
mov ebx, dword [esp + 0x20]
cmp eax, dword [ebx + 4]
jge 0x589a87
cmp edi, dword [esp + 0x64]
jb 0x589a41
call esi
cmp dword [edi + 4], 0
jl 0x589a87
lea ecx, [esp + 0x2c]
call fcn.0053ae10
mov ecx, dword [eax + 4]
cmp ecx, dword [ebx + 8]
jge 0x589a87
lea ecx, [esp + 0x2c]
call fcn.0053ae10
mov edx, dword [eax]
mov eax, dword [ebx + 0x14]
lea ecx, [esp + 0x2c]
lea esi, [eax + edx*4]
call fcn.0053ae10
mov ecx, dword [eax + 4]
mov edx, dword [esi]
cmp dword [edx + ecx*4], 0
je 0x589b08
mov esi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x64]
jb 0x589a8f
call esi
add edi, 8
jmp 0x589a05
mov eax, dword [esp + 0x60]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x88], 0
je 0x589ab2
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x74]
add esi, 1
jmp 0x5898b4
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0x10]
add ecx, edi
mov dword [edx], ecx
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x14]
add eax, ebx
mov dword [ecx], eax
lea ecx, [esp + 0x6c]
call fcn.00546490
mov eax, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x2c]
call fcn.0053ae10
mov edx, dword [ebx + 0xc]
add edx, dword [eax]
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x2c]
mov dword [eax], edx
call fcn.0053ae10
mov ecx, dword [eax + 4]
add ecx, dword [ebx + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
lea ecx, [esp + 0x5c]
call fcn.00546490
lea ecx, [esp + 0x6c]
call fcn.00546490
mov eax, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x6c]
call fcn.00546490
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10