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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rbx
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e8
mov qword [rax + 8], rsi
xor esi, esi
mov qword [rax - 0x18], rdi
mov rdi, rdx
mov qword [rax - 0x20], r12
mov r12d, r8d
mov qword [rax - 0x28], r13
mov r13, rcx
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
cmp dword [rdx + 0x484], esi
jge 0x18021ae20
test byte [rdx], 2
lea rcx, [rdx + 0x58]
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x2c], 0xffffffff
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov dword [rbp - 0x30], 0x1b00f5
je 0x18021ae10
mov dword [rbp - 0x30], 0x20002
call fcn.180201cc0
mov eax, dword [rdi + 0x58]
dec eax
mov dword [rdi + 0x484], eax
cmp dword [rdi + 0x488], esi
jge 0x18021ae5f
test byte [rdi], 4
jne 0x18021ae5f
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x2c], 0xffffffff
lea rcx, [rdi + 0x58]
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov dword [rbp - 0x30], 0x400041
call fcn.180201cc0
mov eax, dword [rdi + 0x58]
dec eax
mov dword [rdi + 0x488], eax
mov rcx, qword [rdi + 0x20]
mov qword [rdi + 8], rsi
mov qword [rdi + 0x30], rsi
mov qword [rdi + 0x38], rsi
mov qword [rdi + 0x40], rsi
test rcx, rcx
je 0x18021ae90
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021ae8a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x18021aeb1
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021aeab
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [rdi + 0x68]
mov r15, rsi
mov qword [rdi + 0x20], rsi
mov r14, rsi
mov qword [rdi + 0x28], rsi
mov edx, 8
mov byte [rdi + 0x1a], sil
mov byte [rbp + 0x218], sil
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x70], rsi
mov dword [rsp + 0x70], ecx
test ecx, ecx
jle 0x18021af19
cmp ecx, edx
mov eax, ecx
cmovl eax, edx
test eax, eax
jle 0x18021af19
mov rcx, qword [0x1802c9e60]
test rcx, rcx
je 0x18021af00
inc dword [rcx + 0xf4]
cdqe
imul rcx, rax, 0x70
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
mov qword [rsp + 0x78], rax
mov edx, 8
mov ebx, dword [rdi + 0x48]
mov dword [rsp + 0x60], ebx
test ebx, ebx
jle 0x18021af56
cmp ebx, 8
mov ecx, ebx
cmovl ecx, edx
test ecx, ecx
jle 0x18021af56
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021af42
inc dword [rax + 0xf4]
movsxd rcx, ecx
shl rcx, 5
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov qword [rbp - 0x70], rax
imul ecx, dword [rsp + 0x70], 0x70
xor edx, edx
movsxd r8, ecx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
mov ecx, ebx
xor edx, edx
shl ecx, 5
movsxd r8, ecx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov r10, qword [rbp + 0x208]
mov r15d, esi
cmp dword [r10 + 0x68], esi
jle 0x18021b0ab
mov rbx, qword [rsp + 0x78]
mov r14, rsi
add rbx, 0x44
nop word [rax + rax]
mov rdi, qword [r10 + 0x70]
mov r8d, esi
add rdi, r14
mov dword [rbx - 4], 0xffffffff
cmp dword [r10 + 0x48], 0
jle 0x18021b0a4
mov edx, 0xffffffff
mov r9, rsi
mov eax, edx
cmp edx, 0xffffffff
jne 0x18021aff2
mov rax, qword [r10 + 0x50]
mov rcx, qword [r9 + rax]
cmp qword [rdi + 0x80], rcx
jne 0x18021afe3
mov dword [rbx - 4], r8d
mov edx, r8d
inc r8d
add r9, 8
mov eax, edx
cmp r8d, dword [r10 + 0x48]
jl 0x18021afc4
cmp eax, 0xffffffff
je 0x18021b0a4
mov r9d, r12d
lea rcx, [rbx - 0x44]
mov r8, rdi
mov rdx, r13
call fcn.180219db0
test al, al
je 0x18021b0a4
mov eax, dword [rdi + 0x4c]
lea rdx, [0x180181d74]
movsxd r8, dword [rbx - 4]
mov r9, qword [rbp - 0x70]
shr eax, 8
and al, 1
shl r8, 5
or byte [rbp + 0x218], al
add r8, r9
mov rax, qword [rdi + 0x38]
test rax, rax
cmovne rdx, rax
mov qword [rbx - 0xc], rdx
cmp word [rdx], 0
je 0x18021b06c
nop
movzx eax, word [rdx + 2]
test ax, ax
je 0x18021b06c
cmp dword [rbx], eax
mov ecx, eax
cmovge ecx, dword [rbx]
add rdx, 4
mov dword [rbx], ecx
cmp word [rdx], 0
jne 0x18021b050
inc dword [r8]
mov esi, 0
mov ecx, dword [rbx]
cmp dword [r8 + 4], ecx
mov r10, qword [rbp + 0x208]
cmovge ecx, dword [r8 + 4]
inc r15d
add rbx, 0x70
mov dword [r8 + 4], ecx
add r14, 0x88
cmp r15d, dword [r10 + 0x68]
jl 0x18021afa0
jmp 0x18021b0af
xor bl, bl
jmp 0x18021c12a
mov r9, qword [rbp - 0x70]
mov ecx, dword [rsp + 0x70]
xor r13d, r13d
movaps xmmword [rsp + 0x2b0], xmm6
mov r12d, r13d
movaps xmmword [rsp + 0x250], xmm12
mov qword [rbp - 0x50], rcx
test ecx, ecx
jle 0x18021b408
mov r14, qword [rsp + 0x78]
mov esi, ecx
add r14, 0x58
mov qword [rbp - 0x78], rcx
nop word [rax + rax]
movsxd r15, dword [r14 - 0x18]
mov ebx, dword [r14 - 0x14]
mov ecx, dword [r14 - 4]
add ebx, 0x20
shl r15, 5
add r15, r9
sar ebx, 5
cmp ebx, ecx
jle 0x18021b136
test ecx, ecx
je 0x18021b11c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18021b121
mov eax, 8
cmp eax, ebx
lea rdi, [r14 - 8]
mov edx, ebx
mov rcx, rdi
cmovg edx, eax
call fcn.1801f9ad0
jmp 0x18021b13a
lea rdi, [r14 - 8]
mov dword [rdi], ebx
xor edx, edx
mov rcx, qword [r14]
movsxd r8, ebx
shl r8, 2
call sub.VCRUNTIME140.dll_memset
cmp dword [r15 + 0x10], 0
jne 0x18021b1a0
mov ebx, dword [r15 + 4]
mov ecx, dword [r15 + 0x14]
add ebx, 0x20
sar ebx, 5
cmp ebx, ecx
jle 0x18021b18a
test ecx, ecx
je 0x18021b175
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18021b17a
mov eax, 8
cmp eax, ebx
lea rcx, [r15 + 0x10]
mov edx, ebx
cmovg edx, eax
call fcn.1801f9ad0
mov dword [r15 + 0x10], ebx
xor edx, edx
mov rcx, qword [r15 + 0x18]
movsxd r8, ebx
shl r8, 2
call sub.VCRUNTIME140.dll_memset
mov r13, qword [r14 - 0x20]
cmp word [r13], 0
je 0x18021b23a
movzx eax, word [r13 + 2]
test ax, ax
je 0x18021b236
movzx edi, word [r13]
cmp edi, eax
ja 0x18021b226
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r15 + 0x18]
mov esi, edi
movsxd rbx, edi
and esi, 0x1f
sar rbx, 5
mov eax, dword [rax + rbx*4]
bt eax, esi
jb 0x18021b21b
mov rcx, qword [r14 - 0x40]
mov edx, edi
call fcn.180222330
test eax, eax
je 0x18021b21b
inc dword [r14 - 0x10]
inc dword [r15 + 8]
mov rcx, qword [r14]
mov eax, dword [rcx + rbx*4]
bts eax, esi
mov dword [rcx + rbx*4], eax
mov rcx, qword [r15 + 0x18]
mov eax, dword [rcx + rbx*4]
bts eax, esi
mov dword [rcx + rbx*4], eax
inc r12d
movzx eax, word [r13 + 2]
inc edi
cmp edi, eax
jle 0x18021b1d0
add r13, 4
cmp word [r13], 0
jne 0x18021b1b0
mov rsi, qword [rbp - 0x78]
mov r9, qword [rbp - 0x70]
add r14, 0x70
sub rsi, 1
mov qword [rbp - 0x78], rsi
jne 0x18021b0f0
mov rsi, qword [rsp + 0x78]
mov r15, qword [rbp - 0x50]
add rsi, 0x68
mov qword [rbp - 0x78], r15
mov dword [rsp + 0x68], r12d
movsxd rbx, dword [rsi - 0x20]
cmp ebx, dword [rsi - 4]
jle 0x18021b2d4
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021b281
inc dword [rax + 0xf4]
lea rcx, [rbx + rbx*4]
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rsi]
mov rdi, rax
test rdx, rdx
je 0x18021b2ce
movsxd rcx, dword [rsi - 8]
lea r8, [rcx + rcx*4]
mov rcx, rax
shl r8, 3
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsi]
test rcx, rcx
je 0x18021b2c8
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021b2c8
dec dword [rax + 0xf4]
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]
mov r14, r13
lea rax, [rax*4]
add rax, r13
mov qword [rbp - 0x48], rax
cmp r13, rax
jae 0x18021b3bf
xor r12d, r12d
nop word [rax + rax]
mov r15d, dword [r14]
test r15d, r15d
je 0x18021b3ae
mov edi, r12d
nop
bt r15d, edi
jae 0x18021b39f
mov r8d, dword [rsi - 4]
lea rcx, [r14*8]
xor eax, eax
xorps xmm6, xmm6
mov qword [rbp - 0x10], rax
lea rax, [r13*8]
sub ecx, eax
and ecx, 0xffffffe0
add ecx, edi
movzx eax, cx
mov ecx, dword [rsi - 8]
movups xmmword [rbp - 0x20], xmm6
mov dword [rbp - 0x18], eax
cmp ecx, r8d
jne 0x18021b379
inc ecx
test r8d, r8d
je 0x18021b364
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x18021b369
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rsi - 8]
call fcn.18021c2f0
movsxd rax, dword [rsi - 8]
movups xmm0, xmmword [rbp - 0x20]
movsd xmm1, qword [rbp - 0x10]
lea rcx, [rax + rax*4]
mov rax, qword [rsi]
movups xmmword [rax + rcx*8], xmm6
movups xmmword [rax + rcx*8 + 0x10], xmm0
movsd qword [rax + rcx*8 + 0x20], xmm1
inc dword [rsi - 8]
inc edi
cmp edi, 0x20
jb 0x18021b310
mov rax, qword [rbp - 0x48]
add r14, 4
cmp r14, rax
jb 0x18021b300
mov r15, qword [rbp - 0x78]
mov rcx, qword [rsi - 0x10]
xor r13d, r13d
test rcx, rcx
je 0x18021b3eb
mov rax, qword [0x1802c9e60]
mov qword [rsi - 0x18], r13
test rax, rax
je 0x18021b3e1
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi - 0x10], r13
add rsi, 0x70
sub r15, 1
mov qword [rbp - 0x78], r15
jne 0x18021b266
mov r12d, dword [rsp + 0x68]
mov r15, qword [rbp - 0x50]
jmp 0x18021b40b
mov r15, rcx
mov eax, dword [rsp + 0x60]
test eax, eax
jle 0x18021b455
mov rbx, qword [rbp - 0x70]
mov edi, eax
add rbx, 0x18
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18021b44b
mov rax, qword [0x1802c9e60]
mov qword [rbx - 8], 0
test rax, rax
je 0x18021b442
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx], r13
add rbx, 0x20
sub rdi, 1
jne 0x18021b420
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x18021b47a
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021b470
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x78], r13
mov rsi, r13
test r12d, r12d
jle 0x18021b4c2
cmp r12d, 8
mov eax, r12d
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x18021b4c2
mov rcx, qword [0x1802c9e60]
test rcx, rcx
je 0x18021b4ab
inc dword [rcx + 0xf4]
cdqe
lea rcx, [rax + rax*2]
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov qword [rbp - 0x78], rax
lea ecx, [r12 + r12*2]
xor edx, edx
shl ecx, 3
movsxd r8, ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x1802c9e60]
mov dword [rsp + 0x60], r13d
test rcx, rcx
je 0x18021b4ed
inc dword [rcx + 0xf4]
mov ecx, 0x40000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [0x1802c9e60]
mov rbx, rax
test rdx, rdx
je 0x18021b50d
inc dword [rdx + 0xf4]
mov ecx, 0x40
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, dword [rsp + 0x70]
mov edx, 8
movss xmm12, dword [0x180182bbc]
mov ecx, r13d
mov qword [rbp - 0x58], rax
mov r14d, edx
mov qword [rax], rbx
mov r10d, r13d
mov dword [rsp + 0x6c], 1
mov dword [rbp - 0x80], ecx
test edi, edi
jle 0x18021b8e2
mov rbx, qword [rsp + 0x78]
mov r9, r13
mov rdi, qword [rbp + 0x208]
add rbx, 0x60
mov qword [rbp - 0x38], r13
mov r11, r15
mov qword [rbp - 0x48], r15
nop dword [rax + rax]
mov edx, dword [rbx - 0x18]
mov r8, qword [rdi + 0x70]
test edx, edx
je 0x18021b8bc
movsxd rax, r10d
add r10d, edx
mov dword [rbp - 0x60], r10d
lea rcx, [rax + rax*2]
lea rax, [rsi + rcx*8]
mov qword [rbx - 0x30], rax
movss xmm1, dword [r9 + r8 + 0x50]
ucomiss xmm1, xmm12
je 0x18021b5eb
mov byte [rsp + 0x64], 1
lea r9, [rbp + 0x50]
mov r8d, r13d
nop
mov eax, r8d
lea r9, [r9 + 1]
xorps xmm0, xmm0
mov edx, 0xff
cvtsi2ss xmm0, rax
mulss xmm0, xmm1
cvttss2si rcx, xmm0
cmp ecx, edx
movzx eax, cl
cmovbe edx, eax
inc r8d
mov byte [r9 - 1], dl
cmp r8d, 0x100
jb 0x18021b5b0
mov r9, qword [rbp - 0x38]
jmp 0x18021b5f0
mov byte [rsp + 0x64], 0
cmp dword [rbx], 0
mov r12d, r13d
mov eax, dword [rdi + 0x14]
mov dword [rbp - 0x68], eax
mov dword [rsp + 0x68], r13d
jle 0x18021b8b9
xor esi, esi
nop dword [rax]
mov r15, qword [rbx + 8]
mov rcx, qword [rbx - 0x48]
mov edx, dword [rsi + r15 + 0x18]
call fcn.180222330
test eax, eax
je 0x18021b881
mov r8d, dword [rbx - 0x3c]
mov edx, eax
mov rcx, qword [rbx - 0x48]
call fcn.180223330
test eax, eax
jne 0x18021b881
test byte [rbx - 0x40], 0x20
mov rax, qword [rbx - 0x48]
mov rdi, qword [rax + 0x78]
je 0x18021b657
mov rcx, rdi
call fcn.18022ba70
test byte [rbx - 0x40], 0x40
je 0x18021b665
mov rcx, rdi
call fcn.18022bb70
lea rax, [rdi + 0x30]
test rax, rax
je 0x18021b881
mov rax, qword [rbx - 0x48]
mov edx, dword [rbx - 0x38]
mov rdi, qword [rax + 0x78]
mov rcx, rdi
call fcn.180225d70
test eax, eax
jne 0x18021b881
mov rax, qword [rbx - 0x48]
mov r10, qword [rax + 0x78]
add r10, 0x68
mov qword [rbp - 8], r10
mov r8d, dword [r10 + 4]
mov dword [rsi + r15], r8d
mov r9d, dword [r10]
mov dword [rsi + r15 + 4], r9d
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]
mov edi, dword [rsp + 0x60]
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 [r10 + 0x1a], 7
sete al
imul r9d, r8d
mov byte [rsi + r15 + 0x14], al
shl r9d, 2
mov dword [rbp - 0x40], r9d
lea eax, [r9 + rdi]
cmp eax, 0x40000
jle 0x18021b802
mov rax, qword [0x1802c9e60]
xor edi, edi
mov dword [rsp + 0x60], edi
test rax, rax
je 0x18021b739
inc dword [rax + 0xf4]
mov ecx, 0x40000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rsp + 0x6c]
mov r12, rax
cmp ecx, r14d
jne 0x18021b7e2
test r14d, r14d
je 0x18021b766
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
add eax, r14d
jmp 0x18021b76b
mov eax, 8
lea edi, [rcx + 1]
cmp eax, edi
cmovg edi, eax
cmp edi, r14d
jle 0x18021b7de
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021b78a
inc dword [rax + 0xf4]
movsxd rcx, edi
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rbp - 0x58]
mov r14, rax
test rcx, rcx
je 0x18021b7d3
movsxd r8, dword [rsp + 0x6c]
mov rdx, rcx
shl r8, 3
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [0x1802c9e60]
test rdx, rdx
je 0x18021b7c9
dec dword [rdx + 0xf4]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [rsp + 0x6c]
mov qword [rbp - 0x58], r14
mov r14d, edi
mov edi, dword [rsp + 0x60]
mov rdx, qword [rbp - 0x58]
mov r9d, dword [rbp - 0x40]
mov r10, qword [rbp - 8]
movsxd rax, ecx
inc ecx
mov dword [rsp + 0x6c], ecx
mov qword [rdx + rax*8], r12
mov r12d, dword [rsp + 0x68]
jmp 0x18021b80a
mov ecx, dword [rsp + 0x6c]
mov rdx, qword [rbp - 0x58]
movsxd rax, ecx
movsxd rcx, edi
add edi, r9d
mov r9d, dword [rsi + r15]
mov dword [rsp + 0x60], edi
mov r8, qword [rdx + rax*8 - 8]
lea rax, [rbp + 0x50]
add r8, rcx
mov rdx, r10
cmp byte [rsp + 0x64], 0
mov ecx, 0
mov qword [rsi + r15 + 0x20], r8
cmove rax, rcx
mov qword [rsp + 0x20], rax
call fcn.180219fa0
mov ecx, dword [rsi + r15]
add ecx, dword [rbp - 0x68]
mov rax, qword [rbx - 0x30]
mov dword [rax + r13 + 4], ecx
mov ecx, dword [rsi + r15 + 4]
add ecx, dword [rbp - 0x68]
mov rax, qword [rbx - 0x30]
mov dword [rax + r13 + 8], ecx
mov rcx, qword [rbx - 0x30]
mov eax, dword [rcx + r13 + 8]
imul eax, dword [rcx + r13 + 4]
mov ecx, dword [rbp - 0x80]
add ecx, eax
mov dword [rbp - 0x80], ecx
jmp 0x18021b884
mov ecx, dword [rbp - 0x80]
inc r12d
add rsi, 0x28
add r13, 0x18
mov dword [rsp + 0x68], r12d
cmp r12d, dword [rbx]
jl 0x18021b610
mov r9, qword [rbp - 0x38]
xor r13d, r13d
mov r10d, dword [rbp - 0x60]
mov r11, qword [rbp - 0x48]
mov rdi, qword [rbp + 0x208]
mov rsi, qword [rbp - 0x78]
jmp 0x18021b8bc
mov ecx, dword [rbp - 0x80]
add r9, 0x88
add rbx, 0x70
sub r11, 1
mov qword [rbp - 0x38], r9
mov qword [rbp - 0x48], r11
jne 0x18021b570
mov edi, dword [rsp + 0x70]
mov edx, 8
mov r14, qword [rbp + 0x208]
mov ebx, dword [r14 + 0x10]
mov dword [r14 + 0x34], r13d
test ebx, ebx
jg 0x18021b944
movd xmm0, ecx
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
sqrtss xmm1, xmm0
cvttss2si eax, xmm1
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x18018308c]
jb 0x18021b920
mov ebx, 0x1000
jmp 0x18021b944
comiss xmm0, dword [0x180183080]
jb 0x18021b930
mov ebx, 0x800
jmp 0x18021b944
comiss xmm0, dword [0x180183074]
mov ebx, 0x200
mov eax, 0x400
cmovae ebx, eax
mov dword [r14 + 0x30], ebx
mov r12, r13
sub ebx, dword [r14 + 0x14]
mov qword [rbp - 0x80], r13
test ebx, ebx
jle 0x18021b989
cmp ebx, 8
mov eax, ebx
cmovl eax, edx
test eax, eax
jle 0x18021b989
mov rcx, qword [0x1802c9e60]
test rcx, rcx
je 0x18021b975
inc dword [rcx + 0xf4]
movsxd rcx, eax
shl rcx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov qword [rbp - 0x80], rax
mov edx, dword [r14 + 0x30]
lea rcx, [rbp]
mov r9, r12
mov dword [rsp + 0x20], ebx
call fcn.18021a9d0
lea rdx, [rbp]
mov rcx, r14
call fcn.1801ff460
mov r15, qword [rbp - 0x50]
test edi, edi
jle 0x18021ba1a
mov rbx, qword [rsp + 0x78]
mov rdi, r15
add rbx, 0x48
nop dword [rax]
mov r8d, dword [rbx]
test r8d, r8d
je 0x18021ba0c
mov rdx, qword [rbx - 0x18]
lea rcx, [rbp]
call fcn.18021aba0
cmp dword [rbx], 0
mov r8d, r13d
jle 0x18021ba0c
mov rdx, r13
mov rax, qword [rbx - 0x18]
cmp dword [rdx + rax + 0x14], 0
je 0x18021ba00
mov ecx, dword [rdx + rax + 0x10]
add ecx, dword [rdx + rax + 8]
cmp dword [r14 + 0x34], ecx
cmovge ecx, dword [r14 + 0x34]
mov dword [r14 + 0x34], ecx
inc r8d
add rdx, 0x18
cmp r8d, dword [rbx]
jl 0x18021b9e0
add rbx, 0x70
sub rdi, 1
jne 0x18021b9c0
mov edi, dword [rsp + 0x70]
test byte [r14], 1
mov eax, dword [r14 + 0x34]
jne 0x18021ba49
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]
movaps xmm2, xmm12
movsxd rax, dword [r14 + 0x30]
mov rbx, rax
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mov dword [r14 + 0x34], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movsxd rax, ecx
imul rbx, rax
divss xmm2, xmm0
cmp byte [rbp + 0x218], 0
mov rax, qword [0x1802c9e60]
movaps xmm0, xmm12
divss xmm0, xmm1
movss dword [r14 + 0x38], xmm2
movss dword [r14 + 0x3c], xmm0
je 0x18021baba
lea rbx, [rbx*4]
test rax, rax
je 0x18021baab
inc dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r14 + 0x28], rax
jmp 0x18021bad2
test rax, rax
je 0x18021bac5
inc dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r14 + 0x20], rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor al, al
movaps xmmword [rsp + 0x2a0], xmm7
movaps xmmword [rsp + 0x290], xmm8
mov byte [rbp + 0x218], al
test edi, edi
jle 0x18021be7c
mov r12, qword [rsp + 0x78]
mov rax, r15
movaps xmmword [rsp + 0x280], xmm9
mov rsi, r13
movaps xmmword [rsp + 0x270], xmm10
add r12, 8
movaps xmmword [rsp + 0x260], xmm11
movss xmm11, dword [0x180182a7c]
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x38], rax
nop dword [rax + rax]
cmp dword [r12 + 0x40], 0
je 0x18021be39
mov r9, qword [r14 + 0x70]
movss xmm6, dword [r12 - 4]
add r9, rsi
movss xmm7, dword [r12]
mov qword [rbp - 0x60], r9
cmp byte [r9 + 0x48], 0
mov r15, qword [r9 + 0x80]
mov qword [rbp - 0x40], r15
jne 0x18021bba3
mov rcx, r15
call fcn.1801ffd50
mov r9, qword [rbp - 0x60]
mov eax, dword [r9 + 0x14]
movss dword [r15 + 0x60], xmm6
movss dword [r15 + 0x64], xmm7
mov dword [r15 + 0x14], eax
mov qword [r15 + 0x48], r9
mov word [r15 + 0x50], r13w
mov qword [r15 + 0x40], r14
inc word [r15 + 0x50]
cmp dword [r12 + 0x40], 0
movss xmm0, dword [r15 + 0x60]
mov r8d, dword [r14 + 0x14]
addss xmm0, xmm11
movss xmm10, dword [r9 + 0x2c]
mov dword [rsp + 0x60], r8d
mov dword [rsp + 0x68], r13d
cvttss2si eax, xmm0
movd xmm9, eax
cvtdq2ps xmm9, xmm9
addss xmm9, dword [r9 + 0x30]
jle 0x18021be30
mov rdx, r13
mov rbx, r13
mov qword [rbp - 0x68], rdx
mov rcx, qword [r12 + 0x28]
mov rdi, qword [r12 + 0x60]
cmp dword [rdx + rcx + 4], 0
jne 0x18021bc0c
cmp dword [rdx + rcx + 8], 0
je 0x18021be0b
mov r14d, dword [rdx + rcx + 0x10]
movaps xmm2, xmm12
mov esi, dword [rdx + rcx + 0xc]
add r14d, r8d
mov rax, qword [rbp + 0x208]
add esi, r8d
mov edx, dword [rbx + rdi + 4]
movaps xmm1, xmm12
mov ecx, dword [rbx + rdi]
movd xmm8, dword [rbx + rdi + 0xc]
movd xmm0, dword [rax + 0x34]
movd xmm3, dword [rbx + rdi + 8]
movzx r8d, word [rbx + rdi + 0x18]
cvtdq2ps xmm0, xmm0
movd xmm5, r14d
divss xmm2, xmm0
movd xmm0, dword [rax + 0x30]
lea eax, [rdx + r14]
cvtdq2ps xmm0, xmm0
movd xmm7, eax
lea eax, [rcx + rsi]
divss xmm1, xmm0
movss xmm0, dword [rbx + rdi + 0x10]
movss dword [rsp + 0x58], xmm0
movd xmm6, eax
movd xmm4, esi
cvtdq2ps xmm7, xmm7
cvtdq2ps xmm5, xmm5
mulss xmm7, xmm2
mulss xmm5, xmm2
movd xmm2, edx
mov rdx, r9
movss dword [rsp + 0x50], xmm7
cvtdq2ps xmm6, xmm6
cvtdq2ps xmm4, xmm4
mulss xmm6, xmm1
mulss xmm4, xmm1
movd xmm1, ecx
mov rcx, r15
movss dword [rsp + 0x48], xmm6
movss dword [rsp + 0x40], xmm5
movss dword [rsp + 0x38], xmm4
cvtdq2ps xmm8, xmm8
cvtdq2ps xmm3, xmm3
addss xmm8, xmm9
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
addss xmm3, xmm10
addss xmm2, xmm8
addss xmm1, xmm3
movss dword [rsp + 0x30], xmm2
movss dword [rsp + 0x28], xmm1
movss dword [rsp + 0x20], xmm8
call fcn.1802003a0
cmp byte [rbx + rdi + 0x14], 0
movsxd rax, dword [r15 + 0x28]
lea rcx, [rax + rax*4]
mov rax, qword [r15 + 0x30]
je 0x18021bd19
or dword [rax + rcx*8 - 0x28], 1
mov byte [rbp + 0x218], 1
mov rax, qword [rbp + 0x208]
movsxd rcx, dword [rbx + rdi]
mov r10, qword [rbx + rdi + 0x20]
movsxd rdx, r14d
movsxd r15, dword [rax + 0x30]
mov r8, qword [rax + 0x20]
imul rdx, r15
movsxd rax, esi
mov esi, r13d
add rdx, rax
test r8, r8
je 0x18021bd99
cmp dword [rbx + rdi + 4], 0
lea r11, [rdx + r8]
jle 0x18021bdf3
lea r14, [rcx*4]
nop dword [rax]
mov r9d, r13d
test ecx, ecx
jle 0x18021bd89
mov rdx, r11
lea r8, [r10 + 3]
nop
movzx eax, byte [r8]
lea r8, [r8 + 4]
mov byte [rdx], al
lea rdx, [rdx + 1]
mov ecx, dword [rbx + rdi]
inc r9d
cmp r9d, ecx
jl 0x18021bd70
inc esi
add r11, r15
add r10, r14
cmp esi, dword [rbx + rdi + 4]
jl 0x18021bd60
jmp 0x18021bdf3
cmp dword [rbx + rdi + 4], 0
mov r14, qword [rbp + 0x208]
mov rax, qword [r14 + 0x28]
lea r11, [rax + rdx*4]
jle 0x18021bdfa
lea r15, [r15*4]
lea r14, [rcx*4]
nop
mov r8d, r13d
test ecx, ecx
jle 0x18021bde5
mov r9, r10
mov rdx, r11
sub r9, r11
mov eax, dword [r9 + rdx]
inc r8d
mov dword [rdx], eax
lea rdx, [rdx + 4]
mov ecx, dword [rbx + rdi]
cmp r8d, ecx
jl 0x18021bdd0
inc esi
add r11, r15
add r10, r14
cmp esi, dword [rbx + rdi + 4]
jl 0x18021bdc0
mov r14, qword [rbp + 0x208]
mov r8d, dword [rsp + 0x60]
mov r9, qword [rbp - 0x60]
mov r15, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x68]
mov ecx, dword [rsp + 0x68]
add rdx, 0x18
inc ecx
mov qword [rbp - 0x68], rdx
add rbx, 0x28
mov dword [rsp + 0x68], ecx
cmp ecx, dword [r12 + 0x40]
jl 0x18021bbf0
mov rsi, qword [rbp - 0x48]
mov rax, qword [rbp - 0x38]
mov qword [r12 + 0x28], r13
add rsi, 0x88
add r12, 0x70
sub rax, 1
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x38], rax
jne 0x18021bb40
movaps xmm11, xmmword [rsp + 0x260]
movaps xmm10, xmmword [rsp + 0x270]
movaps xmm9, xmmword [rsp + 0x280]
movzx eax, byte [rbp + 0x218]
mov r12, qword [rbp - 0x80]
movaps xmm12, xmmword [rsp + 0x250]
mov r15, qword [rbp - 0x58]
mov byte [r14 + 0x1a], al
mov eax, dword [rsp + 0x6c]
test eax, eax
jle 0x18021beca
mov rbx, r15
mov edi, eax
nop word [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18021beba
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021beba
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rbx, 8
sub rdi, 1
jne 0x18021bea0
cmp dword [rsp + 0x70], 0
jle 0x18021bf3d
mov rbx, qword [rsp + 0x78]
add rbx, 0x18
nop word [rax + rax]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x18021bf01
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021befb
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x18021bf22
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021bf1c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18021bf32
call fcn.180221d30
mov qword [rbx], r13
add rbx, 0x70
sub qword [rbp - 0x50], 1
jne 0x18021bee0
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x18021bf67
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021bf59
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x78], r13
mov rcx, r14
call fcn.1801ffa00
mov rcx, r14
call fcn.1801ffb40
cmp dword [r14 + 0x58], 0
mov edi, r13d
jle 0x18021c07f
mov rbx, r13
nop dword [rax + rax]
mov r10, qword [r14 + 0x60]
mov rsi, qword [rbx + r10 + 0x18]
test rsi, rsi
je 0x18021c06f
mov r11d, dword [rbx + r10 + 8]
test r11d, r11d
je 0x18021c06f
movzx ecx, word [rbx + r10 + 6]
movzx edx, word [rbx + r10 + 2]
movzx r8d, word [rbx + r10 + 4]
movzx r9d, word [rbx + r10]
movss xmm8, dword [rbx + r10 + 0x14]
movss xmm3, dword [rbx + r10 + 0x10]
lea eax, [rdx + rcx]
movss xmm0, dword [rbx + r10 + 0xc]
movss dword [rsp + 0x58], xmm0
movd xmm7, eax
lea eax, [r9 + r8]
movd xmm5, ecx
mov rcx, rsi
movd xmm4, r8d
movzx r8d, r11w
movd xmm2, edx
xor edx, edx
movd xmm6, eax
cvtdq2ps xmm7, xmm7
cvtdq2ps xmm6, xmm6
mulss xmm7, dword [r14 + 0x3c]
mulss xmm6, dword [r14 + 0x38]
movss dword [rsp + 0x50], xmm7
cvtdq2ps xmm5, xmm5
movss dword [rsp + 0x48], xmm6
mulss xmm5, dword [r14 + 0x3c]
movd xmm1, r9d
cvtdq2ps xmm4, xmm4
movss dword [rsp + 0x40], xmm5
mulss xmm4, dword [r14 + 0x38]
cvtdq2ps xmm2, xmm2
movss dword [rsp + 0x38], xmm4
cvtdq2ps xmm1, xmm1
addss xmm2, xmm8
addss xmm1, xmm3
movss dword [rsp + 0x30], xmm2
movss dword [rsp + 0x28], xmm1
movss dword [rsp + 0x20], xmm8
call fcn.1802003a0
inc edi
add rbx, 0x20
cmp edi, dword [r14 + 0x58]
jl 0x18021bf90
cmp dword [r14 + 0x48], 0
movaps xmm8, xmmword [rsp + 0x290]
movaps xmm7, xmmword [rsp + 0x2a0]
movaps xmm6, xmmword [rsp + 0x2b0]
jle 0x18021c0c2
mov rbx, r13
mov rax, qword [r14 + 0x50]
mov rcx, qword [rbx + rax]
cmp byte [rcx + 0x58], 0
je 0x18021c0b5
call fcn.1801ffe00
inc r13d
add rbx, 8
cmp r13d, dword [r14 + 0x48]
jl 0x18021c0a2
mov byte [r14 + 0x19], 1
mov bl, 1
test r12, r12
je 0x18021c0e9
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021c0e0
dec dword [rax + 0xf4]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r15, r15
je 0x18021c109
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021c100
dec dword [rax + 0xf4]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x18021c12a
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021c124
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x70]
mov r15, qword [rsp + 0x2c0]
mov r14, qword [rsp + 0x2c8]
mov r13, qword [rsp + 0x2d0]
mov r12, qword [rsp + 0x2d8]
mov rdi, qword [rsp + 0x2e0]
mov rsi, qword [rsp + 0x300]
test rcx, rcx
je 0x18021c17b
mov rax, qword [0x1802c9e60]
test rax, rax
je 0x18021c175
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x18021c1a0
mov rcx, qword [0x1802c9e60]
test rcx, rcx
je 0x18021c197
dec dword [rcx + 0xf4]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movzx eax, bl
add rsp, 0x2e8
pop rbx
pop rbp
ret