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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x340
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
movaps xmmword [rax - 0xa8], xmm13
movaps xmmword [rax - 0xb8], xmm14
movaps xmmword [rax - 0xc8], xmm15
mov rax, qword [0x18010e6c0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rcx
mov qword [rbp - 8], rcx
xor r13d, r13d
xorps xmm11, xmm11
cmp dword [rcx + 0x78], r13d
jge 0x18003108d
mov dword [rbp - 0x60], 0xffffffff
mov qword [rbp - 0x5c], r13
mov dword [rbp - 0x54], r13d
mov qword [rbp - 0x50], r13
mov dword [rbp - 0x68], 0x80000000
lea rdx, [rbp - 0x68]
test byte [rcx + 4], 2
mov dword [rbp - 0x64], 0x1b00d9
je 0x18003107c
mov dword [rbp - 0x64], 0x20002
add rcx, 0x58
call fcn.1800351c0
mov eax, dword [rdi + 0x58]
dec eax
mov dword [rdi + 0x78], eax
mov qword [rdi + 8], r13
mov qword [rdi + 0x30], r13
mov qword [rdi + 0x38], r13
mov qword [rdi + 0x40], r13
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1800310ab
call fcn.180021f30
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x1800310b9
call fcn.180021f30
mov qword [rdi + 0x20], r13
mov qword [rdi + 0x28], r13
mov qword [rbp], r13
mov r12, r13
mov qword [rsp + 0x70], r13
mov qword [rbp + 8], r13
mov qword [rbp - 0x30], r13
mov rcx, r13
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x28], rcx
mov r15d, dword [rdi + 0x68]
mov dword [rsp + 0x60], r15d
mov eax, 8
test r15d, r15d
jle 0x180031123
mov ebx, r15d
cmp r15d, eax
cmovl ebx, eax
test ebx, ebx
jle 0x180031123
movsxd rax, ebx
imul rcx, rax, 0x110
call fcn.180021f10
mov r12, rax
mov qword [rsp + 0x70], rax
mov qword [rbp + 8], rax
mov dword [rbp + 4], ebx
mov eax, 8
mov dword [rbp], r15d
mov r14d, dword [rdi + 0x48]
mov dword [rsp + 0x64], r14d
mov rsi, r13
test r14d, r14d
jle 0x180031165
mov ebx, r14d
cmp r14d, 8
cmovl ebx, eax
test ebx, ebx
jle 0x180031165
movsxd rcx, ebx
shl rcx, 5
call fcn.180021f10
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x2c], ebx
mov rsi, rax
mov r15d, dword [rsp + 0x60]
mov dword [rbp - 0x30], r14d
imul eax, r15d, 0x110
movsxd r8, eax
xor edx, edx
mov rcx, r12
call fcn.1800797f0
mov eax, r14d
shl eax, 5
movsxd r8, eax
xor edx, edx
mov rcx, rsi
call fcn.1800797f0
xor r14d, r14d
mov r13d, r14d
cmp dword [rdi + 0x68], r14d
jle 0x1800312ba
lea rsi, [r12 + 0xe4]
nop dword [rax + rax]
mov r15, qword [rdi + 0x70]
mov dword [rsi - 4], 0xffffffff
xor r8d, r8d
cmp dword [rdi + 0x48], r8d
jle 0x1800312b3
mov edx, 0xffffffff
xor r9d, r9d
mov eax, edx
cmp edx, 0xffffffff
jne 0x1800311ff
mov rax, qword [rdi + 0x50]
mov rcx, qword [r9 + rax]
cmp qword [r14 + r15 + 0x80], rcx
jne 0x1800311f0
mov dword [rsi - 4], r8d
mov edx, r8d
inc r8d
add r9, 8
mov eax, edx
cmp r8d, dword [rdi + 0x48]
jl 0x1800311d0
cmp eax, 0xffffffff
je 0x1800312b3
mov edx, dword [r14 + r15 + 0x10]
mov rcx, qword [r14 + r15]
call fcn.18003aca0
mov r8d, eax
mov rdx, qword [r14 + r15]
lea rcx, [rsi - 0xe4]
call fcn.180035dc0
test eax, eax
je 0x1800312b3
movsxd r8, dword [rsi - 4]
shl r8, 5
mov r9, qword [rbp - 0x80]
add r8, r9
mov rax, qword [r14 + r15 + 0x38]
lea rdx, [0x1800f745c]
test rax, rax
cmovne rdx, rax
mov qword [rsi - 0xc], rdx
cmp word [rdx], 0
je 0x18003127c
nop dword [rax]
movzx eax, word [rdx + 2]
test ax, ax
je 0x18003127c
mov ecx, eax
cmp dword [rsi], eax
cmovge ecx, dword [rsi]
mov dword [rsi], ecx
add rdx, 4
cmp word [rdx], 0
jne 0x180031260
inc dword [r8]
mov ecx, dword [rsi]
cmp dword [r8 + 4], ecx
cmovge ecx, dword [r8 + 4]
mov dword [r8 + 4], ecx
inc r13d
add rsi, 0x110
add r14, 0x88
cmp r13d, dword [rdi + 0x68]
jl 0x1800311b0
mov r15d, dword [rsp + 0x60]
xor r14d, r14d
jmp 0x1800312be
xor bl, bl
jmp 0x180032348
mov r9, qword [rbp - 0x80]
mov r12d, r14d
mov dword [rsp + 0x68], r14d
test r15d, r15d
jle 0x18003159c
mov r14, qword [rsp + 0x70]
add r14, 0xe8
mov esi, r15d
mov qword [rsp + 0x78], rsi
nop dword [rax]
nop word [rax + rax]
movsxd r15, dword [r14 - 8]
shl r15, 5
add r15, r9
mov ebx, dword [r14 - 4]
add ebx, 0x20
sar ebx, 5
mov ecx, dword [r14 + 0xc]
cmp ebx, ecx
jle 0x180031336
test ecx, ecx
je 0x18003131c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x180031321
mov eax, 8
lea rdi, [r14 + 8]
mov edx, ebx
cmp eax, ebx
cmovg edx, eax
mov rcx, rdi
call fcn.18002c870
jmp 0x18003133a
lea rdi, [r14 + 8]
mov dword [rdi], ebx
movsxd r8, ebx
shl r8, 2
xor edx, edx
mov rcx, qword [r14 + 0x10]
call fcn.1800797f0
cmp dword [r15 + 0x10], 0
jne 0x1800313a1
mov ebx, dword [r15 + 4]
add ebx, 0x20
sar ebx, 5
mov ecx, dword [r15 + 0x14]
cmp ebx, ecx
jle 0x18003138b
test ecx, ecx
je 0x180031376
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18003137b
mov eax, 8
mov edx, ebx
cmp eax, ebx
cmovg edx, eax
lea rcx, [r15 + 0x10]
call fcn.18002c870
mov dword [r15 + 0x10], ebx
movsxd r8, ebx
shl r8, 2
xor edx, edx
mov rcx, qword [r15 + 0x18]
call fcn.1800797f0
mov r13, qword [r14 - 0x10]
cmp word [r13], 0
je 0x18003143c
movzx eax, word [r13 + 2]
test ax, ax
je 0x180031437
movzx ebx, word [r13]
cmp ebx, eax
ja 0x180031427
nop dword [rax + rax]
mov eax, ebx
sar eax, 5
mov ecx, ebx
and ecx, 0x1f
mov esi, 1
shl esi, cl
movsxd rdi, eax
mov rax, qword [r15 + 0x18]
test dword [rax + rdi*4], esi
jne 0x180031417
lea rcx, [r14 - 0xe8]
mov edx, ebx
call fcn.18003a940
test eax, eax
je 0x180031417
inc dword [r14]
inc dword [r15 + 8]
mov rax, qword [r14 + 0x10]
or dword [rax + rdi*4], esi
mov rax, qword [r15 + 0x18]
or dword [rax + rdi*4], esi
inc r12d
inc ebx
movzx eax, word [r13 + 2]
cmp ebx, eax
jbe 0x1800313d0
mov dword [rsp + 0x68], r12d
add r13, 4
cmp word [r13], 0
jne 0x1800313b1
mov rsi, qword [rsp + 0x78]
add r14, 0x110
sub rsi, 1
mov qword [rsp + 0x78], rsi
mov r9, qword [rbp - 0x80]
jne 0x1800312f0
mov rbx, qword [rsp + 0x70]
add rbx, 0x100
mov r14d, dword [rsp + 0x60]
mov qword [rsp + 0x78], r14
mov r12d, 8
movsxd rdi, dword [rbx - 0x18]
cmp edi, dword [rbx + 4]
jle 0x1800314b2
mov rcx, rdi
shl rcx, 2
call fcn.180021f10
mov rsi, rax
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1800314ab
movsxd r8, dword [rbx]
shl r8, 2
mov rcx, rax
call fcn.180079150
mov rcx, qword [rbx + 8]
call fcn.180021f30
mov qword [rbx + 8], rsi
mov dword [rbx + 4], edi
mov rdx, qword [rbx - 8]
mov qword [rbp - 0x40], rdx
movsxd rax, dword [rbx - 0x10]
lea rax, [rdx + rax*4]
mov qword [rbp - 0x78], rax
mov r15, rdx
cmp rdx, rax
jae 0x180031562
mov r13d, dword [r15]
test r13d, r13d
je 0x180031550
xor esi, esi
mov edi, 1
test edi, r13d
je 0x180031543
lea r14, [r15*8]
lea rax, [rdx*8]
sub r14d, eax
and r14d, 0xffffffe0
add r14d, esi
mov ecx, dword [rbx + 4]
mov r8d, dword [rbx]
cmp r8d, ecx
jne 0x180031536
inc r8d
test ecx, ecx
je 0x18003151d
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x180031520
mov eax, r12d
cmp eax, r8d
cmovg r8d, eax
mov edx, r8d
mov rcx, rbx
call fcn.18002c870
mov rdx, qword [rbp - 0x40]
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], r14d
inc dword [rbx]
inc esi
rol edi, 1
cmp esi, 0x20
jl 0x1800314e1
mov rax, qword [rbp - 0x78]
add r15, 4
cmp r15, rax
jb 0x1800314d2
mov r14, qword [rsp + 0x78]
mov rcx, qword [rbx - 8]
test rcx, rcx
je 0x18003157a
xor edi, edi
mov qword [rbx - 0x10], rdi
call fcn.180021f30
mov qword [rbx - 8], rdi
add rbx, 0x110
sub r14, 1
mov qword [rsp + 0x78], r14
jne 0x180031472
mov r12d, dword [rsp + 0x68]
mov rdi, qword [rbp - 8]
xor r14d, r14d
mov eax, dword [rsp + 0x64]
test eax, eax
jle 0x1800315d2
mov rbx, qword [rbp - 0x80]
add rbx, 0x18
mov esi, eax
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800315c8
mov qword [rbx - 8], 0
call fcn.180021f30
mov qword [rbx], r14
add rbx, 0x20
sub rsi, 1
jne 0x1800315b0
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x1800315f6
mov qword [rbp - 0x30], 0
mov rcx, rax
call fcn.180021f30
mov rax, r14
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 0
mov r15, r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x68], 0
mov r13, r14
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x60], r14
mov eax, 8
test r12d, r12d
jle 0x180031657
mov ebx, r12d
cmp r12d, eax
cmovl ebx, eax
test ebx, ebx
jle 0x180031657
movsxd rax, ebx
lea rcx, [rax + rax*2]
shl rcx, 3
call fcn.180021f10
mov r15, rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x1c], ebx
mov eax, 8
mov dword [rbp - 0x20], r12d
mov rsi, r14
test r12d, r12d
jle 0x18003168f
mov ebx, r12d
cmp r12d, 8
cmovl ebx, eax
test ebx, ebx
jle 0x18003168f
movsxd rax, ebx
imul rcx, rax, 0x1c
call fcn.180021f10
mov r13, rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x64], ebx
mov rsi, rax
mov dword [rbp - 0x68], r12d
lea eax, [r12 + r12*2]
shl eax, 3
movsxd r8, eax
xor edx, edx
mov rcx, r15
call fcn.1800797f0
imul eax, r12d, 0x1c
movsxd r8, eax
xor edx, edx
mov rcx, rsi
call fcn.1800797f0
mov ecx, r14d
mov dword [rsp + 0x68], ecx
mov r9d, r14d
mov r10d, r14d
mov r12d, 0x100
mov eax, dword [rsp + 0x60]
test eax, eax
jle 0x180031a9e
mov rbx, qword [rsp + 0x70]
add rbx, 0xd0
mov esi, eax
mov qword [rbp - 0x40], rax
movss xmm9, dword [0x1800f30d0]
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x180031a7a
movsxd rax, r9d
lea rcx, [rax + rax*2]
lea rax, [r15 + rcx*8]
mov qword [rbx - 8], rax
movsxd rax, r10d
imul rdx, rax, 0x1c
add rdx, r13
mov qword [rbx], rdx
add r9d, r8d
mov dword [rbp - 0x44], r9d
add r10d, r8d
mov dword [rsp + 0x64], r10d
mov r15, qword [rdi + 0x70]
mov eax, dword [r14 + r15 + 0x14]
mov dword [rbx - 0x30], eax
xor r13d, r13d
mov dword [rbx - 0x2c], r13d
mov rax, qword [rbx + 0x38]
mov qword [rbx - 0x28], rax
mov eax, dword [rbx + 0x30]
mov dword [rbx - 0x20], eax
mov qword [rbx - 0x18], rdx
movzx eax, byte [r14 + r15 + 0x18]
mov byte [rbx - 0x10], al
movzx eax, byte [r14 + r15 + 0x1c]
mov byte [rbx - 0xf], al
movss xmm8, dword [r14 + r15 + 0x14]
comiss xmm8, xmm11
jbe 0x1800317b9
movsxd r11, dword [rbx - 0xac]
mov r10, qword [rbx - 0xc8]
movzx r8d, byte [r11 + r10 + 5]
movzx edx, byte [r11 + r10 + 4]
movsx ecx, r12w
imul edx, ecx
add r8w, dx
movsx r9d, r8w
movzx r8d, byte [r11 + r10 + 7]
movzx eax, byte [r11 + r10 + 6]
movsx ecx, r12w
imul eax, ecx
add ax, r8w
cwde
sub r9d, eax
movd xmm0, r9d
jmp 0x1800317de
movsxd rcx, dword [rbx - 0xb4]
mov rax, qword [rbx - 0xc8]
movzx edx, byte [rcx + rax + 0x13]
movzx eax, byte [rcx + rax + 0x12]
shl eax, 8
add edx, eax
xorps xmm8, xmm9
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm8, xmm0
movss xmm0, dword [rdi + 0x1c]
call fcn.180014d70
movaps xmm6, xmm0
movss xmm0, dword [rdi + 0x18]
call fcn.180014d70
maxss xmm0, xmm6
movd xmm1, dword [rdi + 0x14]
cvtdq2ps xmm1, xmm1
addss xmm1, xmm0
cvttss2si eax, xmm1
mov dword [rbp - 0x70], eax
mov r12d, r13d
mov dword [rbp - 0x48], r13d
cmp dword [rbx + 0x30], r13d
jle 0x180031a63
mov rsi, r13
mov rdi, r13
lea rax, [rbx - 0xd0]
jmp 0x180031843
xor r13d, r13d
mov rdx, qword [rbx + 0x38]
mov edx, dword [rdi + rdx]
mov rcx, rax
call fcn.18003a940
movd xmm6, dword [r14 + r15 + 0x1c]
cvtdq2ps xmm6, xmm6
mulss xmm6, xmm8
movd xmm7, dword [r14 + r15 + 0x18]
cvtdq2ps xmm7, xmm7
mulss xmm7, xmm8
lea rcx, [rbx - 0xd0]
mov edx, eax
cmp dword [rbx - 0x84], 0
je 0x1800318d5
mov qword [rbp + 0x50], 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x68], xmm1
mov qword [rbp + 0x78], r13
mov dword [rbp + 0x80], r13d
lea r8, [rbp + 0x50]
call fcn.180039150
mov r11d, r13d
test eax, eax
cmovne r11d, dword [rbp + 0x68]
mov r12d, r13d
cmovne r12d, dword [rbp + 0x70]
cmovne r13d, dword [rbp + 0x6c]
xor ecx, ecx
test eax, eax
cmovne ecx, dword [rbp + 0x74]
mov dword [rsp + 0x6c], ecx
jmp 0x18003196b
call fcn.1800362c0
test eax, eax
jns 0x1800318ec
mov ecx, r13d
mov edx, r13d
xor r8d, r8d
jmp 0x1800319ee
movsxd r10, eax
mov r9, qword [rbx - 0xc8]
movzx edx, byte [r10 + r9 + 2]
mov r13d, 0x100
movsx ecx, r13w
imul edx, ecx
movzx eax, byte [r10 + r9 + 3]
add dx, ax
movsx r11d, dx
movzx edx, byte [r10 + r9 + 4]
movsx ecx, r13w
imul edx, ecx
movzx eax, byte [r10 + r9 + 5]
add dx, ax
movsx r12d, dx
movzx r8d, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
movsx ecx, r13w
imul edx, ecx
add r8w, dx
movsx r13d, r8w
movzx r8d, byte [r10 + r9 + 9]
movzx eax, byte [r10 + r9 + 8]
mov ecx, 0x100
movsx ecx, cx
imul eax, ecx
add ax, r8w
cwde
mov dword [rsp + 0x6c], eax
xorps xmm0, xmm0
cvtsi2ss xmm0, r11d
mulss xmm0, xmm7
addss xmm0, xmm11
call fcn.180064c10
cvttss2si eax, xmm0
mov dword [rbp - 0x10], eax
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [rsp + 0x6c]
mulss xmm1, xmm6
movaps xmm0, xmm11
subss xmm0, xmm1
call fcn.180064c10
cvttss2si eax, xmm0
mov dword [rsp + 0x6c], eax
xorps xmm0, xmm0
cvtsi2ss xmm0, r13d
mulss xmm0, xmm7
addss xmm0, xmm11
call fcn.180064b88
cvttss2si r13d, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm1, r12d
mulss xmm1, xmm6
movaps xmm0, xmm11
subss xmm0, xmm1
call fcn.180064b88
cvttss2si r8d, xmm0
mov ecx, dword [rbp - 0x10]
mov edx, dword [rsp + 0x6c]
mov r12d, dword [rbp - 0x48]
mov eax, dword [r14 + r15 + 0x18]
sub eax, ecx
add eax, r13d
mov r13d, dword [rbp - 0x70]
lea ecx, [r13 - 1]
add ecx, eax
mov rax, qword [rbx - 8]
mov dword [rsi + rax + 0xc], ecx
mov eax, dword [r14 + r15 + 0x1c]
sub eax, edx
add eax, r8d
lea ecx, [r13 - 1]
add ecx, eax
mov rax, qword [rbx - 8]
mov dword [rsi + rax + 0x10], ecx
mov rcx, qword [rbx - 8]
mov eax, dword [rsi + rcx + 0x10]
imul eax, dword [rsi + rcx + 0xc]
mov ecx, dword [rsp + 0x68]
add ecx, eax
mov dword [rsp + 0x68], ecx
inc r12d
mov dword [rbp - 0x48], r12d
add rdi, 4
add rsi, 0x18
cmp r12d, dword [rbx + 0x30]
lea rax, [rbx - 0xd0]
jl 0x180031840
mov rdi, qword [rbp - 8]
mov rsi, qword [rbp - 0x40]
jmp 0x180031a67
mov ecx, dword [rsp + 0x68]
mov r12d, 0x100
mov r15, qword [rbp - 0x78]
mov r10d, dword [rsp + 0x64]
mov r9d, dword [rbp - 0x44]
add rbx, 0x110
add r14, 0x88
sub rsi, 1
mov qword [rbp - 0x40], rsi
mov r13, qword [rsp + 0x78]
jne 0x1800316f2
xor r14d, r14d
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x180031ab6
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x180031abe
movaps xmm0, xmm1
call fcn.18005ae68
cvttss2si ecx, xmm0
inc ecx
mov dword [rdi + 0x34], r14d
mov eax, dword [rdi + 0x10]
test eax, eax
jg 0x180031b0a
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x1800f74b4]
jb 0x180031ae6
mov eax, 0x1000
jmp 0x180031b0a
comiss xmm0, dword [0x1800f74b0]
jb 0x180031af6
mov eax, 0x800
jmp 0x180031b0a
mov eax, 0x200
mov ecx, 0x400
comiss xmm0, dword [0x1800f74ac]
cmovae eax, ecx
mov dword [rdi + 0x30], eax
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
xor eax, eax
mov dword [rbp + 0x20], eax
mov qword [rbp + 0x28], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov r13d, eax
mov qword [rbp + 0x48], rax
movss xmm0, dword [rdi + 0x1c]
call fcn.180014d70
movaps xmm6, xmm0
movss xmm0, dword [rdi + 0x18]
call fcn.180014d70
maxss xmm0, xmm6
movd xmm1, dword [rdi + 0x14]
cvtdq2ps xmm1, xmm1
addss xmm1, xmm0
cvttss2si r15d, xmm1
mov r12d, dword [rdi + 0x30]
lea ecx, [r13 + 0x14]
call fcn.180021f10
mov rbx, rax
mov esi, r12d
sub esi, r15d
movsxd rcx, esi
call fcn.180021f10
test rbx, rbx
je 0x180031bcc
test rax, rax
je 0x180031bc7
mov dword [rbp + 0x20], r12d
mov r14, rbx
mov qword [rbp + 0x18], rbx
mov r13, rax
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x2c], r15d
mov dword [rbp + 0x28], r12d
mov dword [rbp + 0x34], 1
mov dword [rbp + 0x38], 1
xor r12d, r12d
mov dword [rbp + 0x30], r12d
mov dword [rbx], esi
mov eax, 0x8000
sub eax, r15d
mov dword [rbx + 4], eax
mov qword [rbx + 8], r12
mov dword [rbx + 0x10], r12d
jmp 0x180031bdc
mov rcx, rbx
jmp 0x180031bd4
test rax, rax
je 0x180031bd9
mov rcx, rax
call fcn.180021f30
xor r12d, r12d
mov qword [rbp - 0x40], 0
mov rsi, r12
mov qword [rbp - 0x38], r12
mov ebx, dword [rdi + 0x58]
test ebx, ebx
jle 0x180031c15
mov eax, ebx
cmp ebx, 8
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x180031c15
cdqe
lea rcx, [rax + rax*2]
shl rcx, 3
call fcn.180021f10
mov rsi, rax
lea ecx, [rbx + rbx*2]
shl ecx, 3
movsxd r8, ecx
xor edx, edx
mov rcx, rsi
call fcn.1800797f0
mov r9d, r12d
cmp dword [rdi + 0x58], 0
jle 0x180031c6a
mov rdx, r12
lea r8, [rsi + 0x10]
nop dword [rax + rax]
mov rax, qword [rdi + 0x60]
movzx ecx, word [rax + rdx + 4]
mov dword [r8 - 4], ecx
mov rax, qword [rdi + 0x60]
movzx ecx, word [rax + rdx + 6]
mov dword [r8], ecx
inc r9d
lea rdx, [rdx + 0x20]
lea r8, [r8 + 0x18]
cmp r9d, dword [rdi + 0x58]
jl 0x180031c40
mov r8d, ebx
mov rdx, rsi
mov rcx, r14
call fcn.180035940
test ebx, ebx
jle 0x180031cc4
mov r8, r12
lea rdx, [rsi + 4]
mov r9, rbx
cmp dword [rdx + 0x10], 0
je 0x180031cb6
movzx ecx, word [rdx - 4]
mov rax, qword [rdi + 0x60]
mov word [rax + r8 + 8], cx
movzx ecx, word [rdx]
mov rax, qword [rdi + 0x60]
mov word [rax + r8 + 0xa], cx
mov ecx, dword [rdx]
add ecx, dword [rdx + 0xc]
cmp dword [rdi + 0x34], ecx
cmovge ecx, dword [rdi + 0x34]
mov dword [rdi + 0x34], ecx
add r8, 0x20
add rdx, 0x18
sub r9, 1
jne 0x180031c86
test rsi, rsi
je 0x180031cd2
mov rcx, rsi
call fcn.180021f30
nop
mov esi, dword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
test esi, esi
jle 0x180031d3f
lea rbx, [r15 + 0xe8]
mov r8d, dword [rbx]
test r8d, r8d
je 0x180031d2e
mov rdx, qword [rbx - 0x20]
mov rcx, r14
call fcn.180035940
mov r8d, r12d
cmp dword [rbx], 0
jle 0x180031d2e
mov rdx, r12
mov rax, qword [rbx - 0x20]
cmp dword [rax + rdx + 0x14], 0
je 0x180031d22
mov ecx, dword [rax + rdx + 0x10]
add ecx, dword [rax + rdx + 4]
cmp dword [rdi + 0x34], ecx
cmovge ecx, dword [rdi + 0x34]
mov dword [rdi + 0x34], ecx
inc r8d
add rdx, 0x18
cmp r8d, dword [rbx]
jl 0x180031d05
add rbx, 0x110
sub rsi, 1
jne 0x180031ce6
mov esi, dword [rsp + 0x60]
mov eax, dword [rdi + 0x34]
test byte [rdi + 4], 1
jne 0x180031d6d
lea ecx, [rax - 1]
mov eax, ecx
sar eax, 1
or ecx, eax
mov eax, ecx
sar eax, 2
or ecx, eax
mov eax, ecx
sar eax, 4
or ecx, eax
mov eax, ecx
sar eax, 8
or ecx, eax
mov eax, ecx
sar eax, 0x10
or eax, ecx
lea ecx, [rax + 1]
mov dword [rdi + 0x34], ecx
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss xmm9, dword [0x1800f2648]
movaps xmm2, xmm9
divss xmm2, xmm0
mov eax, dword [rdi + 0x30]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movaps xmm1, xmm9
divss xmm1, xmm0
movss dword [rdi + 0x38], xmm1
movss dword [rdi + 0x3c], xmm2
imul eax, ecx
movsxd rcx, eax
call fcn.180021f10
mov qword [rdi + 0x20], rax
mov ecx, dword [rdi + 0x34]
imul ecx, dword [rdi + 0x30]
movsxd r8, ecx
xor edx, edx
mov rcx, rax
call fcn.1800797f0
mov rax, qword [rdi + 0x20]
mov qword [rbp + 0x40], rax
mov eax, dword [rdi + 0x34]
mov dword [rbp + 0x24], eax
test esi, esi
jle 0x180031f24
mov r13d, esi
mov rbx, qword [rdi + 0x70]
cmp dword [r15 + 0xe8], 0
je 0x180031efd
lea r8, [r15 + 0xa0]
mov rax, qword [r15 + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rdx, r15
lea rcx, [rbp + 0x10]
call fcn.18003b080
movss xmm1, dword [r12 + rbx + 0x50]
ucomiss xmm1, xmm9
jp 0x180031e2d
je 0x180031ef2
xor r8d, r8d
lea r9, [rbp + 0x90]
mov edi, 0x100
nop dword [rax]
mov eax, r8d
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, xmm1
cvttss2si rcx, xmm0
mov edx, 0xff
movzx eax, cl
cmp ecx, edx
cmovbe edx, eax
mov byte [r9], dl
inc r8d
lea r9, [r9 + 1]
cmp r8d, edi
jb 0x180031e40
mov rbx, qword [r15 + 0xc8]
xor r14d, r14d
cmp dword [r15 + 0xe8], r14d
mov rdi, qword [rbp - 8]
jle 0x180031ef2
cmp dword [rbx + 0x14], 0
je 0x180031ee2
movsxd rdx, dword [rdi + 0x30]
mov r10d, dword [rbx + 0x10]
mov eax, dword [rbx + 4]
imul eax, edx
cdqe
movsxd r9, dword [rbx]
add rax, qword [rdi + 0x20]
add r9, rax
movsxd r11, dword [rbx + 0xc]
test r10d, r10d
jle 0x180031ee2
mov rsi, rdx
test r11, r11
jle 0x180031ed7
mov rdx, r9
mov r8, r11
nop
movzx eax, byte [rdx]
movzx ecx, byte [rbp + rax + 0x90]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x180031ec0
dec r10d
add r9, rsi
test r10d, r10d
jg 0x180031eb3
inc r14d
add rbx, 0x18
cmp r14d, dword [r15 + 0xe8]
jl 0x180031e87
mov qword [r15 + 0xc8], 0
add r12, 0x88
add r15, 0x110
sub r13, 1
jne 0x180031de3
mov r13, qword [rbp + 0x48]
mov r14, qword [rbp + 0x18]
mov esi, dword [rsp + 0x60]
xor r12d, r12d
mov rcx, r13
call fcn.180021f30
mov rcx, r14
call fcn.180021f30
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x180031f58
mov qword [rbp - 0x20], 0
mov rcx, rax
call fcn.180021f30
mov rax, r12
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x18], rax
test esi, esi
jle 0x18003231f
mov r13, r12
mov rsi, qword [rsp + 0x70]
add rsi, 8
mov r12d, dword [rsp + 0x60]
mov qword [rbp - 0x40], r12
movss xmm8, dword [0x1800f2638]
nop
cmp dword [rsi + 0xe0], 0
je 0x1800322c5
mov rbx, qword [rdi + 0x70]
add rbx, r13
mov r14, qword [rbx + 0x80]
movsxd r10, dword [rsi + 0x1c]
mov r9, qword [rsi]
movzx r8d, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
mov r15d, 0x100
movsx ecx, r15w
imul edx, ecx
add r8w, dx
movsx r11d, r8w
movzx r8d, byte [r10 + r9 + 5]
movzx edx, byte [r10 + r9 + 4]
movsx ecx, r15w
imul edx, ecx
add r8w, dx
movsx ecx, r8w
mov eax, ecx
sub eax, r11d
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss xmm3, dword [rbx + 0x14]
divss xmm3, xmm0
movd xmm2, ecx
cvtdq2ps xmm2, xmm2
mov eax, 0xffffffff
comiss xmm2, xmm11
mov ecx, 1
cmova eax, ecx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movaps xmm0, xmm3
mulss xmm0, xmm2
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm6, eax
cvtdq2ps xmm6, xmm6
movd xmm2, r11d
cvtdq2ps xmm2, xmm2
mov eax, 0xffffffff
comiss xmm2, xmm11
cmova eax, ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm3, xmm2
addss xmm0, xmm3
cvttss2si eax, xmm0
movd xmm7, eax
cvtdq2ps xmm7, xmm7
cmp byte [rbx + 0x48], 0
jne 0x18003207f
mov rcx, r14
call fcn.180030600
mov eax, dword [rbx + 0x14]
mov dword [r14 + 0x14], eax
mov qword [r14 + 0x50], rbx
mov qword [r14 + 0x48], rdi
movss dword [r14 + 0x64], xmm6
movss dword [r14 + 0x68], xmm7
inc word [r14 + 0x58]
movss xmm15, dword [rbx + 0x2c]
movss xmm0, dword [r14 + 0x64]
addss xmm0, xmm8
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
addss xmm1, dword [rbx + 0x30]
movss dword [rbp - 0x70], xmm1
mov dword [rsp + 0x64], 0
cmp dword [rsi + 0xe0], 0
jle 0x1800322c5
xor r15d, r15d
xor r12d, r12d
mov rax, qword [rsi + 0x100]
mov edx, dword [r12 + rax]
mov rcx, qword [rsi + 0xc8]
movss xmm0, dword [rcx + r15 + 0x10]
movss xmm14, dword [rbx + 0x40]
comiss xmm14, xmm0
ja 0x1800320f5
movss xmm14, dword [rbx + 0x44]
minss xmm14, xmm0
movaps xmm13, xmm15
ucomiss xmm0, xmm14
jp 0x180032101
je 0x180032128
movaps xmm13, xmm14
subss xmm13, xmm0
mulss xmm13, xmm8
cmp byte [rbx + 0x20], 0
je 0x180032123
cvttss2si eax, xmm13
movd xmm13, eax
cvtdq2ps xmm13, xmm13
addss xmm13, xmm15
movd xmm0, dword [rdi + 0x30]
cvtdq2ps xmm0, xmm0
movaps xmm7, xmm9
divss xmm7, xmm0
movd xmm1, dword [rdi + 0x34]
cvtdq2ps xmm1, xmm1
movaps xmm3, xmm9
divss xmm3, xmm1
movss xmm10, dword [rdi + 0x18]
movaps xmm12, xmm11
minss xmm12, xmm10
movss xmm5, dword [rdi + 0x1c]
minss xmm11, xmm5
xorps xmm0, xmm0
maxss xmm10, xmm0
maxss xmm5, xmm0
movzx eax, word [rcx + r15 + 6]
movd xmm9, eax
cvtdq2ps xmm9, xmm9
mulss xmm9, xmm3
movaps xmm0, xmm5
mulss xmm0, dword [rdi + 0x3c]
addss xmm9, xmm0
movzx eax, word [rcx + r15 + 4]
movd xmm8, eax
cvtdq2ps xmm8, xmm8
mulss xmm8, xmm7
movaps xmm0, xmm10
mulss xmm0, dword [rdi + 0x38]
addss xmm8, xmm0
movzx eax, word [rcx + r15 + 2]
movd xmm6, eax
cvtdq2ps xmm6, xmm6
mulss xmm6, xmm3
movaps xmm0, xmm11
mulss xmm0, dword [rdi + 0x3c]
addss xmm6, xmm0
movzx eax, word [rcx + r15]
movd xmm4, eax
cvtdq2ps xmm4, xmm4
mulss xmm4, xmm7
movaps xmm0, xmm12
mulss xmm0, dword [rdi + 0x38]
addss xmm4, xmm0
movss xmm1, dword [rcx + r15 + 0x18]
xorps xmm2, xmm2
addss xmm1, xmm2
addss xmm1, dword [rbp - 0x70]
addss xmm1, xmm5
movss xmm0, dword [rcx + r15 + 0x14]
addss xmm0, xmm2
addss xmm0, xmm13
divss xmm10, dword [0x1800f26a0]
addss xmm0, xmm10
movss xmm3, dword [rcx + r15 + 0xc]
addss xmm3, xmm2
addss xmm3, dword [rbp - 0x70]
addss xmm3, xmm11
movss xmm2, dword [rcx + r15 + 8]
xorps xmm11, xmm11
addss xmm2, xmm11
addss xmm2, xmm13
divss xmm12, dword [0x1800f26a0]
addss xmm2, xmm12
movss dword [rsp + 0x50], xmm14
movss dword [rsp + 0x48], xmm9
movss dword [rsp + 0x40], xmm8
movss dword [rsp + 0x38], xmm6
movss dword [rsp + 0x30], xmm4
movss dword [rsp + 0x28], xmm1
movss dword [rsp + 0x20], xmm0
mov rcx, r14
call fcn.18002e2f0
mov r8d, dword [rsp + 0x64]
inc r8d
mov dword [rsp + 0x64], r8d
add r12, 4
add r15, 0x1c
cmp r8d, dword [rsi + 0xe0]
movss xmm8, dword [0x1800f2638]
movss xmm9, dword [0x1800f2648]
jl 0x1800320c5
mov r12, qword [rbp - 0x40]
add rsi, 0x110
add r13, 0x88
sub r12, 1
mov qword [rbp - 0x40], r12
jne 0x180031f80
mov esi, dword [rsp + 0x60]
test esi, esi
jle 0x18003231f
mov rbx, qword [rsp + 0x70]
add rbx, 0xf8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180032304
call fcn.180021f30
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x180032312
call fcn.180021f30
nop
add rbx, 0x110
sub rsi, 1
jne 0x1800322f5
mov rcx, rdi
call fcn.180030920
mov bl, 1
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180032339
call fcn.180021f30
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x180032348
call fcn.180021f30
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x180032357
call fcn.180021f30
nop
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x18003236a
mov rcx, rax
call fcn.180021f30
nop
movzx eax, bl
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180051b70
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
movaps xmm15, xmmword [r11 - 0xa0]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret