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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58a003
sub esp, 0x7c
mov eax, dword [esp + 0x80]
inc dword [eax + 0x28]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jle 0x589a9d
inc dword [eax + 0x2c]
mov ecx, dword [eax + 0x2c]
cmp ecx, 0x64
jle 0x589b18
mov edx, dword [eax + 0x28]
cmp edx, 0x3e8
jle 0x589b18
cmp edx, 0x61a80
jg 0x589ac2
movsd xmm0, qword [0x674178]
jmp 0x589b02
cmp edx, 0x3d0900
jl 0x589ad4
movsd xmm0, qword [0x674100]
jmp 0x589b02
lea ebx, [edx - 0x61a80]
cvtsi2sd xmm0, ebx
movsd xmm1, qword [0x6741e8]
divsd xmm0, xmm1
movsd xmm1, qword [0x674170]
mulsd xmm1, xmm0
movsd xmm0, qword [0x674178]
subsd xmm0, xmm1
cvtsi2sd xmm1, ecx
cvtsi2sd xmm2, edx
divsd xmm1, xmm2
ucomisd xmm1, xmm0
ja 0x589f59
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x589b3a
test ecx, 0x200
jne 0x589b3a
lea edx, [0x676140]
mov ebx, dword [esp + 0x88]
jmp 0x589b72
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov edx, dword [esp + 0x8c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004c53c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, eax
mov ebx, ecx
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x90]
mov ebp, dword [0x7bcaa4]
cmp dword [0x7bcaa0], edx
jne 0x589c6f
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.00403850
movzx eax, byte [esp + 0xc]
test al, al
je 0x589c61
nop
movzx ecx, byte [0x7bd150]
test cl, cl
je 0x589be6
lea ecx, [0x60c400]
mov dword [0x7bd154], ecx
mov edx, dword [0x7e34c0]
test edx, edx
jne 0x589bd2
mov eax, dword [esp + 0x84]
mov dword [0x7bd158], eax
jmp 0x589bf3
lea edi, [0x7bd158]
mov eax, dword [esp + 0x84]
call fcn.00463860
jmp 0x589bf3
mov eax, dword [esp + 0x84]
lea ecx, [0x60c400]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x589c1a
nop
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x589c20
or edx, 0x80
jmp 0x589c20
xor edx, edx
xor ecx, ecx
xor eax, eax
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c2b50
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 8], eax
call fcn.004c43a0
mov byte [esp + 0x94], 1
add esp, 0x7c
ret
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x84]
mov ebx, dword [edx]
cmp ebx, 1
je 0x589e5f
cmp ebx, 0x10
je 0x589e29
mov dword [esp], eax
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
call fcn.005895c0
mov eax, dword [esp + 0x14]
movzx ecx, byte [esp + 0x20]
movzx edx, byte [esp + 0x21]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
test cl, cl
jne 0x589e1e
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx]
cmp edx, 2
ja 0x589dbb
test edx, edx
jne 0x589d8c
mov edx, dword [ecx + 4]
test edx, edx
jne 0x589e95
mov edx, dword [ecx + 0xc]
test edx, edx
jne 0x589e95
mov edx, dword [ecx + 0x14]
test edx, edx
jne 0x589e95
mov edx, dword [ecx + 0x1c]
test edx, edx
jne 0x589e95
mov edx, dword [ecx + 0x20]
test edx, edx
jne 0x589e95
mov edx, dword [ecx + 0x24]
test edx, edx
jne 0x589e95
mov edx, dword [ecx + 0x34]
test edx, edx
jne 0x589e95
mov edx, dword [ecx + 0x3c]
test edx, edx
jne 0x589e95
mov edx, dword [ecx + 0x44]
test edx, edx
jne 0x589e95
mov edx, dword [ecx + 0x48]
test edx, edx
jne 0x589e95
mov edx, dword [ecx + 0x4c]
test edx, edx
jne 0x589e95
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.0058a270
movzx eax, byte [esp + 0x10]
mov byte [esp + 0x94], al
add esp, 0x7c
ret
cmp edx, 2
jne 0x589e95
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.0058c290
movzx eax, byte [esp + 0x14]
jmp 0x589e13
cmp edx, 4
je 0x589def
cmp edx, 8
jne 0x589e95
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.0058a340
movzx eax, byte [esp + 0x14]
jmp 0x589e13
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.0058c850
movzx eax, byte [esp + 0x14]
mov byte [esp + 0x94], al
add esp, 0x7c
ret
mov byte [esp + 0x94], dl
add esp, 0x7c
ret
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0058a0a0
movzx eax, byte [esp + 0x14]
mov byte [esp + 0x94], al
add esp, 0x7c
ret
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0058a010
movzx eax, byte [esp + 0x14]
mov byte [esp + 0x94], al
add esp, 0x7c
ret
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov eax, dword [ecx]
mov dword [esp], eax
call fcn.004095e0
mov eax, dword [esp + 4]
lea ecx, [0x5f02c0]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
lea eax, [esp + 0x24]
mov dword [esp], eax
lea eax, [0x61c51f]
mov dword [esp + 4], eax
mov dword [esp + 8], 6
lea eax, [0x62a787]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x27
call fcn.0044dd40
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x6c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cb520
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
lea eax, [0x5f7a40]
mov dword [esp], eax
lea ecx, [esp + 0x74]
mov dword [esp + 4], ecx
call fcn.004094a0
mov eax, dword [esp + 8]
lea ecx, [0x5f7a40]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435790
nop
lea eax, [esp + 0x44]
mov dword [esp], eax
lea eax, [0x61c51f]
mov dword [esp + 4], eax
mov dword [esp + 8], 6
lea eax, [0x6295bd]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x24
call fcn.0044dd40
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004cb520
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
lea eax, [0x5f7a40]
mov dword [esp], eax
lea ecx, [esp + 0x74]
mov dword [esp + 4], ecx
call fcn.004094a0
mov eax, dword [esp + 8]
lea ecx, [0x5f7a40]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435790
nop
call fcn.00462450
jmp fcn.00589a70