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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x583e13
sub esp, 0x7c
mov eax, dword [esp + 0x80]
inc dword [eax + 0x28]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jle 0x5838ad
inc dword [eax + 0x2c]
mov ecx, dword [eax + 0x2c]
cmp ecx, 0x64
jle 0x583928
mov edx, dword [eax + 0x28]
cmp edx, 0x3e8
jle 0x583928
cmp edx, 0x61a80
jg 0x5838d2
movsd xmm0, qword [0x6612a4]
jmp 0x583912
cmp edx, 0x3d0900
jl 0x5838e4
movsd xmm0, qword [0x66122c]
jmp 0x583912
lea ebx, [edx - 0x61a80]
cvtsi2sd xmm0, ebx
movsd xmm1, qword [0x661314]
divsd xmm0, xmm1
movsd xmm1, qword [0x66129c]
mulsd xmm1, xmm0
movsd xmm0, qword [0x6612a4]
subsd xmm0, xmm1
cvtsi2sd xmm1, ecx
cvtsi2sd xmm2, edx
divsd xmm1, xmm2
ucomisd xmm1, xmm0
ja 0x583d69
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x58394a
test ecx, 0x200
jne 0x58394a
lea edx, [0x663100]
mov ebx, dword [esp + 0x88]
jmp 0x583982
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.004be9f0
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 [0x7a1734]
cmp dword [0x7a1730], edx
jne 0x583a7f
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 0x583a71
nop
movzx ecx, byte [0x7a1de0]
test cl, cl
je 0x5839f6
lea ecx, [0x5fc6a0]
mov dword [0x7a1de4], ecx
mov edx, dword [0x7c78f0]
test edx, edx
jne 0x5839e2
mov eax, dword [esp + 0x84]
mov dword [0x7a1de8], eax
jmp 0x583a03
lea edi, [0x7a1de8]
mov eax, dword [esp + 0x84]
call fcn.00463730
jmp 0x583a03
mov eax, dword [esp + 0x84]
lea ecx, [0x5fc6a0]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x583a2a
nop
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x583a30
or edx, 0x80
jmp 0x583a30
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.004bc180
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.004bd9d0
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 0x583c6f
cmp ebx, 0x10
je 0x583c39
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.005833d0
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 0x583c2e
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx]
cmp edx, 2
ja 0x583bcb
test edx, edx
jne 0x583b9c
mov edx, dword [ecx + 4]
test edx, edx
jne 0x583ca5
mov edx, dword [ecx + 0xc]
test edx, edx
jne 0x583ca5
mov edx, dword [ecx + 0x14]
test edx, edx
jne 0x583ca5
mov edx, dword [ecx + 0x1c]
test edx, edx
jne 0x583ca5
mov edx, dword [ecx + 0x20]
test edx, edx
jne 0x583ca5
mov edx, dword [ecx + 0x24]
test edx, edx
jne 0x583ca5
mov edx, dword [ecx + 0x34]
test edx, edx
jne 0x583ca5
mov edx, dword [ecx + 0x3c]
test edx, edx
jne 0x583ca5
mov edx, dword [ecx + 0x44]
test edx, edx
jne 0x583ca5
mov edx, dword [ecx + 0x48]
test edx, edx
jne 0x583ca5
mov edx, dword [ecx + 0x4c]
test edx, edx
jne 0x583ca5
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.00584080
movzx eax, byte [esp + 0x10]
mov byte [esp + 0x94], al
add esp, 0x7c
ret
cmp edx, 2
jne 0x583ca5
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.005860a0
movzx eax, byte [esp + 0x14]
jmp 0x583c23
cmp edx, 4
je 0x583bff
cmp edx, 8
jne 0x583ca5
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.00584150
movzx eax, byte [esp + 0x14]
jmp 0x583c23
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.00586660
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.00583eb0
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.00583e20
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.00409570
mov eax, dword [esp + 4]
lea ecx, [0x5e14a0]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
lea eax, [esp + 0x24]
mov dword [esp], eax
lea eax, [0x60bed4]
mov dword [esp + 4], eax
mov dword [esp + 8], 6
lea eax, [0x61971f]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x27
call fcn.0044dc10
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.004c4b50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
lea eax, [0x5e8640]
mov dword [esp], eax
lea ecx, [esp + 0x74]
mov dword [esp + 4], ecx
call fcn.004094a0
mov eax, dword [esp + 8]
lea ecx, [0x5e8640]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435720
nop
lea eax, [esp + 0x44]
mov dword [esp], eax
lea eax, [0x60bed4]
mov dword [esp + 4], eax
mov dword [esp + 8], 6
lea eax, [0x618899]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x24
call fcn.0044dc10
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.004c4b50
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, [0x5e8640]
mov dword [esp], eax
lea ecx, [esp + 0x74]
mov dword [esp + 4], ecx
call fcn.004094a0
mov eax, dword [esp + 8]
lea ecx, [0x5e8640]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435720
nop
call fcn.00462320
jmp fcn.00583880