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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x589ce3
sub esp, 0x7c
mov eax, dword [esp + 0x80]
inc dword [eax + 0x28]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jle 0x58977d
inc dword [eax + 0x2c]
mov ecx, dword [eax + 0x2c]
cmp ecx, 0x64
jle 0x5897f8
mov edx, dword [eax + 0x28]
cmp edx, 0x3e8
jle 0x5897f8
cmp edx, 0x61a80
jg 0x5897a2
movsd xmm0, qword [0x673c54]
jmp 0x5897e2
cmp edx, 0x3d0900
jl 0x5897b4
movsd xmm0, qword [0x673bdc]
jmp 0x5897e2
lea ebx, [edx - 0x61a80]
cvtsi2sd xmm0, ebx
movsd xmm1, qword [0x673cc4]
divsd xmm0, xmm1
movsd xmm1, qword [0x673c4c]
mulsd xmm1, xmm0
movsd xmm0, qword [0x673c54]
subsd xmm0, xmm1
cvtsi2sd xmm1, ecx
cvtsi2sd xmm2, edx
divsd xmm1, xmm2
ucomisd xmm1, xmm0
ja 0x589c39
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x58981a
test ecx, 0x200
jne 0x58981a
lea edx, [0x675c20]
mov ebx, dword [esp + 0x88]
jmp 0x589852
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.004c53d0
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 [0x7bbd64]
cmp dword [0x7bbd60], edx
jne 0x58994f
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 0x589941
nop
movzx ecx, byte [0x7bc410]
test cl, cl
je 0x5898c6
lea ecx, [0x60c3c0]
mov dword [0x7bc414], ecx
mov edx, dword [0x7e2780]
test edx, edx
jne 0x5898b2
mov eax, dword [esp + 0x84]
mov dword [0x7bc418], eax
jmp 0x5898d3
lea edi, [0x7bc418]
mov eax, dword [esp + 0x84]
call fcn.00463860
jmp 0x5898d3
mov eax, dword [esp + 0x84]
lea ecx, [0x60c3c0]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x5898fa
nop
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x589900
or edx, 0x80
jmp 0x589900
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.004c2b60
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.004c43b0
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 0x589b3f
cmp ebx, 0x10
je 0x589b09
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.005892a0
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 0x589afe
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx]
cmp edx, 2
ja 0x589a9b
test edx, edx
jne 0x589a6c
mov edx, dword [ecx + 4]
test edx, edx
jne 0x589b75
mov edx, dword [ecx + 0xc]
test edx, edx
jne 0x589b75
mov edx, dword [ecx + 0x14]
test edx, edx
jne 0x589b75
mov edx, dword [ecx + 0x1c]
test edx, edx
jne 0x589b75
mov edx, dword [ecx + 0x20]
test edx, edx
jne 0x589b75
mov edx, dword [ecx + 0x24]
test edx, edx
jne 0x589b75
mov edx, dword [ecx + 0x34]
test edx, edx
jne 0x589b75
mov edx, dword [ecx + 0x3c]
test edx, edx
jne 0x589b75
mov edx, dword [ecx + 0x44]
test edx, edx
jne 0x589b75
mov edx, dword [ecx + 0x48]
test edx, edx
jne 0x589b75
mov edx, dword [ecx + 0x4c]
test edx, edx
jne 0x589b75
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.00589f50
movzx eax, byte [esp + 0x10]
mov byte [esp + 0x94], al
add esp, 0x7c
ret
cmp edx, 2
jne 0x589b75
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.0058bf70
movzx eax, byte [esp + 0x14]
jmp 0x589af3
cmp edx, 4
je 0x589acf
cmp edx, 8
jne 0x589b75
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.0058a020
movzx eax, byte [esp + 0x14]
jmp 0x589af3
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.0058c530
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.00589d80
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.00589cf0
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, [0x5f0280]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
lea eax, [esp + 0x24]
mov dword [esp], eax
lea eax, [0x61c4c4]
mov dword [esp + 4], eax
mov dword [esp + 8], 6
lea eax, [0x62a6fa]
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.004cb530
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
lea eax, [0x5f7a00]
mov dword [esp], eax
lea ecx, [esp + 0x74]
mov dword [esp + 4], ecx
call fcn.004094a0
mov eax, dword [esp + 8]
lea ecx, [0x5f7a00]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435790
nop
lea eax, [esp + 0x44]
mov dword [esp], eax
lea eax, [0x61c4c4]
mov dword [esp + 4], eax
mov dword [esp + 8], 6
lea eax, [0x629509]
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.004cb530
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, [0x5f7a00]
mov dword [esp], eax
lea ecx, [esp + 0x74]
mov dword [esp + 4], ecx
call fcn.004094a0
mov eax, dword [esp + 8]
lea ecx, [0x5f7a00]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435790
nop
call fcn.00462450
jmp fcn.00589750