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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x248]
sub rsp, 0x310
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rax - 0xa8], xmm12
mov rax, qword [0x180145040]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r13d, r8d
mov rsi, rdx
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x58], rcx
xor r15d, r15d
cmp dword [rdx + 0x484], r15d
jge 0x180037f63
mov dword [rbp - 0x34], 0xffffffff
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], r15
lea rcx, [rdx + 0x58]
test byte [rdx], 2
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x38], 0x1b00f5
je 0x180037f53
mov dword [rbp - 0x38], 0x20002
call fcn.180056310
mov eax, dword [rsi + 0x58]
dec eax
mov dword [rsi + 0x484], eax
cmp dword [rsi + 0x488], r15d
jge 0x180037fa3
test byte [rsi], 4
jne 0x180037fa3
mov dword [rbp - 0x34], 0xffffffff
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x38], 0x400041
lea rdx, [rbp - 0x38]
lea rcx, [rsi + 0x58]
call fcn.180056310
mov eax, dword [rsi + 0x58]
dec eax
mov dword [rsi + 0x488], eax
mov qword [rsi + 8], r15
mov qword [rsi + 0x30], r15
mov qword [rsi + 0x38], r15
mov qword [rsi + 0x40], r15
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x180037fd4
mov rax, qword [0x180206788]
test rax, rax
je 0x180037fce
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x180037ff5
mov rax, qword [0x180206788]
test rax, rax
je 0x180037fef
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x20], r15
mov qword [rsi + 0x28], r15
mov byte [rsi + 0x1a], r15b
mov byte [rsp + 0x61], r15b
mov dword [rbp + 0x24], r15d
mov r12, r15
mov qword [rsp + 0x78], r15
mov qword [rbp + 0x28], r15
mov dword [rbp + 4], r15d
mov rax, r15
mov qword [rbp - 0x68], rax
mov qword [rbp + 8], rax
mov r14d, dword [rsi + 0x68]
mov dword [rsp + 0x6c], r14d
mov eax, 8
test r14d, r14d
jle 0x180038078
mov ebx, r14d
cmp r14d, eax
cmovl ebx, eax
test ebx, ebx
jle 0x180038078
mov rax, qword [0x180206788]
test rax, rax
je 0x180038057
inc dword [rax + 0x3b0]
movsxd rax, ebx
imul rcx, rax, 0x70
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov qword [rsp + 0x78], rax
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x24], ebx
mov eax, 8
mov dword [rbp + 0x20], r14d
mov edi, dword [rsi + 0x48]
mov dword [rbp - 0x78], edi
test edi, edi
jle 0x1800380bc
mov ebx, edi
cmp edi, 8
cmovl ebx, eax
test ebx, ebx
jle 0x1800380bc
mov rax, qword [0x180206788]
test rax, rax
je 0x1800380a4
inc dword [rax + 0x3b0]
movsxd rcx, ebx
shl rcx, 5
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x68], rax
mov qword [rbp + 8], rax
mov dword [rbp + 4], ebx
mov dword [rbp], edi
imul ecx, r14d, 0x70
movsxd r8, ecx
xor edx, edx
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
mov ecx, edi
shl ecx, 5
movsxd r8, ecx
xor edx, edx
mov rcx, qword [rbp - 0x68]
call sub.VCRUNTIME140.dll_memset
mov r12d, r15d
cmp dword [rsi + 0x68], r15d
jle 0x180038203
mov r14, r15
mov rbx, qword [rsp + 0x78]
add rbx, 0x44
nop dword [rax]
mov rdi, qword [rsi + 0x70]
add rdi, r14
mov dword [rbx - 4], 0xffffffff
mov r8d, r15d
cmp dword [rsi + 0x48], r15d
jle 0x1800381fc
mov edx, 0xffffffff
mov r9, r15
mov eax, edx
cmp edx, 0xffffffff
jne 0x180038151
mov rax, qword [rsi + 0x50]
mov rcx, qword [r9 + rax]
cmp qword [rdi + 0x80], rcx
jne 0x180038142
mov dword [rbx - 4], r8d
mov edx, r8d
inc r8d
add r9, 8
mov eax, edx
cmp r8d, dword [rsi + 0x48]
jl 0x180038123
cmp eax, 0xffffffff
je 0x1800381fc
mov r9d, r13d
mov r8, rdi
mov rdx, qword [rbp - 0x58]
lea rcx, [rbx - 0x44]
call fcn.180036a60
test al, al
je 0x1800381fc
mov eax, dword [rdi + 0x4c]
shr eax, 8
and al, 1
or byte [rsp + 0x61], al
movsxd r8, dword [rbx - 4]
shl r8, 5
mov r9, qword [rbp - 0x68]
add r8, r9
mov rax, qword [rdi + 0x38]
lea rdx, [0x180129d1c]
test rax, rax
cmovne rdx, rax
mov qword [rbx - 0xc], rdx
cmp word [rdx], 0
je 0x1800381cc
nop dword [rax]
movzx eax, word [rdx + 2]
test ax, ax
je 0x1800381cc
mov ecx, eax
cmp dword [rbx], eax
cmovge ecx, dword [rbx]
mov dword [rbx], ecx
add rdx, 4
cmp word [rdx], 0
jne 0x1800381b0
inc dword [r8]
mov ecx, dword [rbx]
cmp dword [r8 + 4], ecx
cmovge ecx, dword [r8 + 4]
mov dword [r8 + 4], ecx
inc r12d
add rbx, 0x70
add r14, 0x88
mov rsi, qword [rbp - 0x70]
cmp r12d, dword [rsi + 0x68]
jl 0x180038100
jmp 0x180038207
xor bl, bl
jmp 0x18003921e
mov r9, qword [rbp - 0x68]
mov r12d, r15d
mov esi, 1
mov dword [rsp + 0x70], esi
mov r13d, dword [rsp + 0x6c]
test r13d, r13d
jle 0x1800384e8
mov r14, qword [rsp + 0x78]
add r14, 0x48
mov edi, r13d
mov qword [rbp - 0x60], r13
movsxd r15, dword [r14 - 8]
shl r15, 5
add r15, r9
mov edx, dword [r14 - 4]
add edx, 0x20
sar edx, 5
lea rcx, [r14 + 8]
call fcn.1800394a0
movsxd r8, dword [r14 + 8]
shl r8, 2
xor edx, edx
mov rcx, qword [r14 + 0x10]
call sub.VCRUNTIME140.dll_memset
cmp dword [r15 + 0x10], 0
jne 0x18003828f
mov edx, dword [r15 + 4]
add edx, 0x20
sar edx, 5
lea rcx, [r15 + 0x10]
call fcn.1800394a0
movsxd r8, dword [r15 + 0x10]
shl r8, 2
xor edx, edx
mov rcx, qword [r15 + 0x18]
call sub.VCRUNTIME140.dll_memset
mov r13, qword [r14 - 0x10]
cmp word [r13], 0
je 0x18003831e
nop
movzx eax, word [r13 + 2]
test ax, ax
je 0x18003831a
movzx edi, word [r13]
cmp edi, eax
ja 0x18003830e
nop dword [rax]
nop word [rax + rax]
mov ecx, edi
and ecx, 0x1f
shl esi, cl
movsxd rbx, edi
sar rbx, 5
mov rax, qword [r15 + 0x18]
test dword [rax + rbx*4], esi
jne 0x1800382fe
mov edx, edi
mov rcx, qword [r14 - 0x30]
call fcn.18007c040
test eax, eax
je 0x1800382fe
inc dword [r14]
inc dword [r15 + 8]
mov rax, qword [r14 + 0x10]
or dword [rax + rbx*4], esi
mov rax, qword [r15 + 0x18]
or dword [rax + rbx*4], esi
inc r12d
inc edi
movzx eax, word [r13 + 2]
cmp edi, eax
mov esi, 1
jle 0x1800382c0
add r13, 4
cmp word [r13], 0
jne 0x1800382a0
mov rdi, qword [rbp - 0x60]
add r14, 0x70
sub rdi, 1
mov qword [rbp - 0x60], rdi
mov r9, qword [rbp - 0x68]
jne 0x180038231
mov rsi, qword [rsp + 0x78]
add rsi, 0x68
mov r14d, dword [rsp + 0x6c]
mov qword [rbp - 0x60], r14
mov dword [rsp + 0x68], r12d
nop dword [rax + rax]
movsxd rbx, dword [rsi - 0x20]
cmp ebx, dword [rsi - 4]
jle 0x1800383be
mov rax, qword [0x180206788]
test rax, rax
je 0x18003836b
inc dword [rax + 0x3b0]
lea rcx, [rbx + rbx*4]
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov rdx, qword [rsi]
test rdx, rdx
je 0x1800383b8
movsxd rcx, dword [rsi - 8]
lea r8, [rcx + rcx*4]
shl r8, 3
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800383b2
mov rax, qword [0x180206788]
test rax, rax
je 0x1800383b2
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi], rdi
mov dword [rsi - 4], ebx
mov r13, qword [rsi - 0x10]
movsxd rax, dword [rsi - 0x18]
lea rax, [rax*4]
add rax, r13
mov qword [rbp - 0x58], rax
mov r14, r13
cmp r13, rax
jae 0x18003849e
xor r12d, r12d
mov r15d, dword [r14]
test r15d, r15d
je 0x180038491
mov edi, r12d
bt r15d, edi
jae 0x180038482
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rbp - 0x28], xmm6
mov qword [rbp - 0x18], rax
lea rcx, [r14*8]
lea rax, [r13*8]
sub ecx, eax
and ecx, 0xffffffe0
add ecx, edi
movzx eax, cx
mov dword [rbp - 0x20], eax
mov r8d, dword [rsi - 4]
mov ecx, dword [rsi - 8]
cmp ecx, r8d
jne 0x18003845c
inc ecx
test r8d, r8d
je 0x180038447
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x18003844c
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rsi - 8]
call fcn.180039400
movsxd rax, dword [rsi - 8]
lea rcx, [rax + rax*4]
mov rax, qword [rsi]
movups xmmword [rax + rcx*8], xmm6
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rax + rcx*8 + 0x10], xmm0
movsd xmm1, qword [rbp - 0x18]
movsd qword [rax + rcx*8 + 0x20], xmm1
inc dword [rsi - 8]
inc edi
cmp edi, 0x20
jb 0x1800383f3
mov rax, qword [rbp - 0x58]
add r14, 4
cmp r14, rax
jb 0x1800383e4
mov rcx, qword [rsi - 0x10]
xor r15d, r15d
test rcx, rcx
je 0x1800384ca
mov qword [rsi - 0x18], r15
mov rax, qword [0x180206788]
test rax, rax
je 0x1800384c0
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi - 0x10], r15
add rsi, 0x70
sub qword [rbp - 0x60], 1
jne 0x180038350
mov r12d, dword [rsp + 0x68]
mov esi, 1
mov r13d, dword [rsp + 0x6c]
mov eax, dword [rbp - 0x78]
test eax, eax
jle 0x180038535
mov rbx, qword [rbp - 0x68]
add rbx, 0x18
mov edi, eax
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18003852b
mov qword [rbx - 8], 0
mov rax, qword [0x180206788]
test rax, rax
je 0x180038522
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx], r15
add rbx, 0x20
sub rdi, 1
jne 0x180038500
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x180038569
mov qword [rbp], 0
mov rax, qword [0x180206788]
test rax, rax
je 0x180038558
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r15
mov qword [rbp - 0x68], rcx
mov qword [rbp + 8], rcx
mov dword [rbp - 0x34], r15d
mov rdi, r15
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x30], r15
mov r14d, 8
test r12d, r12d
jle 0x1800385be
mov ebx, r12d
cmp r12d, r14d
cmovl ebx, r14d
test ebx, ebx
jle 0x1800385be
mov rax, qword [0x180206788]
test rax, rax
je 0x1800385a3
inc dword [rax + 0x3b0]
movsxd rcx, ebx
shl rcx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x34], ebx
mov dword [rbp - 0x38], r12d
shl r12d, 4
movsxd r8, r12d
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x64], r15d
mov dword [rbp + 0x14], r15d
mov qword [rbp + 0x18], r15
mov rax, qword [0x180206788]
mov ecx, 0x40000
test rax, rax
je 0x1800385f7
inc dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov rax, qword [0x180206788]
test rax, rax
je 0x180038612
inc dword [rax + 0x3b0]
mov ecx, 0x40
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x14], r14d
mov qword [rax], rbx
mov dword [rbp + 0x10], esi
mov eax, r15d
mov dword [rbp - 0x80], eax
mov r9d, r15d
mov dword [rsp + 0x68], r15d
movss xmm6, dword [0x18012e988]
test r13d, r13d
jle 0x180038a08
mov r8, r15
mov qword [rbp - 0x40], r15
mov rbx, qword [rsp + 0x78]
add rbx, 0x60
mov r10d, r13d
mov qword [rbp - 0x58], r10
mov r11, qword [rbp - 0x70]
nop dword [rax]
mov rdx, qword [r11 + 0x70]
mov ecx, dword [rbx - 0x18]
test ecx, ecx
je 0x1800389e1
movsxd rax, r9d
shl rax, 4
add rax, rdi
mov qword [rbx - 0x30], rax
add r9d, ecx
mov dword [rsp + 0x68], r9d
movss xmm1, dword [r8 + rdx + 0x50]
ucomiss xmm1, xmm6
jp 0x1800386aa
jne 0x1800386aa
mov byte [rsp + 0x60], 0
jmp 0x1800386f8
mov byte [rsp + 0x60], 1
mov r8d, r15d
lea r9, [rbp + 0x90]
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, 0x100
jb 0x1800386c0
mov r8, qword [rbp - 0x40]
mov eax, dword [r11 + 0x14]
mov dword [rbp - 0x50], eax
mov r12d, r15d
mov dword [rbp - 0x78], r15d
cmp dword [rbx], 0
jle 0x1800389de
mov r13, r15
mov rsi, r15
nop word [rax + rax]
mov r15, qword [rbx + 8]
mov edx, dword [rsi + r15 + 0x18]
mov rcx, qword [rbx - 0x48]
call fcn.18007c040
test eax, eax
je 0x1800389ae
mov r8d, dword [rbx - 0x3c]
mov edx, eax
mov rcx, qword [rbx - 0x48]
call fcn.18007cff0
test eax, eax
jne 0x1800389ae
mov rax, qword [rbx - 0x48]
mov rdi, qword [rax + 0x78]
test byte [rbx - 0x40], 0x20
je 0x180038767
mov rcx, rdi
call fcn.180085910
test byte [rbx - 0x40], 0x40
je 0x180038775
mov rcx, rdi
call fcn.180085a20
lea rax, [rdi + 0x30]
test rax, rax
je 0x1800389ae
mov rax, qword [rbx - 0x48]
mov rdi, qword [rax + 0x78]
mov edx, dword [rbx - 0x38]
mov rcx, rdi
call fcn.18007fae0
test eax, eax
jne 0x1800389ae
mov rax, qword [rbx - 0x48]
mov r9, qword [rax + 0x78]
add r9, 0x68
mov qword [rbp - 0x10], r9
mov r8d, dword [r9 + 4]
mov dword [rsi + r15], r8d
mov r12d, dword [r9]
mov dword [rsi + r15 + 4], r12d
mov rax, qword [rbx - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x90]
mov dword [rsi + r15 + 8], eax
mov rax, qword [rbx - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x94]
neg eax
mov dword [rsi + r15 + 0xc], eax
mov eax, dword [rdi + 0x58]
add eax, 0x3f
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsi + r15 + 0x10], xmm0
cmp byte [r9 + 0x1a], 7
sete al
mov byte [rsi + r15 + 0x14], al
imul r12d, r8d
shl r12d, 2
mov edi, dword [rsp + 0x64]
lea eax, [r12 + rdi]
cmp eax, 0x40000
jle 0x180038919
xor edi, edi
mov dword [rsp + 0x64], edi
mov rax, qword [0x180206788]
test rax, rax
je 0x180038845
inc dword [rax + 0x3b0]
mov ecx, 0x40000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x30], rax
mov r8d, dword [rsp + 0x70]
cmp r8d, r14d
jne 0x1800388fc
lea edi, [r8 + 1]
test r14d, r14d
je 0x180038878
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
add eax, r14d
jmp 0x18003887d
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, r14d
jle 0x1800388f8
mov rax, qword [0x180206788]
test rax, rax
je 0x180038899
inc dword [rax + 0x3b0]
movsxd rcx, edi
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov rax, qword [rbp - 0x48]
test rax, rax
je 0x1800388e2
movsxd r8, dword [rsp + 0x70]
shl r8, 3
mov rdx, rax
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [0x180206788]
test rcx, rcx
je 0x1800388d8
dec dword [rcx + 0x3b0]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, r14
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x18], rax
mov r14d, edi
mov dword [rbp + 0x14], edi
mov r8d, dword [rsp + 0x70]
mov edi, dword [rsp + 0x64]
movsxd rax, r8d
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp - 0x48]
mov qword [rdx + rax*8], rcx
inc r8d
mov dword [rsp + 0x70], r8d
mov dword [rbp + 0x10], r8d
jmp 0x180038922
mov rdx, qword [rbp - 0x48]
mov r8d, dword [rsp + 0x70]
lea eax, [r8 - 1]
cdqe
movsxd rcx, edi
mov r8, qword [rdx + rax*8]
add r8, rcx
mov qword [rsi + r15 + 0x20], r8
add edi, r12d
mov dword [rsp + 0x64], edi
lea rax, [rbp + 0x90]
cmp byte [rsp + 0x60], 0
mov ecx, 0
cmove rax, rcx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsi + r15]
mov rdx, qword [rbp - 0x10]
call fcn.180036c50
mov edi, dword [rbp - 0x50]
movzx ecx, di
add cx, word [rsi + r15]
mov rax, qword [rbx - 0x30]
mov word [rax + r13 + 4], cx
movzx ecx, di
add cx, word [rsi + r15 + 4]
mov rax, qword [rbx - 0x30]
mov word [rax + r13 + 6], cx
mov rax, qword [rbx - 0x30]
movzx ecx, word [rax + r13 + 6]
movzx eax, word [rax + r13 + 4]
imul ecx, eax
mov eax, dword [rbp - 0x80]
add eax, ecx
mov dword [rbp - 0x80], eax
mov r12d, dword [rbp - 0x78]
jmp 0x1800389b1
mov eax, dword [rbp - 0x80]
inc r12d
mov dword [rbp - 0x78], r12d
add rsi, 0x28
add r13, 0x10
cmp r12d, dword [rbx]
jl 0x180038720
xor r15d, r15d
mov r8, qword [rbp - 0x40]
mov r10, qword [rbp - 0x58]
mov r11, qword [rbp - 0x70]
mov rdi, qword [rbp - 0x60]
jmp 0x1800389e1
mov eax, dword [rbp - 0x80]
add rbx, 0x70
add r8, 0x88
mov qword [rbp - 0x40], r8
sub r10, 1
mov qword [rbp - 0x58], r10
mov r9d, dword [rsp + 0x68]
jne 0x180038670
mov r13d, dword [rsp + 0x6c]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x180038a20
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x180038a28
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
cvttss2si eax, xmm0
inc eax
mov r12, qword [rbp - 0x70]
mov dword [r12 + 0x34], r15d
mov ebx, dword [r12 + 0x10]
test ebx, ebx
jg 0x180038a7b
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x18012ea8c]
jb 0x180038a57
mov ebx, 0x1000
jmp 0x180038a7b
comiss xmm0, dword [0x18012ea88]
jb 0x180038a67
mov ebx, 0x800
jmp 0x180038a7b
mov ebx, 0x200
mov eax, 0x400
comiss xmm0, dword [0x18012ea80]
cmovae ebx, eax
mov rax, r12
mov dword [rax + 0x30], ebx
sub ebx, dword [r12 + 0x14]
mov dword [rbp - 0xc], r15d
mov r14, r15
mov qword [rbp - 8], r15
test ebx, ebx
jle 0x180038acf
mov edi, ebx
cmp ebx, 8
mov eax, 8
cmovl edi, eax
test edi, edi
jle 0x180038acf
mov rax, qword [0x180206788]
test rax, rax
je 0x180038ab8
inc dword [rax + 0x3b0]
movsxd rcx, edi
shl rcx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], edi
mov dword [rbp - 0x10], ebx
mov dword [rsp + 0x20], ebx
mov r9, r14
mov edx, dword [r12 + 0x30]
lea rcx, [rbp + 0x40]
call fcn.180037610
lea rdx, [rbp + 0x40]
mov rcx, r12
call fcn.180053680
test r13d, r13d
jle 0x180038b61
mov rbx, qword [rsp + 0x78]
add rbx, 0x48
mov edi, r13d
mov r8d, dword [rbx]
test r8d, r8d
je 0x180038b57
mov rdx, qword [rbx - 0x18]
lea rcx, [rbp + 0x40]
call fcn.180037c60
mov r8d, r15d
cmp dword [rbx], 0
jle 0x180038b57
mov rdx, r15
mov rax, qword [rbx - 0x18]
cmp dword [rax + rdx + 0xc], 0
je 0x180038b4b
movzx ecx, word [rax + rdx + 0xa]
movzx eax, word [rax + rdx + 6]
add ecx, eax
cmp dword [r12 + 0x34], ecx
cmovge ecx, dword [r12 + 0x34]
mov dword [r12 + 0x34], ecx
inc r8d
add rdx, 0x10
cmp r8d, dword [rbx]
jl 0x180038b24
add rbx, 0x70
sub rdi, 1
jne 0x180038b04
mov eax, dword [r12 + 0x34]
test byte [r12], 1
jne 0x180038b92
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 [r12 + 0x34], ecx
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movaps xmm1, xmm6
divss xmm1, xmm0
movsxd rax, dword [r12 + 0x30]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm6, xmm0
movss dword [r12 + 0x38], xmm6
movss dword [r12 + 0x3c], xmm1
mov rbx, rax
movsxd rax, ecx
imul rbx, rax
mov rax, qword [0x180206788]
cmp byte [rsp + 0x61], 0
je 0x180038c01
lea rbx, [rbx*4]
test rax, rax
je 0x180038bf1
inc dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r12 + 0x28], rax
jmp 0x180038c1a
test rax, rax
je 0x180038c0c
inc dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r12 + 0x20], rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor al, al
mov byte [rsp + 0x60], al
test r13d, r13d
jle 0x180038f7f
mov rsi, r15
mov qword [rbp - 0x58], r15
mov r13, qword [rsp + 0x78]
add r13, 8
mov r14d, dword [rsp + 0x6c]
mov qword [rbp - 0x80], r14
movss xmm12, dword [0x18012e950]
nop dword [rax + rax]
cmp dword [r13 + 0x40], 0
je 0x180038f54
mov rdx, qword [r12 + 0x70]
add rdx, rsi
mov qword [rbp - 0x50], rdx
mov r9, qword [rdx + 0x80]
mov qword [rbp - 0x40], r9
movss xmm6, dword [r13 - 4]
movss xmm7, dword [r13]
lea rbx, [r9 + 0x50]
lea rdi, [r9 + 0x60]
cmp byte [rdx + 0x48], 0
jne 0x180038cc9
mov rcx, r9
call fcn.180054140
mov rdx, qword [rbp - 0x50]
mov eax, dword [rdx + 0x14]
mov r9, qword [rbp - 0x40]
mov dword [r9 + 0x14], eax
mov qword [r9 + 0x48], rdx
mov word [rbx], r15w
mov qword [r9 + 0x40], r12
movss dword [rdi], xmm6
movss dword [r9 + 0x64], xmm7
inc word [rbx]
movss xmm11, dword [rdx + 0x2c]
movss xmm0, dword [rdi]
addss xmm0, xmm12
cvttss2si eax, xmm0
movd xmm10, eax
cvtdq2ps xmm10, xmm10
addss xmm10, dword [rdx + 0x30]
mov r8d, dword [r12 + 0x14]
mov dword [rsp + 0x64], r8d
mov dword [rsp + 0x68], r15d
cmp dword [r13 + 0x40], 0
jle 0x180038f50
mov rcx, r15
mov qword [rbp - 0x78], rcx
mov rbx, r15
nop dword [rax]
nop word [rax + rax]
mov rdi, qword [r13 + 0x60]
mov rax, qword [r13 + 0x28]
cmp word [rcx + rax + 4], 0
jne 0x180038d3c
cmp word [rcx + rax + 6], 0
je 0x180038f24
movzx esi, word [rcx + rax + 8]
add esi, r8d
movzx r14d, word [rcx + rax + 0xa]
add r14d, r8d
movd xmm3, dword [rbx + rdi + 8]
cvtdq2ps xmm3, xmm3
addss xmm3, xmm11
movd xmm9, dword [rbx + rdi + 0xc]
cvtdq2ps xmm9, xmm9
addss xmm9, xmm10
mov eax, dword [rbx + rdi]
movd xmm8, eax
cvtdq2ps xmm8, xmm8
addss xmm8, xmm3
mov ecx, dword [rbx + rdi + 4]
movd xmm7, ecx
cvtdq2ps xmm7, xmm7
addss xmm7, xmm9
movd xmm0, dword [r12 + 0x30]
cvtdq2ps xmm0, xmm0
movd xmm6, esi
cvtdq2ps xmm6, xmm6
divss xmm6, xmm0
movd xmm2, dword [r12 + 0x34]
cvtdq2ps xmm2, xmm2
movd xmm5, r14d
cvtdq2ps xmm5, xmm5
divss xmm5, xmm2
add eax, esi
movd xmm4, eax
cvtdq2ps xmm4, xmm4
divss xmm4, xmm0
lea eax, [rcx + r14]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, xmm2
movss xmm0, dword [rbx + rdi + 0x10]
movss dword [rsp + 0x58], xmm0
movss dword [rsp + 0x50], xmm1
movss dword [rsp + 0x48], xmm4
movss dword [rsp + 0x40], xmm5
movss dword [rsp + 0x38], xmm6
movss dword [rsp + 0x30], xmm7
movss dword [rsp + 0x28], xmm8
movss dword [rsp + 0x20], xmm9
movzx r8d, word [rbx + rdi + 0x18]
mov rcx, r9
call fcn.180054730
mov rdx, qword [rbp - 0x40]
movsxd rax, dword [rdx + 0x28]
lea rcx, [rax + rax*4]
mov rax, qword [rdx + 0x30]
cmp byte [rbx + rdi + 0x14], 0
je 0x180038e3a
mov byte [rsp + 0x60], 1
or dword [rax + rcx*8 - 0x28], 1
movsxd rcx, dword [rbx + rdi]
movsxd r12, dword [r12 + 0x30]
mov r10, qword [rbx + rdi + 0x20]
mov r11, qword [rbp - 0x70]
mov r8, qword [r11 + 0x20]
movsxd rdx, r14d
imul rdx, r12
movsxd rax, esi
add rdx, rax
mov esi, r15d
test r8, r8
je 0x180038eb9
lea r11, [rdx + r8]
cmp dword [rbx + rdi + 4], 0
jle 0x180038f13
lea r14, [rcx*4]
nop dword [rax]
mov r9d, r15d
test ecx, ecx
jle 0x180038ea9
mov rdx, r11
lea r8, [r10 + 3]
nop
movzx eax, byte [r8]
mov byte [rdx], al
inc r9d
lea r8, [r8 + 4]
lea rdx, [rdx + 1]
mov ecx, dword [rbx + rdi]
cmp r9d, ecx
jl 0x180038e90
inc esi
add r11, r12
add r10, r14
cmp esi, dword [rbx + rdi + 4]
jl 0x180038e80
jmp 0x180038f13
mov rax, qword [r11 + 0x28]
lea r11, [rax + rdx*4]
cmp dword [rbx + rdi + 4], 0
jle 0x180038f13
lea r12, [r12*4]
lea r14, [rcx*4]
mov r8d, r15d
test ecx, ecx
jle 0x180038f05
mov rdx, r11
mov r9, r10
sub r9, r11
nop dword [rax + rax]
mov eax, dword [r9 + rdx]
mov dword [rdx], eax
inc r8d
lea rdx, [rdx + 4]
mov ecx, dword [rbx + rdi]
cmp r8d, ecx
jl 0x180038ef0
inc esi
add r11, r12
add r10, r14
cmp esi, dword [rbx + rdi + 4]
jl 0x180038ed8
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rbp - 0x50]
mov r12, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
add rbx, 0x28
add rcx, 0x10
mov qword [rbp - 0x78], rcx
cmp eax, dword [r13 + 0x40]
mov r9, qword [rbp - 0x40]
jl 0x180038d20
mov rsi, qword [rbp - 0x58]
mov r14, qword [rbp - 0x80]
mov qword [r13 + 0x28], r15
add r13, 0x70
add rsi, 0x88
mov qword [rbp - 0x58], rsi
sub r14, 1
mov qword [rbp - 0x80], r14
jne 0x180038c60
movzx eax, byte [rsp + 0x60]
mov r14, qword [rbp - 8]
mov r13d, dword [rsp + 0x6c]
mov byte [r12 + 0x1a], al
mov ecx, dword [rsp + 0x70]
mov rsi, qword [rbp - 0x48]
test ecx, ecx
jle 0x180038fbf
mov rbx, rsi
mov edi, ecx
mov rcx, qword [rbx]
test rcx, rcx
je 0x180038faf
mov rax, qword [0x180206788]
test rax, rax
je 0x180038faf
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rbx, 8
sub rdi, 1
jne 0x180038f95
test r13d, r13d
jle 0x18003902e
mov rbx, qword [rsp + 0x78]
add rbx, 0x18
mov edi, r13d
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x180038ff2
mov rax, qword [0x180206788]
test rax, rax
je 0x180038feb
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x180039014
mov rax, qword [0x180206788]
test rax, rax
je 0x18003900d
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x180039024
call fcn.18007ba20
mov qword [rbx], r15
add rbx, 0x70
sub rdi, 1
jne 0x180038fd0
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x180039067
mov qword [rbp + 0x20], 0
mov rax, qword [0x180206788]
test rax, rax
je 0x180039052
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, r15
mov qword [rsp + 0x78], rbx
mov qword [rbp + 0x28], rbx
mov rcx, r12
call fcn.180053c10
mov rcx, r12
call fcn.180053d50
mov edi, r15d
cmp dword [r12 + 0x58], 0
jle 0x180039180
mov rbx, r15
nop dword [rax]
mov r10, qword [r12 + 0x60]
mov r11, qword [rbx + r10 + 0x18]
test r11, r11
je 0x18003916f
mov r8d, dword [rbx + r10 + 8]
test r8d, r8d
je 0x18003916f
movzx eax, word [rbx + r10 + 6]
movd xmm8, eax
cvtdq2ps xmm8, xmm8
mulss xmm8, dword [r12 + 0x3c]
movzx ecx, word [rbx + r10 + 4]
movzx r9d, word [rbx + r10 + 2]
add eax, r9d
movd xmm6, eax
cvtdq2ps xmm6, xmm6
mulss xmm6, dword [r12 + 0x3c]
movzx edx, word [rbx + r10]
movss xmm7, dword [rbx + r10 + 0x14]
movss xmm3, dword [rbx + r10 + 0x10]
lea eax, [rdx + rcx]
movd xmm4, eax
cvtdq2ps xmm4, xmm4
mulss xmm4, dword [r12 + 0x38]
movd xmm5, ecx
cvtdq2ps xmm5, xmm5
mulss xmm5, dword [r12 + 0x38]
movd xmm2, r9d
cvtdq2ps xmm2, xmm2
addss xmm2, xmm7
movd xmm1, edx
cvtdq2ps xmm1, xmm1
addss xmm1, xmm3
movss xmm0, dword [rbx + r10 + 0xc]
movss dword [rsp + 0x58], xmm0
movss dword [rsp + 0x50], xmm6
movss dword [rsp + 0x48], xmm4
movss dword [rsp + 0x40], xmm8
movss dword [rsp + 0x38], xmm5
movss dword [rsp + 0x30], xmm2
movss dword [rsp + 0x28], xmm1
movss dword [rsp + 0x20], xmm7
xor edx, edx
mov rcx, r11
call fcn.180054730
inc edi
add rbx, 0x20
cmp edi, dword [r12 + 0x58]
jl 0x180039090
cmp dword [r12 + 0x48], 0
jle 0x1800391b2
mov rbx, r15
nop dword [rax + rax]
mov rax, qword [r12 + 0x50]
mov rcx, qword [rbx + rax]
cmp byte [rcx + 0x58], 0
je 0x1800391a4
call fcn.1800541f0
inc r15d
add rbx, 8
cmp r15d, dword [r12 + 0x48]
jl 0x180039190
mov byte [r12 + 0x19], 1
mov bl, 1
test r14, r14
je 0x1800391db
mov rax, qword [0x180206788]
test rax, rax
je 0x1800391d1
dec dword [rax + 0x3b0]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
test rsi, rsi
je 0x1800391fc
mov rax, qword [0x180206788]
test rax, rax
je 0x1800391f2
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x18003921e
mov rax, qword [0x180206788]
test rax, rax
je 0x180039217
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x180039240
mov rax, qword [0x180206788]
test rax, rax
je 0x180039239
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180039266
mov rcx, qword [0x180206788]
test rcx, rcx
je 0x18003925c
dec dword [rcx + 0x3b0]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
movzx eax, bl
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1800e4530
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x50]
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]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret