Function at 0x180031250
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 [0x180221010]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r12d, r8d
mov rsi, rdx
mov qword [rsp + 0x78], rdx
mov r13, rcx
xor r14d, r14d
cmp dword [rdx + 0x484], r14d
jge 0x180031303
mov dword [rbp - 0x3c], 0xffffffff
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r14
lea rcx, [rdx + 0x58]
test byte [rdx], 2
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x40], 0x1b00d9
je 0x1800312f3
mov dword [rbp - 0x40], 0x20002
call fcn.180030350
mov eax, dword [rsi + 0x58]
dec eax
mov dword [rsi + 0x484], eax
cmp dword [rsi + 0x488], r14d
jge 0x180031343
test byte [rsi], 4
jne 0x180031343
mov dword [rbp - 0x3c], 0xffffffff
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x40], 0x400041
lea rdx, [rbp - 0x40]
lea rcx, [rsi + 0x58]
call fcn.180030350
mov eax, dword [rsi + 0x58]
dec eax
mov dword [rsi + 0x488], eax
mov qword [rsi + 8], r14
mov qword [rsi + 0x30], r14
mov qword [rsi + 0x38], r14
mov qword [rsi + 0x40], r14
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x180031374
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x18003136e
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x180031395
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x18003138f
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x20], r14
mov qword [rsi + 0x28], r14
mov byte [rsi + 0x19], r14b
mov byte [rsp + 0x60], r14b
mov dword [rbp + 0x1c], r14d
mov rax, r14
mov qword [rbp - 0x80], rax
mov qword [rbp + 0x20], rax
mov dword [rbp - 4], r14d
mov qword [rbp - 0x68], r14
mov qword [rbp], r14
mov r15d, dword [rsi + 0x68]
mov dword [rsp + 0x74], r15d
mov eax, 8
test r15d, r15d
jle 0x180031410
mov ebx, r15d
cmp r15d, eax
cmovl ebx, eax
test ebx, ebx
jle 0x180031410
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x1800313f3
inc dword [rax + 0x3b4]
movsxd rax, ebx
imul rcx, rax, 0x70
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x80], rax
mov qword [rbp + 0x20], rax
mov dword [rbp + 0x1c], ebx
mov eax, 8
mov dword [rbp + 0x18], r15d
mov edi, dword [rsi + 0x48]
mov dword [rsp + 0x68], edi
test edi, edi
jle 0x180031458
mov ebx, edi
cmp edi, 8
cmovl ebx, eax
test ebx, ebx
jle 0x180031458
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x18003143d
inc dword [rax + 0x3b4]
movsxd rcx, ebx
shl rcx, 5
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov qword [rbp - 0x68], rax
mov qword [rbp], rax
mov dword [rbp - 4], ebx
mov dword [rbp - 8], edi
imul ecx, r15d, 0x70
movsxd r8, ecx
xor edx, edx
mov rbx, qword [rbp - 0x80]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov ecx, edi
shl ecx, 5
movsxd r8, ecx
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
xor r10d, r10d
mov r15d, r10d
cmp dword [rsi + 0x68], r10d
jle 0x1800315ae
mov r14d, r10d
add rbx, 0x44
nop dword [rax]
mov rdi, qword [rsi + 0x70]
add rdi, r14
mov dword [rbx - 4], 0xffffffff
mov r8d, r10d
cmp dword [rsi + 0x48], 0
jle 0x1800315a7
mov edx, 0xffffffff
mov r9, r10
mov eax, edx
cmp edx, 0xffffffff
jne 0x1800314f1
mov rax, qword [rsi + 0x50]
mov rcx, qword [r9 + rax]
cmp qword [rdi + 0x80], rcx
jne 0x1800314e2
mov dword [rbx - 4], r8d
mov edx, r8d
inc r8d
add r9, 8
mov eax, edx
cmp r8d, dword [rsi + 0x48]
jl 0x1800314c3
cmp eax, 0xffffffff
je 0x1800315a7
mov r9d, r12d
mov r8, rdi
mov rdx, r13
lea rcx, [rbx - 0x44]
call fcn.1800304c0
test al, al
je 0x1800315a7
mov eax, dword [rdi + 0x4c]
shr eax, 8
and al, 1
or byte [rsp + 0x60], al
movsxd r8, dword [rbx - 4]
shl r8, 5
mov r9, qword [rbp - 0x68]
add r8, r9
mov rax, qword [rdi + 0x38]
lea rdx, [0x18020032c]
test rax, rax
cmovne rdx, rax
mov qword [rbx - 0xc], rdx
cmp word [rdx], 0
je 0x18003156c
nop dword [rax + rax]
movzx eax, word [rdx + 2]
test ax, ax
je 0x18003156c
mov ecx, eax
cmp dword [rbx], eax
cmovge ecx, dword [rbx]
mov dword [rbx], ecx
add rdx, 4
cmp word [rdx], 0
jne 0x180031550
inc dword [r8]
mov ecx, dword [rbx]
cmp dword [r8 + 4], ecx
cmovge ecx, dword [r8 + 4]
mov dword [r8 + 4], ecx
inc r15d
add rbx, 0x70
add r14, 0x88
mov rsi, qword [rsp + 0x78]
cmp r15d, dword [rsi + 0x68]
mov r10d, 0
jl 0x1800314a0
mov rbx, qword [rbp - 0x80]
jmp 0x1800315b2
xor bl, bl
jmp 0x1800324e0
mov r9, qword [rbp - 0x68]
mov r12d, r10d
mov r15d, 1
mov dword [rsp + 0x70], r15d
mov r13d, dword [rsp + 0x74]
mov qword [rbp - 0x60], r13
test r13d, r13d
jle 0x1800318fd
lea r14, [rbx + 0x58]
mov esi, r13d
mov qword [rbp - 0x78], r13
nop dword [rax]
movsxd r15, dword [r14 - 0x18]
shl r15, 5
add r15, r9
mov ebx, dword [r14 - 0x14]
add ebx, 0x20
sar ebx, 5
mov ecx, dword [r14 - 4]
cmp ebx, ecx
jle 0x180031626
test ecx, ecx
je 0x18003160c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x180031611
mov eax, 8
lea rdi, [r14 - 8]
mov edx, ebx
cmp eax, ebx
cmovg edx, eax
mov rcx, rdi
call fcn.180026ee0
jmp 0x18003162a
lea rdi, [r14 - 8]
mov dword [rdi], ebx
movsxd r8, ebx
shl r8, 2
xor edx, edx
mov rcx, qword [r14]
call sub.VCRUNTIME140.dll_memset
cmp dword [r15 + 0x10], 0
jne 0x180031690
mov ebx, dword [r15 + 4]
add ebx, 0x20
sar ebx, 5
mov ecx, dword [r15 + 0x14]
cmp ebx, ecx
jle 0x18003167a
test ecx, ecx
je 0x180031665
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18003166a
mov eax, 8
mov edx, ebx
cmp eax, ebx
cmovg edx, eax
lea rcx, [r15 + 0x10]
call fcn.180026ee0
mov dword [r15 + 0x10], ebx
movsxd r8, ebx
shl r8, 2
xor edx, edx
mov rcx, qword [r15 + 0x18]
call sub.VCRUNTIME140.dll_memset
mov r13, qword [r14 - 0x20]
cmp word [r13], 0
je 0x18003171e
movzx eax, word [r13 + 2]
test ax, ax
je 0x18003171a
movzx edi, word [r13]
cmp edi, eax
ja 0x18003170e
nop dword [rax]
nop word [rax + rax]
mov ecx, edi
and ecx, 0x1f
mov esi, 1
shl esi, cl
movsxd rbx, edi
sar rbx, 5
mov rax, qword [r15 + 0x18]
test dword [rax + rbx*4], esi
jne 0x180031703
mov edx, edi
mov rcx, qword [r14 - 0x40]
call fcn.180091100
test eax, eax
je 0x180031703
inc dword [r14 - 0x10]
inc dword [r15 + 8]
mov rax, qword [r14]
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
jle 0x1800316c0
add r13, 4
cmp word [r13], 0
jne 0x1800316a0
mov rsi, qword [rbp - 0x78]
add r14, 0x70
sub rsi, 1
mov qword [rbp - 0x78], rsi
mov r9, qword [rbp - 0x68]
jne 0x1800315e0
mov rsi, qword [rbp - 0x80]
add rsi, 0x68
mov r15, qword [rbp - 0x60]
mov qword [rbp - 0x78], r15
mov dword [rsp + 0x6c], r12d
nop dword [rax]
movsxd rbx, dword [rsi - 0x20]
cmp ebx, dword [rsi - 4]
jle 0x1800317be
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x18003176b
inc dword [rax + 0x3b4]
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 0x1800317b8
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 0x1800317b2
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x1800317b2
dec dword [rax + 0x3b4]
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 - 0x48], rax
mov r14, r13
cmp r13, rax
jae 0x1800318a2
xor r12d, r12d
mov r15d, dword [r14]
test r15d, r15d
je 0x180031891
mov edi, r12d
bt r15d, edi
jae 0x180031882
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rbp - 0x30], xmm6
mov qword [rbp - 0x20], rax
lea rcx, [r14*8]
lea rax, [r13*8]
sub ecx, eax
and ecx, 0xffffffe0
add ecx, edi
movzx eax, cx
mov dword [rbp - 0x28], eax
mov r8d, dword [rsi - 4]
mov ecx, dword [rsi - 8]
cmp ecx, r8d
jne 0x18003185c
inc ecx
test r8d, r8d
je 0x180031847
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x18003184c
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rsi - 8]
call fcn.1800326e0
movsxd rax, dword [rsi - 8]
lea rcx, [rax + rax*4]
mov rax, qword [rsi]
movups xmmword [rax + rcx*8], xmm6
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rax + rcx*8 + 0x10], xmm0
movsd xmm1, qword [rbp - 0x20]
movsd qword [rax + rcx*8 + 0x20], xmm1
inc dword [rsi - 8]
inc edi
cmp edi, 0x20
jb 0x1800317f3
mov rax, qword [rbp - 0x48]
add r14, 4
cmp r14, rax
jb 0x1800317e4
mov r15, qword [rbp - 0x78]
mov rcx, qword [rsi - 0x10]
test rcx, rcx
je 0x1800318d2
xor eax, eax
mov qword [rsi - 0x18], rax
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x1800318c3
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r10d, r10d
mov qword [rsi - 0x10], r10
jmp 0x1800318d5
xor r10d, r10d
add rsi, 0x70
sub r15, 1
mov qword [rbp - 0x78], r15
jne 0x180031750
mov r12d, dword [rsp + 0x6c]
mov r14, qword [rbp - 0x60]
mov r15d, 1
mov r13d, dword [rsp + 0x74]
jmp 0x180031900
mov r14, r13
mov eax, dword [rsp + 0x68]
test eax, eax
jle 0x18003194a
mov rbx, qword [rbp - 0x68]
add rbx, 0x18
mov edi, eax
mov rcx, qword [rbx]
test rcx, rcx
je 0x180031940
mov qword [rbx - 8], 0
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x180031934
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r10d, r10d
mov qword [rbx], r10
add rbx, 0x20
sub rdi, 1
jne 0x180031912
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x180031981
mov qword [rbp - 8], 0
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x18003196d
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r10d, r10d
mov ecx, r10d
mov qword [rbp - 0x68], rcx
mov qword [rbp], rcx
mov dword [rbp - 0x3c], r10d
mov rdi, r10
mov qword [rbp - 0x78], r10
mov qword [rbp - 0x38], r10
mov esi, 8
test r12d, r12d
jle 0x1800319d4
mov ebx, r12d
cmp r12d, esi
cmovl ebx, esi
test ebx, ebx
jle 0x1800319d4
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x1800319b9
inc dword [rax + 0x3b4]
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 - 0x78], rax
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x3c], ebx
mov dword [rbp - 0x40], r12d
shl r12d, 4
movsxd r8, r12d
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x64], eax
mov dword [rbp + 0x2c], eax
mov qword [rbp + 0x30], rax
mov rax, qword [0x1803d64e0]
mov ecx, 0x40000
test rax, rax
je 0x180031a0d
inc dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x180031a28
inc dword [rax + 0x3b4]
mov ecx, 0x40
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x50], rax
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x2c], esi
mov qword [rax], rbx
mov dword [rbp + 0x28], r15d
xor r15d, r15d
mov eax, r15d
mov dword [rbp - 0x70], eax
mov r9d, r15d
mov dword [rsp + 0x6c], r15d
movss xmm6, dword [0x180206198]
test r13d, r13d
jle 0x180031e29
mov r8d, r15d
mov qword [rbp - 0x18], r15
mov rbx, qword [rbp - 0x80]
add rbx, 0x60
mov r10, qword [rsp + 0x78]
nop dword [rax + rax]
mov rdx, qword [r10 + 0x70]
mov ecx, dword [rbx - 0x18]
test ecx, ecx
je 0x180031e02
movsxd rax, r9d
shl rax, 4
add rax, rdi
mov qword [rbx - 0x30], rax
add r9d, ecx
mov dword [rsp + 0x6c], r9d
movss xmm1, dword [r8 + rdx + 0x50]
ucomiss xmm1, xmm6
jp 0x180031aba
jne 0x180031aba
mov byte [rsp + 0x61], 0
jmp 0x180031b08
mov byte [rsp + 0x61], 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 0x180031ad0
mov r8, qword [rbp - 0x18]
mov eax, dword [r10 + 0x14]
mov dword [rbp - 0x58], eax
mov r14d, r15d
mov dword [rsp + 0x68], r15d
cmp dword [rbx], 0
jle 0x180031dfb
mov r13, r15
mov qword [rbp - 0x48], r15
nop word [rax + rax]
mov r12, qword [rbx + 8]
mov edx, dword [r15 + r12 + 0x18]
mov rcx, qword [rbx - 0x48]
call fcn.180091100
test eax, eax
je 0x180031dc9
mov r8d, dword [rbx - 0x3c]
mov edx, eax
mov rcx, qword [rbx - 0x48]
call fcn.180092100
test eax, eax
jne 0x180031dc9
mov rcx, qword [rbx - 0x48]
mov rdi, qword [rcx + 0x78]
test byte [rbx - 0x40], 0x20
je 0x180031b7b
mov rcx, rdi
call fcn.18009a800
mov rcx, qword [rbx - 0x48]
test byte [rbx - 0x40], 0x40
je 0x180031b8d
mov rcx, rdi
call fcn.18009a900
mov rcx, qword [rbx - 0x48]
lea rax, [rdi + 0x30]
test rax, rax
je 0x180031dc9
mov rdi, qword [rcx + 0x78]
mov edx, dword [rbx - 0x38]
mov rcx, rdi
call fcn.180094b40
test eax, eax
je 0x180031bb5
xor ecx, ecx
mov qword [rbp - 0x10], rcx
jmp 0x180031c2c
mov rax, qword [rbx - 0x48]
mov r8, qword [rax + 0x78]
add r8, 0x68
mov qword [rbp - 0x10], r8
mov eax, dword [r8 + 4]
mov dword [r15 + r12], eax
mov eax, dword [r8]
mov dword [r15 + r12 + 4], eax
mov rax, qword [rbx - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x90]
mov dword [r15 + r12 + 8], eax
mov rax, qword [rbx - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x94]
neg eax
mov dword [r15 + r12 + 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 [r15 + r12 + 0x10], xmm0
cmp byte [r8 + 0x1a], 7
sete al
mov byte [r15 + r12 + 0x14], al
xor ecx, ecx
mov r14d, dword [r15 + r12]
imul r14d, dword [r15 + r12 + 4]
shl r14d, 2
mov edi, dword [rsp + 0x64]
lea eax, [r14 + rdi]
cmp eax, 0x40000
jle 0x180031d33
mov edi, ecx
mov dword [rsp + 0x64], ecx
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x180031c65
inc dword [rax + 0x3b4]
mov ecx, 0x40000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
mov r8d, dword [rsp + 0x70]
cmp r8d, esi
jne 0x180031d16
lea edi, [r8 + 1]
test esi, esi
je 0x180031c94
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x180031c99
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, esi
jle 0x180031d12
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x180031cb4
inc dword [rax + 0x3b4]
movsxd rcx, edi
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x180031cfd
movsxd r8, dword [rsp + 0x70]
shl r8, 3
mov rdx, rax
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [0x1803d64e0]
test rcx, rcx
je 0x180031cf3
dec dword [rcx + 0x3b4]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rsi
mov qword [rbp - 0x50], rax
mov qword [rbp + 0x30], rax
mov esi, edi
mov dword [rbp + 0x2c], edi
mov r8d, dword [rsp + 0x70]
mov edi, dword [rsp + 0x64]
movsxd rax, r8d
mov rcx, qword [rbp - 0x50]
mov qword [rcx + rax*8], r13
inc r8d
mov dword [rsp + 0x70], r8d
mov dword [rbp + 0x28], r8d
mov r13, qword [rbp - 0x48]
jmp 0x180031d38
mov r8d, dword [rsp + 0x70]
lea eax, [r8 - 1]
cdqe
movsxd rcx, edi
mov rdx, qword [rbp - 0x50]
mov r8, qword [rdx + rax*8]
add r8, rcx
mov qword [r15 + r12 + 0x20], r8
add edi, r14d
mov dword [rsp + 0x64], edi
lea rax, [rbp + 0x90]
cmp byte [rsp + 0x61], 0
mov ecx, 0
cmove rax, rcx
mov qword [rsp + 0x20], rax
mov r9d, dword [r15 + r12]
mov rdx, qword [rbp - 0x10]
call fcn.1800306b0
mov edi, dword [rbp - 0x58]
movzx ecx, di
add cx, word [r15 + r12]
mov rax, qword [rbx - 0x30]
mov word [rax + r13 + 4], cx
movzx ecx, di
add cx, word [r15 + r12 + 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 - 0x70]
add eax, ecx
mov dword [rbp - 0x70], eax
mov r14d, dword [rsp + 0x68]
jmp 0x180031dcc
mov eax, dword [rbp - 0x70]
inc r14d
mov dword [rsp + 0x68], r14d
add r15, 0x28
add r13, 0x10
mov qword [rbp - 0x48], r13
cmp r14d, dword [rbx]
jl 0x180031b30
mov r8, qword [rbp - 0x18]
mov r10, qword [rsp + 0x78]
mov rdi, qword [rbp - 0x78]
xor r15d, r15d
jmp 0x180031dfe
mov eax, dword [rbp - 0x70]
mov r14, qword [rbp - 0x60]
add rbx, 0x70
add r8, 0x88
mov qword [rbp - 0x18], r8
sub r14, 1
mov qword [rbp - 0x60], r14
mov r9d, dword [rsp + 0x6c]
jne 0x180031a80
mov r13d, dword [rsp + 0x74]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x180031e41
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x180031e49
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
cvttss2si eax, xmm0
inc eax
mov r14, qword [rsp + 0x78]
mov dword [r14 + 0x34], r15d
mov ebx, dword [r14 + 0x10]
test ebx, ebx
jg 0x180031e9b
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x18020635c]
jb 0x180031e77
mov ebx, 0x1000
jmp 0x180031e9b
comiss xmm0, dword [0x180206358]
jb 0x180031e87
mov ebx, 0x800
jmp 0x180031e9b
mov ebx, 0x200
mov eax, 0x400
comiss xmm0, dword [0x180206344]
cmovae ebx, eax
mov dword [r14 + 0x30], ebx
sub ebx, dword [r14 + 0x14]
mov dword [rbp + 0xc], r15d
mov rsi, r15
mov qword [rbp + 0x10], r15
test ebx, ebx
jle 0x180031eec
mov edi, ebx
cmp ebx, 8
mov eax, 8
cmovl edi, eax
test edi, edi
jle 0x180031eec
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x180031ed5
inc dword [rax + 0x3b4]
movsxd rcx, edi
shl rcx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov qword [rbp + 0x10], rax
mov dword [rbp + 0xc], edi
mov dword [rbp + 8], ebx
mov dword [rsp + 0x20], ebx
mov r9, rsi
mov edx, dword [r14 + 0x30]
lea rcx, [rbp + 0x40]
call fcn.180031090
lea rdx, [rbp + 0x40]
mov rcx, r14
call fcn.18002d0c0
mov r12, qword [rbp - 0x80]
test r13d, r13d
jle 0x180031f7a
lea rbx, [r12 + 0x48]
mov edi, r13d
mov r8d, dword [rbx]
test r8d, r8d
je 0x180031f70
mov rdx, qword [rbx - 0x18]
lea rcx, [rbp + 0x40]
call fcn.1800274a0
mov r8d, r15d
cmp dword [rbx], 0
jle 0x180031f70
mov rdx, r15
mov rax, qword [rbx - 0x18]
cmp dword [rdx + rax + 0xc], 0
je 0x180031f64
movzx ecx, word [rdx + rax + 0xa]
movzx eax, word [rdx + rax + 6]
add ecx, eax
cmp dword [r14 + 0x34], ecx
cmovge ecx, dword [r14 + 0x34]
mov dword [r14 + 0x34], ecx
inc r8d
add rdx, 0x10
cmp r8d, dword [rbx]
jl 0x180031f40
add rbx, 0x70
sub rdi, 1
jne 0x180031f20
mov eax, dword [r14 + 0x34]
test byte [r14], 1
jne 0x180031fa9
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
inc eax
mov dword [r14 + 0x34], eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movaps xmm1, xmm6
divss xmm1, xmm0
mov ecx, dword [r14 + 0x30]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm6, xmm0
movss dword [r14 + 0x38], xmm6
movss dword [r14 + 0x3c], xmm1
imul ecx, eax
cmp byte [rsp + 0x60], 0
je 0x180032016
lea eax, [rcx*4]
movsxd rcx, eax
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x180031ffe
inc dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r14 + 0x28], rax
mov ecx, dword [r14 + 0x30]
imul ecx, dword [r14 + 0x34]
shl ecx, 2
jmp 0x18003203e
movsxd rcx, ecx
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x18003202b
inc dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r14 + 0x20], rax
mov ecx, dword [r14 + 0x30]
imul ecx, dword [r14 + 0x34]
movsxd r8, ecx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor dl, dl
mov byte [rsp + 0x60], dl
test r13d, r13d
jle 0x1800323c3
mov qword [rbp - 0x10], r15
lea r13, [r12 + 8]
mov qword [rbp - 0x48], r13
mov r12d, dword [rsp + 0x74]
mov qword [rbp - 0x18], r12
movss xmm12, dword [0x18020614c]
nop dword [rax]
cmp dword [r13 + 0x40], 0
je 0x180032396
mov r14, qword [r14 + 0x70]
add r14, r15
mov qword [rbp - 0x60], r14
mov rsi, qword [r14 + 0x80]
mov qword [rbp - 0x70], rsi
movss xmm6, dword [r13 - 4]
movss xmm7, dword [r13]
cmp byte [r14 + 0x48], 0
jne 0x1800320e5
mov rcx, rsi
call fcn.18002de00
mov eax, dword [r14 + 0x14]
mov dword [rsi + 0x14], eax
mov qword [rsi + 0x48], r14
xor eax, eax
mov word [rsi + 0x50], ax
mov rcx, qword [rsp + 0x78]
mov qword [rsi + 0x40], rcx
movss dword [rsi + 0x5c], xmm6
movss dword [rsi + 0x60], xmm7
movzx edx, byte [rsp + 0x60]
inc word [rsi + 0x50]
movss xmm11, dword [r14 + 0x2c]
movss xmm0, dword [rsi + 0x5c]
addss xmm0, xmm12
cvttss2si eax, xmm0
movd xmm10, eax
cvtdq2ps xmm10, xmm10
addss xmm10, dword [r14 + 0x30]
mov r14, qword [rsp + 0x78]
mov ecx, dword [r14 + 0x14]
mov dword [rsp + 0x6c], ecx
xor esi, esi
mov dword [rsp + 0x68], esi
cmp dword [r13 + 0x40], esi
jle 0x180032392
mov r12d, esi
mov ebx, esi
nop
mov rdi, qword [r13 + 0x60]
mov rax, qword [r13 + 0x28]
cmp word [r12 + rax + 4], 0
jne 0x18003214e
cmp word [r12 + rax + 6], 0
je 0x18003236e
movzx r8d, word [r12 + rax + 8]
add r8d, ecx
mov dword [rbp - 0x58], r8d
movzx eax, word [r12 + rax + 0xa]
add eax, ecx
mov dword [rsp + 0x64], eax
movsxd rdx, dword [rbx + rdi]
movsxd r14, dword [r14 + 0x30]
mov r10, qword [rbx + rdi + 0x20]
mov r11, qword [rsp + 0x78]
mov rcx, qword [r11 + 0x20]
cdqe
imul rax, r14
movsxd r8, r8d
test rcx, rcx
je 0x1800321f0
lea r11, [r8 + rax]
add r11, rcx
xor r8d, r8d
mov esi, r8d
mov ecx, dword [rbx + rdi + 4]
test ecx, ecx
jle 0x18003226b
mov eax, edx
lea r15, [rdx*4]
nop
mov r9d, r8d
mov edx, eax
test eax, eax
jle 0x1800321dc
mov rcx, r11
lea r8, [r10 + 3]
movzx eax, byte [r8]
mov byte [rcx], al
inc r9d
lea r8, [r8 + 4]
lea rcx, [rcx + 1]
mov edx, dword [rbx + rdi]
cmp r9d, edx
jl 0x1800321c0
xor r8d, r8d
inc esi
add r11, r14
add r10, r15
mov ecx, dword [rbx + rdi + 4]
mov eax, edx
cmp esi, ecx
jl 0x1800321b0
jmp 0x18003226b
lea rcx, [r8 + rax]
mov rax, qword [r11 + 0x28]
lea r11, [rax + rcx*4]
mov ecx, dword [rbx + rdi + 4]
test ecx, ecx
jle 0x18003226b
mov eax, edx
lea r14, [r14*4]
lea r15, [rdx*4]
xor r13d, r13d
nop dword [rax]
mov r8d, r13d
mov edx, eax
test eax, eax
jle 0x180032255
mov rcx, r11
mov r9, r10
sub r9, r11
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r9 + rcx]
mov dword [rcx], eax
inc r8d
lea rcx, [rcx + 4]
mov edx, dword [rbx + rdi]
cmp r8d, edx
jl 0x180032240
inc esi
add r11, r14
add r10, r15
mov ecx, dword [rbx + rdi + 4]
mov eax, edx
cmp esi, ecx
jl 0x180032220
mov r13, qword [rbp - 0x48]
movd xmm3, dword [rbx + rdi + 8]
cvtdq2ps xmm3, xmm3
addss xmm3, xmm11
movd xmm9, dword [rbx + rdi + 0xc]
cvtdq2ps xmm9, xmm9
addss xmm9, xmm10
movd xmm8, edx
cvtdq2ps xmm8, xmm8
addss xmm8, xmm3
movd xmm7, ecx
cvtdq2ps xmm7, xmm7
addss xmm7, xmm9
mov r14, qword [rsp + 0x78]
movd xmm0, dword [r14 + 0x30]
cvtdq2ps xmm0, xmm0
mov eax, dword [rbp - 0x58]
movd xmm6, eax
cvtdq2ps xmm6, xmm6
divss xmm6, xmm0
movd xmm2, dword [r14 + 0x34]
cvtdq2ps xmm2, xmm2
mov r8d, dword [rsp + 0x64]
movd xmm5, r8d
cvtdq2ps xmm5, xmm5
divss xmm5, xmm2
add eax, edx
movd xmm4, eax
cvtdq2ps xmm4, xmm4
divss xmm4, xmm0
lea eax, [rcx + r8]
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 rdx, qword [rbp - 0x60]
mov rsi, qword [rbp - 0x70]
mov rcx, rsi
call fcn.18002e300
movsxd rax, dword [rsi + 0x28]
lea rcx, [rax + rax*4]
mov rax, qword [rsi + 0x30]
cmp byte [rbx + rdi + 0x14], 0
je 0x180032363
mov dl, 1
mov byte [rsp + 0x60], dl
or dword [rax + rcx*8 - 0x28], 1
jmp 0x180032368
movzx edx, byte [rsp + 0x60]
xor esi, esi
mov ecx, dword [rsp + 0x6c]
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
add rbx, 0x28
add r12, 0x10
cmp eax, dword [r13 + 0x40]
jl 0x180032130
mov r15, qword [rbp - 0x10]
mov r12, qword [rbp - 0x18]
mov qword [r13 + 0x28], rsi
add r13, 0x70
mov qword [rbp - 0x48], r13
add r15, 0x88
mov qword [rbp - 0x10], r15
sub r12, 1
mov qword [rbp - 0x18], r12
jne 0x180032080
mov rsi, qword [rbp + 0x10]
mov r13d, dword [rsp + 0x74]
xor r15d, r15d
mov byte [r14 + 0x19], dl
mov eax, dword [rsp + 0x70]
mov r14, qword [rbp - 0x50]
test eax, eax
jle 0x180032402
mov rbx, r14
mov edi, eax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800323f2
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x1800323f2
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rbx, 8
sub rdi, 1
jne 0x1800323d8
test r13d, r13d
jle 0x180032470
mov rbx, qword [rbp - 0x80]
add rbx, 0x18
mov edi, r13d
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x180032434
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x18003242d
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x180032456
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x18003244f
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x180032466
call fcn.180090b00
mov qword [rbx], r15
add rbx, 0x70
sub rdi, 1
jne 0x180032412
mov rcx, qword [rsp + 0x78]
call fcn.18002db60
mov bl, 1
test rsi, rsi
je 0x18003249d
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x180032493
dec dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
test r14, r14
je 0x1800324be
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x1800324b4
dec dword [rax + 0x3b4]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1800324e0
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x1800324d9
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x180032502
mov rax, qword [0x1803d64e0]
test rax, rax
je 0x1800324fb
dec dword [rax + 0x3b4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x180032527
mov rcx, qword [0x1803d64e0]
test rcx, rcx
je 0x18003251d
dec dword [rcx + 0x3b4]
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.1801123b0
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