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

Disassembly:
mov ecx, dword [0x7da588]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x581737
add esp, 0xffffff80
mov edx, dword [esp + 0x84]
inc dword [edx + 0x28]
mov ebx, dword [edx + 0x30]
test ebx, ebx
jle 0x5811db
inc dword [edx + 0x2c]
mov ebx, dword [edx + 0x2c]
cmp ebx, 0x64
jle 0x581256
mov ebp, dword [edx + 0x28]
cmp ebp, 0x3e8
jle 0x581256
cmp ebp, 0x61a80
jg 0x581200
movsd xmm0, qword [0x658270]
jmp 0x581240
cmp ebp, 0x3d0900
jl 0x581212
movsd xmm0, qword [0x658260]
jmp 0x581240
lea esi, [ebp - 0x61a80]
cvtsi2sd xmm0, esi
movsd xmm1, qword [0x658278]
divsd xmm0, xmm1
movsd xmm1, qword [0x658268]
mulsd xmm1, xmm0
movsd xmm0, qword [0x658270]
subsd xmm0, xmm1
cvtsi2sd xmm1, ebx
cvtsi2sd xmm2, ebp
divsd xmm1, xmm2
ucomisd xmm1, xmm0
ja 0x58168d
mov ebx, dword [esp + 0x94]
test ebx, ebx
je 0x581278
test ebx, 0x200
jne 0x581278
lea eax, [0x65a1a0]
mov ecx, dword [esp + 0x8c]
jmp 0x5812ac
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.004c5b70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x94]
cmp dword [0x79af00], eax
jne 0x581364
mov edx, dword [0x79af04]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00404b80
movzx eax, byte [esp + 0xc]
test al, al
je 0x581356
lea eax, [0x5f98a0]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x58130f
movzx ecx, byte [eax + 0xf]
nop
mov edx, ecx
and ecx, 0x1f
test dl, 0x20
jne 0x581309
or ecx, 0x80
mov edx, dword [esp + 0x6c]
jmp 0x581315
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004c2840
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 8], eax
call fcn.004c4ac0
mov byte [esp + 0x98], 1
sub esp, 0xffffff80
ret
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x88]
mov esi, dword [ebp]
cmp esi, 1
jne 0x5813e2
mov esi, dword [ebp + 0x28]
cmp esi, 1
jne 0x5813d4
mov edi, dword [0x7da640]
test edi, edi
je 0x581391
call fcn.0046be80
mov dword [edi], ebp
mov eax, dword [edx]
mov dword [edi + 4], eax
mov dword [edx], ebp
mov edi, dword [ebp + 0x28]
test edi, edi
jbe 0x581684
mov dword [esp + 0x64], esi
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.005811b0
mov eax, dword [esp + 0x64]
cmp eax, 1
sete al
mov byte [esp + 0x98], al
sub esp, 0xffffff80
ret
cmp esi, 0x10
je 0x58158a
mov dword [esp], edx
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00580d00
movzx eax, byte [esp + 0x20]
test al, al
jne 0x58157a
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
cmp ecx, 2
ja 0x581517
test ecx, ecx
jne 0x5814e8
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x5815c0
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x5815c0
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x5815c0
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x5815c0
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x5815c0
mov ecx, dword [eax + 0x24]
test ecx, ecx
jne 0x5815c0
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x5815c0
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x5815c0
mov ecx, dword [eax + 0x44]
test ecx, ecx
jne 0x5815c0
mov ecx, dword [eax + 0x48]
test ecx, ecx
jne 0x5815c0
mov ecx, dword [eax + 0x4c]
test ecx, ecx
jne 0x5815c0
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.00581920
movzx eax, byte [esp + 0x10]
mov byte [esp + 0x98], al
sub esp, 0xffffff80
ret
cmp ecx, 2
jne 0x5815c0
mov ecx, dword [esp + 0x84]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.005837b0
movzx eax, byte [esp + 0x14]
jmp 0x58156f
cmp ecx, 4
je 0x58154b
cmp ecx, 8
jne 0x5815c0
mov ecx, dword [esp + 0x84]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.005819f0
movzx eax, byte [esp + 0x14]
jmp 0x58156f
mov ecx, dword [esp + 0x84]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00583d60
movzx eax, byte [esp + 0x14]
mov byte [esp + 0x98], al
sub esp, 0xffffff80
ret
movzx eax, byte [esp + 0x21]
mov byte [esp + 0x98], al
sub esp, 0xffffff80
ret
mov dword [esp], edx
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00581750
movzx eax, byte [esp + 0x14]
mov byte [esp + 0x98], al
sub esp, 0xffffff80
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0040a980
mov eax, dword [esp + 4]
lea ecx, [0x5ddba0]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
lea eax, [esp + 0x24]
mov dword [esp], eax
lea eax, [0x60a51e]
mov dword [esp + 4], eax
mov dword [esp + 8], 6
lea eax, [0x617492]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x27
call fcn.00453a60
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cadf0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
lea eax, [0x5e56e0]
mov dword [esp], eax
lea ecx, [esp + 0x78]
mov dword [esp + 4], ecx
call fcn.0040a8c0
mov eax, dword [esp + 8]
lea ecx, [0x5e56e0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004391b0
xor eax, eax
mov ecx, eax
call fcn.0046bef0
nop
lea eax, [esp + 0x44]
mov dword [esp], eax
lea eax, [0x60a51e]
mov dword [esp + 4], eax
mov dword [esp + 8], 6
lea eax, [0x6166aa]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x24
call fcn.00453a60
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.004cadf0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
lea eax, [0x5e56e0]
mov dword [esp], eax
lea ecx, [esp + 0x78]
mov dword [esp + 4], ecx
call fcn.0040a8c0
mov eax, dword [esp + 8]
lea ecx, [0x5e56e0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004391b0
nop
call fcn.0046aa70
jmp fcn.005811b0