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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
cmp dword [rsp + 0xe0], 0
je 0x1401958ea
mov rax, qword [rsp + 0xe8]
mov ecx, dword [rax]
call fcn.1400dd350
movsx eax, al
test eax, eax
je 0x1401958ef
jmp 0x140195fc1
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 0
xorps xmm0, xmm0
movsd qword [rsp + 0x60], xmm0
mov r8, qword [rsp + 0xe8]
mov edx, 0x13
mov rcx, qword [rsp + 0xd0]
call fcn.1401895a0
mov rcx, qword [rsp + 0xd0]
cmp eax, dword [rcx + 0x280]
jne 0x140195a7e
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 4
jl 0x140195a7e
cmp dword [rsp + 0x74], 5
jle 0x14019595d
jmp 0x140195a7e
mov edx, 2
mov rcx, qword [rsp + 0xd0]
call fcn.14018b9a0
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx]
mov qword [rsp + 0xb0], rcx
mov edx, eax
mov rcx, qword [rsp + 0xd0]
mov rax, qword [rsp + 0xb0]
call qword [rax + 0x198]
mov dword [rsp + 0x90], eax
mov rcx, qword [rsp + 0xd0]
call fcn.14018ba10
movsd qword [rsp + 0xa0], xmm0
mov rax, qword [rsp + 0xd0]
movsd xmm0, qword [rsp + 0xa0]
comisd xmm0, xmmword [rax + 0x268]
jb 0x1401959dc
mov dword [rsp + 0x68], 0xa
jmp 0x1401959e4
mov dword [rsp + 0x68], 0
mov edx, 5
mov rcx, qword [rsp + 0xd0]
call fcn.14018b9a0
sub eax, dword [rsp + 0x68]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
dec eax
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x14030cac0]
movsd xmm1, qword [rsp + 0xa0]
subsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0xd0]
movsd xmm0, qword [rax + 0x268]
comisd xmm0, xmmword [rsp + 0x60]
jbe 0x140195a7e
mov eax, dword [rsp + 0x90]
sub eax, 0xa
mov dword [rsp + 0x48], eax
cvtsi2sd xmm0, dword [rsp + 0x48]
mulsd xmm0, qword [0x14030cac0]
movsd xmm1, qword [rsp + 0x60]
addsd xmm1, xmm0
movaps xmm0, xmm1
mov rax, qword [rsp + 0xd0]
comisd xmm0, xmmword [rax + 0x268]
jb 0x140195a7e
mov byte [rsp + 0x20], 1
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 3
je 0x140195aab
cmp dword [rsp + 0x50], 4
je 0x140195db1
cmp dword [rsp + 0x50], 5
je 0x140195cde
jmp 0x140195f9d
mov r8, qword [rsp + 0xe8]
mov edx, 3
mov rcx, qword [rsp + 0xd0]
call fcn.1401895a0
mov dword [rsp + 0x28], eax
mov r8, qword [rsp + 0xe8]
mov edx, 0x11
mov rcx, qword [rsp + 0xd0]
call fcn.1401895a0
mov dword [rsp + 0x4c], eax
mov edx, 6
mov rcx, qword [rsp + 0xd0]
call fcn.14018b9a0
mov dword [rsp + 0x34], eax
mov edx, 2
mov rcx, qword [rsp + 0xd0]
call fcn.14018b9a0
test eax, eax
jne 0x140195b45
cmp dword [rsp + 0x28], 0x34
jl 0x140195b43
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0xd0]
call qword [rax + 0x110]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
jmp 0x140195b89
cmp dword [rsp + 0x28], 1
jne 0x140195b89
mov eax, dword [rsp + 0x4c]
dec eax
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx]
mov qword [rsp + 0xb8], rcx
mov edx, eax
mov rcx, qword [rsp + 0xd0]
mov rax, qword [rsp + 0xb8]
call qword [rax + 0x110]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0xe0]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 1
jl 0x140195bae
cmp dword [rsp + 0x28], 0x34
jle 0x140195cab
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0xd0]
call qword [rax + 0x110]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x84], eax
mov edx, 7
mov rcx, qword [rsp + 0xd0]
call fcn.14018b9a0
mov ecx, dword [rsp + 0x84]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x8c], eax
mov rcx, qword [rsp + 0xd0]
call fcn.14018a4e0
mov ecx, dword [rsp + 0x8c]
sub ecx, eax
mov eax, ecx
cdq
mov ecx, 7
idiv ecx
mov eax, edx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140195c3e
mov eax, dword [rsp + 0x30]
add eax, 7
mov dword [rsp + 0x30], eax
mov eax, 6
sub eax, dword [rsp + 0x30]
mov dword [rsp + 0x88], eax
mov rcx, qword [rsp + 0xd0]
call fcn.14018a900
movzx eax, al
mov ecx, dword [rsp + 0x88]
cmp ecx, eax
jl 0x140195c74
mov eax, dword [rsp + 0x3c]
sub eax, 7
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x30]
inc eax
mov r8d, eax
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0xd0]
call fcn.14018e5c0
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x70]
lea eax, [rax + rcx - 1]
cdq
idiv dword [rsp + 0x70]
mov eax, edx
inc eax
mov dword [rsp + 0x28], eax
mov r8d, dword [rsp + 0x28]
mov edx, 3
mov rcx, qword [rsp + 0xd0]
call fcn.14018d550
mov r8d, dword [rsp + 0x4c]
mov edx, 0x11
mov rcx, qword [rsp + 0xd0]
call fcn.14018d550
jmp 0x140195fc1
movsx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140195d15
mov r9, qword [rsp + 0xe8]
mov r8d, dword [rsp + 0xe0]
mov edx, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.14018c6e0
jmp 0x140195fc1
cvtsi2sd xmm0, dword [rsp + 0x48]
mulsd xmm0, qword [0x14030cac0]
movsd qword [rsp + 0xa8], xmm0
mov rcx, qword [rsp + 0xd0]
call fcn.14018ba10
subsd xmm0, qword [rsp + 0x60]
cvtsi2sd xmm1, dword [rsp + 0xe0]
mulsd xmm1, qword [0x14030cac0]
addsd xmm0, xmm1
movsd xmm1, qword [rsp + 0xa8]
call fcn.1400d4030
movsd qword [rsp + 0x78], xmm0
xorps xmm0, xmm0
comisd xmm0, xmmword [rsp + 0x78]
jbe 0x140195d88
movsd xmm0, qword [rsp + 0x78]
addsd xmm0, qword [rsp + 0xa8]
movsd qword [rsp + 0x78], xmm0
movsd xmm0, qword [rsp + 0x60]
addsd xmm0, qword [rsp + 0x78]
mov r8, qword [rsp + 0xe8]
movaps xmm1, xmm0
mov rcx, qword [rsp + 0xd0]
call fcn.14018d860
jmp 0x140195fc1
movsx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140195de8
mov r9, qword [rsp + 0xe8]
mov r8d, dword [rsp + 0xe0]
mov edx, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.14018c6e0
jmp 0x140195fc1
mov edx, 7
mov rcx, qword [rsp + 0xd0]
call fcn.14018b9a0
mov dword [rsp + 0x94], eax
mov rcx, qword [rsp + 0xd0]
call fcn.14018a4e0
mov ecx, dword [rsp + 0x94]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x140195e2f
mov eax, dword [rsp + 0x38]
add eax, 7
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
inc eax
cdq
mov ecx, 7
idiv ecx
mov eax, edx
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x140195e65
mov eax, dword [rsp + 0x2c]
add eax, 7
mov dword [rsp + 0x2c], eax
mov eax, 7
sub eax, dword [rsp + 0x2c]
mov dword [rsp + 0x80], eax
mov rcx, qword [rsp + 0xd0]
call fcn.14018a900
movzx eax, al
mov ecx, dword [rsp + 0x80]
cmp ecx, eax
jge 0x140195e9f
mov eax, 8
sub eax, dword [rsp + 0x2c]
mov dword [rsp + 0x44], eax
jmp 0x140195eac
mov eax, 1
sub eax, dword [rsp + 0x2c]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
add eax, dword [rsp + 0x38]
cdq
mov ecx, 7
idiv ecx
mov eax, edx
mov dword [rsp + 0x9c], eax
mov eax, dword [rsp + 0x40]
add eax, 7
sub eax, dword [rsp + 0x9c]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x98]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
imul eax, dword [rsp + 0xe0], 7
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
sub eax, dword [rsp + 0x44]
cdq
idiv dword [rsp + 0x6c]
mov eax, edx
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jge 0x140195f33
mov eax, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 1
jge 0x140195f52
mov dword [rsp + 0x24], 1
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x24], eax
jle 0x140195f64
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
dec eax
cvtsi2sd xmm0, eax
mulsd xmm0, qword [0x14030cac0]
movsd xmm1, qword [rsp + 0x60]
addsd xmm1, xmm0
movaps xmm0, xmm1
mov r8, qword [rsp + 0xe8]
movaps xmm1, xmm0
mov rcx, qword [rsp + 0xd0]
call fcn.14018d860
jmp 0x140195fc1
mov r9, qword [rsp + 0xe8]
mov r8d, dword [rsp + 0xe0]
mov edx, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.14018c6e0
add rsp, 0xc8
ret