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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e8
mov qword [rax + 0x18], rsi
mov rsi, rdx
mov qword [rax - 0x18], rdi
mov qword [rax - 0x20], r12
mov r12d, r8d
mov qword [rax - 0x28], r13
xor r13d, r13d
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
cmp dword [rdx + 0x484], r13d
jge 0x18007c253
test byte [rdx], 2
lea rcx, [rdx + 0x58]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x34], 0xffffffff
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
mov dword [rbp - 0x38], 0x1b00f5
je 0x18007c243
mov dword [rbp - 0x38], 0x20002
call fcn.18006b150
mov eax, dword [rsi + 0x58]
dec eax
mov dword [rsi + 0x484], eax
cmp dword [rsi + 0x488], r13d
jge 0x18007c293
test byte [rsi], 4
jne 0x18007c293
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x34], 0xffffffff
lea rcx, [rsi + 0x58]
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
mov dword [rbp - 0x38], 0x400041
call fcn.18006b150
mov eax, dword [rsi + 0x58]
dec eax
mov dword [rsi + 0x488], eax
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 8], r13
mov qword [rsi + 0x30], r13
mov qword [rsi + 0x38], r13
mov qword [rsi + 0x40], r13
test rcx, rcx
je 0x18007c2c4
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007c2be
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x18007c2e5
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007c2df
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14d, dword [rsi + 0x68]
mov r15, r13
mov qword [rsi + 0x20], r13
mov rdi, r13
mov qword [rsi + 0x28], r13
mov edx, 8
mov byte [rsi + 0x1a], r13b
mov byte [rbp + 0x218], r13b
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x70], r13
mov dword [rsp + 0x78], r14d
test r14d, r14d
jle 0x18007c350
cmp r14d, edx
mov eax, r14d
cmovl eax, edx
test eax, eax
jle 0x18007c350
mov rcx, qword [0x1801d5410]
test rcx, rcx
je 0x18007c338
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 [rbp - 0x80], rax
mov edx, 8
mov ebx, dword [rsi + 0x48]
mov dword [rsp + 0x68], ebx
test ebx, ebx
jle 0x18007c38d
cmp ebx, 8
mov ecx, ebx
cmovl ecx, edx
test ecx, ecx
jle 0x18007c38d
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007c379
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 rdi, rax
mov qword [rbp - 0x70], rax
imul ecx, r14d, 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, rdi
call sub.VCRUNTIME140.dll_memset
mov r15d, r13d
cmp dword [rsi + 0x68], r13d
jle 0x18007c4d6
mov rbx, qword [rbp - 0x80]
mov r14, r13
add rbx, 0x44
nop dword [rax + rax]
mov rdi, qword [rsi + 0x70]
mov r8d, r13d
add rdi, r14
mov dword [rbx - 4], 0xffffffff
cmp dword [rsi + 0x48], r13d
jle 0x18007c53c
mov edx, 0xffffffff
mov r9, r13
mov eax, edx
cmp edx, 0xffffffff
jne 0x18007c421
mov rax, qword [rsi + 0x50]
mov rcx, qword [r9 + rax]
cmp qword [rdi + 0x80], rcx
jne 0x18007c412
mov dword [rbx - 4], r8d
mov edx, r8d
inc r8d
add r9, 8
mov eax, edx
cmp r8d, dword [rsi + 0x48]
jl 0x18007c3f3
cmp eax, 0xffffffff
je 0x18007c53c
mov rdx, qword [rbp + 0x200]
lea rcx, [rbx - 0x44]
mov r9d, r12d
mov r8, rdi
call fcn.18007b190
test al, al
je 0x18007c53c
mov eax, dword [rdi + 0x4c]
lea rdx, [0x18012ed6c]
movsxd r8, dword [rbx - 4]
shr eax, 8
and al, 1
shl r8, 5
or byte [rbp + 0x218], al
mov rax, qword [rdi + 0x38]
add r8, qword [rbp - 0x70]
test rax, rax
cmovne rdx, rax
mov qword [rbx - 0xc], rdx
cmp word [rdx], r13w
je 0x18007c49c
nop
movzx eax, word [rdx + 2]
test ax, ax
je 0x18007c49c
cmp dword [rbx], eax
mov ecx, eax
cmovge ecx, dword [rbx]
add rdx, 4
mov dword [rbx], ecx
cmp word [rdx], r13w
jne 0x18007c480
inc dword [r8]
mov ecx, dword [rbx]
cmp dword [r8 + 4], ecx
mov rsi, qword [rbp + 0x208]
cmovge ecx, dword [r8 + 4]
inc r15d
add rbx, 0x70
mov dword [r8 + 4], ecx
add r14, 0x88
cmp r15d, dword [rsi + 0x68]
jl 0x18007c3d0
mov r14d, dword [rsp + 0x78]
mov rdi, qword [rbp - 0x70]
movaps xmmword [rsp + 0x2b0], xmm6
mov r12d, r13d
movaps xmmword [rsp + 0x250], xmm12
mov dword [rsp + 0x60], r13d
test r14d, r14d
jle 0x18007c839
mov r14, qword [rbp - 0x80]
mov esi, dword [rsp + 0x78]
add r14, 0x58
mov qword [rbp - 0x78], rsi
nop dword [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, rdi
sar ebx, 5
cmp ebx, ecx
jle 0x18007c55d
test ecx, ecx
je 0x18007c543
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18007c548
xor bl, bl
jmp 0x18007d678
mov eax, 8
cmp eax, ebx
lea rdi, [r14 - 8]
mov edx, ebx
mov rcx, rdi
cmovg edx, eax
call fcn.18000a080
jmp 0x18007c561
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 0x18007c5c7
mov ebx, dword [r15 + 4]
mov ecx, dword [r15 + 0x14]
add ebx, 0x20
sar ebx, 5
cmp ebx, ecx
jle 0x18007c5b1
test ecx, ecx
je 0x18007c59c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18007c5a1
mov eax, 8
cmp eax, ebx
lea rcx, [r15 + 0x10]
mov edx, ebx
cmovg edx, eax
call fcn.18000a080
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 0x18007c66f
nop word [rax + rax]
movzx eax, word [r13 + 2]
test ax, ax
je 0x18007c66b
movzx edi, word [r13]
cmp edi, eax
ja 0x18007c65b
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 0x18007c64b
mov rcx, qword [r14 - 0x40]
mov edx, edi
call fcn.1800836a0
test eax, eax
je 0x18007c64b
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 0x18007c600
mov dword [rsp + 0x60], r12d
add r13, 4
cmp word [r13], 0
jne 0x18007c5e0
mov rsi, qword [rbp - 0x78]
mov rdi, qword [rbp - 0x70]
add r14, 0x70
sub rsi, 1
mov qword [rbp - 0x78], rsi
jne 0x18007c510
mov r14, qword [rbp - 0x80]
mov r15d, dword [rsp + 0x78]
add r14, 0x68
mov qword [rbp - 0x78], r15
movsxd rbx, dword [r14 - 0x20]
cmp ebx, dword [r14 - 4]
jle 0x18007c706
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007c6b2
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 [r14]
mov rdi, rax
test rdx, rdx
je 0x18007c6ff
movsxd rcx, dword [r14 - 8]
lea r8, [rcx + rcx*4]
mov rcx, rax
shl r8, 3
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [r14]
test rcx, rcx
je 0x18007c6f9
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007c6f9
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r14], rdi
mov dword [r14 - 4], ebx
mov r13, qword [r14 - 0x10]
movsxd rax, dword [r14 - 0x18]
mov rsi, r13
lea rax, [rax*4]
add rax, r13
mov qword [rbp - 0x40], rax
cmp r13, rax
jae 0x18007c7f1
xor r12d, r12d
nop dword [rax]
mov r15d, dword [rsi]
test r15d, r15d
je 0x18007c7e0
mov edi, r12d
nop
bt r15d, edi
jae 0x18007c7d1
mov r8d, dword [r14 - 4]
lea rcx, [rsi*8]
xor eax, eax
xorps xmm6, xmm6
mov qword [rbp - 0x18], rax
lea rax, [r13*8]
sub ecx, eax
and ecx, 0xffffffe0
add ecx, edi
movzx eax, cx
mov ecx, dword [r14 - 8]
movups xmmword [rbp - 0x28], xmm6
mov dword [rbp - 0x20], eax
cmp ecx, r8d
jne 0x18007c7aa
inc ecx
test r8d, r8d
je 0x18007c795
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x18007c79a
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [r14 - 8]
call fcn.18007d840
movsxd rax, dword [r14 - 8]
movups xmm0, xmmword [rbp - 0x28]
movsd xmm1, qword [rbp - 0x18]
lea rcx, [rax + rax*4]
mov rax, qword [r14]
movups xmmword [rax + rcx*8], xmm6
movups xmmword [rax + rcx*8 + 0x10], xmm0
movsd qword [rax + rcx*8 + 0x20], xmm1
inc dword [r14 - 8]
inc edi
cmp edi, 0x20
jb 0x18007c740
mov rax, qword [rbp - 0x40]
add rsi, 4
cmp rsi, rax
jb 0x18007c730
mov r15, qword [rbp - 0x78]
mov rcx, qword [r14 - 0x10]
xor r13d, r13d
test rcx, rcx
je 0x18007c81d
mov rax, qword [0x1801d5410]
mov qword [r14 - 0x18], r13
test rax, rax
je 0x18007c813
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r14 - 0x10], r13
add r14, 0x70
sub r15, 1
mov qword [rbp - 0x78], r15
jne 0x18007c696
mov r12d, dword [rsp + 0x60]
mov r14d, dword [rsp + 0x78]
mov eax, dword [rsp + 0x68]
test eax, eax
jle 0x18007c885
mov rbx, qword [rbp - 0x70]
mov edi, eax
add rbx, 0x18
nop dword [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18007c87b
mov rax, qword [0x1801d5410]
mov qword [rbx - 8], 0
test rax, rax
je 0x18007c872
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 0x18007c850
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x18007c8aa
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007c8a0
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
mov edi, 8
test r12d, r12d
jle 0x18007c8f1
cmp r12d, edi
mov eax, r12d
cmovl eax, edi
test eax, eax
jle 0x18007c8f1
mov rcx, qword [0x1801d5410]
test rcx, rcx
je 0x18007c8da
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 [0x1801d5410]
mov dword [rsp + 0x60], r13d
test rcx, rcx
je 0x18007c91c
inc dword [rcx + 0xf4]
mov ecx, 0x40000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [0x1801d5410]
mov rbx, rax
test rdx, rdx
je 0x18007c93c
inc dword [rdx + 0xf4]
mov ecx, 0x40
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movss xmm12, dword [0x18012f71c]
mov ecx, r13d
mov qword [rbp - 0x58], rax
mov r12d, edi
mov dword [rsp + 0x7c], 1
mov r10d, r13d
mov qword [rax], rbx
mov dword [rsp + 0x70], ecx
test r14d, r14d
jle 0x18007cd1f
mov rbx, qword [rbp - 0x80]
mov r9, r13
mov rdi, qword [rbp + 0x208]
add rbx, 0x60
mov r11d, r14d
mov qword [rbp - 0x10], r11
mov qword [rbp - 0x50], r13
nop dword [rax]
nop word [rax + rax]
mov edx, dword [rbx - 0x18]
mov r8, qword [rdi + 0x70]
test edx, edx
je 0x18007ccfd
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 0x18007ca1b
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 0x18007c9e0
mov r9, qword [rbp - 0x50]
jmp 0x18007ca20
mov byte [rsp + 0x64], 0
cmp dword [rbx], 0
mov eax, dword [rdi + 0x14]
mov dword [rbp - 0x68], eax
mov dword [rsp + 0x68], r13d
jle 0x18007ccf9
mov r15, r13
mov qword [rbp - 0x48], r13
mov rdi, r13
nop
mov r14, qword [rbx + 8]
mov rcx, qword [rbx - 0x48]
mov edx, dword [rdi + r14 + 0x18]
call fcn.1800836a0
test eax, eax
je 0x18007ccbb
mov r8d, dword [rbx - 0x3c]
mov edx, eax
mov rcx, qword [rbx - 0x48]
call fcn.1800846a0
test eax, eax
jne 0x18007ccbb
test byte [rbx - 0x40], 0x20
mov rax, qword [rbx - 0x48]
mov rsi, qword [rax + 0x78]
je 0x18007ca87
mov rcx, rsi
call fcn.18008cde0
test byte [rbx - 0x40], 0x40
je 0x18007ca95
mov rcx, rsi
call fcn.18008cee0
lea rax, [rsi + 0x30]
test rax, rax
je 0x18007ccbb
mov rax, qword [rbx - 0x48]
mov edx, dword [rbx - 0x38]
mov rsi, qword [rax + 0x78]
mov rcx, rsi
call fcn.1800870e0
test eax, eax
jne 0x18007ccbb
mov rax, qword [rbx - 0x48]
mov r13, qword [rax + 0x78]
add r13, 0x68
mov r8d, dword [r13 + 4]
mov dword [rdi + r14], r8d
mov r15d, dword [r13]
mov dword [rdi + r14 + 4], r15d
mov rax, qword [rbx - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x90]
mov dword [rdi + r14 + 8], eax
mov rax, qword [rbx - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x94]
neg eax
mov dword [rdi + r14 + 0xc], eax
mov eax, dword [rsi + 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 [rdi + r14 + 0x10], xmm0
cmp byte [r13 + 0x1a], 7
sete al
mov byte [rdi + r14 + 0x14], al
test r13, r13
je 0x18007ccb7
mov esi, dword [rsp + 0x60]
imul r15d, r8d
shl r15d, 2
lea eax, [r15 + rsi]
cmp eax, 0x40000
jle 0x18007cc31
mov rax, qword [0x1801d5410]
xor esi, esi
mov dword [rsp + 0x60], esi
test rax, rax
je 0x18007cb6b
inc dword [rax + 0xf4]
mov ecx, 0x40000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, dword [rsp + 0x7c]
mov qword [rbp - 0x40], rax
cmp r8d, r12d
jne 0x18007cc18
test r12d, r12d
je 0x18007cb9a
mov eax, r12d
cdq
sub eax, edx
sar eax, 1
add eax, r12d
jmp 0x18007cb9f
mov eax, 8
lea esi, [r8 + 1]
cmp eax, esi
cmovg esi, eax
cmp esi, r12d
jle 0x18007cc14
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007cbbf
inc dword [rax + 0xf4]
movsxd rcx, esi
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rbp - 0x58]
mov r12, rax
test rcx, rcx
je 0x18007cc08
movsxd r8, dword [rsp + 0x7c]
mov rdx, rcx
shl r8, 3
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [0x1801d5410]
test rdx, rdx
je 0x18007cbfe
dec dword [rdx + 0xf4]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8d, dword [rsp + 0x7c]
mov qword [rbp - 0x58], r12
mov r12d, esi
mov esi, dword [rsp + 0x60]
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x40]
movsxd rax, r8d
inc r8d
mov dword [rsp + 0x7c], r8d
mov qword [rdx + rax*8], rcx
jmp 0x18007cc3a
mov r8d, dword [rsp + 0x7c]
mov rdx, qword [rbp - 0x58]
mov r9d, dword [rdi + r14]
movsxd rax, r8d
movsxd rcx, esi
add esi, r15d
mov dword [rsp + 0x60], esi
mov r8, qword [rdx + rax*8 - 8]
lea rax, [rbp + 0x50]
add r8, rcx
mov rdx, r13
cmp byte [rsp + 0x64], 0
mov ecx, 0
mov qword [rdi + r14 + 0x20], r8
cmove rax, rcx
mov qword [rsp + 0x20], rax
call fcn.18007b380
mov r15, qword [rbp - 0x48]
mov ecx, dword [rdi + r14]
add ecx, dword [rbp - 0x68]
mov rax, qword [rbx - 0x30]
mov dword [r15 + rax + 4], ecx
mov ecx, dword [rdi + r14 + 4]
add ecx, dword [rbp - 0x68]
mov rax, qword [rbx - 0x30]
mov dword [r15 + rax + 8], ecx
mov rcx, qword [rbx - 0x30]
mov eax, dword [r15 + rcx + 8]
imul eax, dword [r15 + rcx + 4]
mov ecx, dword [rsp + 0x70]
add ecx, eax
mov dword [rsp + 0x70], ecx
jmp 0x18007ccbf
mov r15, qword [rbp - 0x48]
mov ecx, dword [rsp + 0x70]
mov eax, dword [rsp + 0x68]
add r15, 0x18
inc eax
mov qword [rbp - 0x48], r15
add rdi, 0x28
mov dword [rsp + 0x68], eax
cmp eax, dword [rbx]
jl 0x18007ca40
mov r9, qword [rbp - 0x50]
xor r13d, r13d
mov r10d, dword [rbp - 0x60]
mov r11, qword [rbp - 0x10]
mov rdi, qword [rbp + 0x208]
mov rsi, qword [rbp - 0x78]
jmp 0x18007ccfd
mov ecx, dword [rsp + 0x70]
add r9, 0x88
add rbx, 0x70
sub r11, 1
mov qword [rbp - 0x50], r9
mov qword [rbp - 0x10], r11
jne 0x18007c9a0
mov edi, 8
mov r15, qword [rbp + 0x208]
mov ebx, dword [r15 + 0x10]
mov dword [r15 + 0x34], r13d
test ebx, ebx
jg 0x18007cd81
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 [0x18012f9e4]
jb 0x18007cd5d
mov ebx, 0x1000
jmp 0x18007cd81
comiss xmm0, dword [0x18012f9d8]
jb 0x18007cd6d
mov ebx, 0x800
jmp 0x18007cd81
comiss xmm0, dword [0x18012f9c0]
mov ebx, 0x200
mov eax, 0x400
cmovae ebx, eax
mov dword [r15 + 0x30], ebx
mov r14, r13
sub ebx, dword [r15 + 0x14]
mov qword [rbp - 0x40], r13
test ebx, ebx
jle 0x18007cdc6
cmp ebx, 8
mov eax, ebx
cmovl eax, edi
test eax, eax
jle 0x18007cdc6
mov rcx, qword [0x1801d5410]
test rcx, rcx
je 0x18007cdb2
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 r14, rax
mov qword [rbp - 0x40], rax
mov edx, dword [r15 + 0x30]
lea rcx, [rbp]
mov r9, r14
mov dword [rsp + 0x20], ebx
call fcn.18007bda0
mov ebx, dword [r15 + 0x58]
mov rdi, r13
test ebx, ebx
jle 0x18007ce1c
cmp ebx, 8
mov ecx, ebx
mov eax, 8
cmovl ecx, eax
test ecx, ecx
jle 0x18007ce1c
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007ce08
inc dword [rax + 0xf4]
movsxd rax, ecx
lea rcx, [rax + rax*2]
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
lea ecx, [rbx + rbx*2]
xor edx, edx
shl ecx, 3
movsxd r8, ecx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
cmp dword [r15 + 0x58], 0
mov r9d, r13d
jle 0x18007ce6b
mov rdx, r13
lea r8, [rdi + 8]
mov rax, qword [r15 + 0x60]
lea rdx, [rdx + 0x20]
inc r9d
lea r8, [r8 + 0x18]
movzx ecx, word [rax + rdx - 0x20]
mov dword [r8 - 0x1c], ecx
mov rax, qword [r15 + 0x60]
movzx ecx, word [rax + rdx - 0x1e]
mov dword [r8 - 0x18], ecx
cmp r9d, dword [r15 + 0x58]
jl 0x18007ce40
mov r8d, ebx
lea rcx, [rbp]
mov rdx, rdi
call fcn.1800645a0
test ebx, ebx
jle 0x18007cec9
mov r8, r13
lea rdx, [rdi + 0x10]
mov r9, rbx
cmp dword [rdx + 4], 0
je 0x18007cebb
mov rcx, qword [r15 + 0x60]
movzx eax, word [rdx - 4]
mov word [rcx + r8 + 4], ax
mov rcx, qword [r15 + 0x60]
movzx eax, word [rdx]
mov word [rcx + r8 + 6], ax
mov ecx, dword [rdx - 8]
add ecx, dword [rdx]
cmp dword [r15 + 0x34], ecx
cmovge ecx, dword [r15 + 0x34]
mov dword [r15 + 0x34], ecx
add r8, 0x20
add rdx, 0x18
sub r9, 1
jne 0x18007ce88
test rdi, rdi
je 0x18007cee9
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007cee0
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r12d, dword [rsp + 0x78]
test r12d, r12d
jle 0x18007cf56
mov rbx, qword [rbp - 0x80]
mov edi, r12d
add rbx, 0x48
nop
mov r8d, dword [rbx]
test r8d, r8d
je 0x18007cf4c
mov rdx, qword [rbx - 0x18]
lea rcx, [rbp]
call fcn.18007bfd0
cmp dword [rbx], 0
mov r8d, r13d
jle 0x18007cf4c
mov rdx, r13
mov rax, qword [rbx - 0x18]
cmp dword [rdx + rax + 0x14], 0
je 0x18007cf40
mov ecx, dword [rdx + rax + 0x10]
add ecx, dword [rdx + rax + 8]
cmp dword [r15 + 0x34], ecx
cmovge ecx, dword [r15 + 0x34]
mov dword [r15 + 0x34], ecx
inc r8d
add rdx, 0x18
cmp r8d, dword [rbx]
jl 0x18007cf20
add rbx, 0x70
sub rdi, 1
jne 0x18007cf00
test byte [r15], 1
mov eax, dword [r15 + 0x34]
jne 0x18007cf85
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 [r15 + 0x30]
mov rbx, rax
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mov dword [r15 + 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 [0x1801d5410]
movaps xmm0, xmm12
divss xmm0, xmm1
movss dword [r15 + 0x38], xmm2
movss dword [r15 + 0x3c], xmm0
je 0x18007cff6
lea rbx, [rbx*4]
test rax, rax
je 0x18007cfe7
inc dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r15 + 0x28], rax
jmp 0x18007d00e
test rax, rax
je 0x18007d001
inc dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r15 + 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 r12d, r12d
jle 0x18007d3d7
mov rcx, qword [rbp - 0x80]
mov rsi, r13
movaps xmmword [rsp + 0x280], xmm9
add rcx, 8
movaps xmmword [rsp + 0x270], xmm10
mov r14, r12
movaps xmmword [rsp + 0x260], xmm11
movss xmm11, dword [0x18012f6c4]
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x10], r13
mov qword [rbp - 0x48], r12
nop dword [rax + rax]
cmp dword [rcx + 0x40], 0
je 0x18007d38b
mov r9, qword [r15 + 0x70]
movss xmm6, dword [rcx - 4]
add r9, rsi
movss xmm7, dword [rcx]
mov qword [rbp - 0x60], r9
cmp byte [r9 + 0x48], 0
mov r12, qword [r9 + 0x80]
mov qword [rsp + 0x70], r12
jne 0x18007d0e8
mov rcx, r12
call fcn.180069470
mov r9, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x50]
mov eax, dword [r9 + 0x14]
movss dword [r12 + 0x60], xmm6
movss dword [r12 + 0x64], xmm7
mov dword [r12 + 0x14], eax
mov qword [r12 + 0x48], r9
mov word [r12 + 0x50], r13w
mov qword [r12 + 0x40], r15
inc word [r12 + 0x50]
cmp dword [rcx + 0x40], 0
movss xmm0, dword [r12 + 0x60]
mov r8d, dword [r15 + 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 0x18007d387
mov rdx, r13
mov rbx, r13
mov qword [rbp - 0x68], rdx
nop word [rax + rax]
mov rdi, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x28]
cmp dword [rdx + rcx + 4], 0
jne 0x18007d15a
cmp dword [rdx + rcx + 8], 0
je 0x18007d35c
mov r14d, dword [rdx + rcx + 0x10]
movaps xmm2, xmm12
mov esi, dword [rdx + rcx + 0xc]
add r14d, r8d
mov edx, dword [rbx + rdi + 4]
add esi, r8d
mov ecx, dword [rbx + rdi]
movaps xmm1, xmm12
movd xmm0, dword [r15 + 0x34]
movd xmm8, dword [rbx + rdi + 0xc]
movd xmm3, dword [rbx + rdi + 8]
lea eax, [rdx + r14]
movzx r8d, word [rbx + rdi + 0x18]
cvtdq2ps xmm0, xmm0
movd xmm7, eax
lea eax, [rcx + rsi]
divss xmm2, xmm0
movd xmm0, dword [r15 + 0x30]
cvtdq2ps xmm0, xmm0
movd xmm5, r14d
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, r12
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.180069b10
cmp byte [rbx + rdi + 0x14], 0
movsxd rax, dword [r12 + 0x28]
lea rcx, [rax + rax*4]
mov rax, qword [r12 + 0x30]
je 0x18007d264
or dword [rax + rcx*8 - 0x28], 1
mov byte [rbp + 0x218], 1
movsxd r15, dword [r15 + 0x30]
mov r9, qword [rbp + 0x208]
movsxd rcx, dword [rbx + rdi]
mov r11, qword [rbx + rdi + 0x20]
mov r12, rcx
movsxd rax, esi
mov esi, r13d
mov r8, qword [r9 + 0x20]
movsxd rdx, r14d
imul rdx, r15
add rdx, rax
test r8, r8
je 0x18007d2ea
cmp dword [rbx + rdi + 4], 0
lea r10, [r8 + rdx]
jle 0x18007d343
add r11, 3
mov r9d, r13d
test ecx, ecx
jle 0x18007d2d9
mov rdx, r10
mov r8, r11
nop dword [rax]
nop dword [rax + rax]
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 0x18007d2c0
inc esi
lea r11, [r11 + r12*4]
add r10, r15
cmp esi, dword [rbx + rdi + 4]
jl 0x18007d2a7
jmp 0x18007d343
cmp dword [rbx + rdi + 4], 0
mov rax, qword [r9 + 0x28]
lea r10, [rax + rdx*4]
jle 0x18007d343
lea r15, [r15*4]
lea r12, [rcx*4]
nop dword [rax]
mov r8d, r13d
test ecx, ecx
jle 0x18007d335
mov r9, r11
mov rdx, r10
sub r9, r10
mov eax, dword [rdx + r9]
inc r8d
mov dword [rdx], eax
lea rdx, [rdx + 4]
mov ecx, dword [rbx + rdi]
cmp r8d, ecx
jl 0x18007d320
inc esi
add r10, r15
add r11, r12
cmp esi, dword [rbx + rdi + 4]
jl 0x18007d310
mov r8d, dword [rsp + 0x60]
mov r9, qword [rbp - 0x60]
mov r12, qword [rsp + 0x70]
mov rdx, qword [rbp - 0x68]
mov r15, qword [rbp + 0x208]
mov edi, dword [rsp + 0x68]
add rdx, 0x18
mov rcx, qword [rbp - 0x50]
inc edi
add rbx, 0x28
mov dword [rsp + 0x68], edi
mov qword [rbp - 0x68], rdx
cmp edi, dword [rcx + 0x40]
jl 0x18007d140
mov rsi, qword [rbp - 0x10]
mov r14, qword [rbp - 0x48]
mov qword [rcx + 0x28], r13
add rcx, 0x70
add rsi, 0x88
sub r14, 1
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x10], rsi
jne 0x18007d080
movaps xmm11, xmmword [rsp + 0x260]
movaps xmm10, xmmword [rsp + 0x270]
movaps xmm9, xmmword [rsp + 0x280]
movzx eax, byte [rbp + 0x218]
mov r14, qword [rbp - 0x40]
mov r12d, dword [rsp + 0x78]
movaps xmm12, xmmword [rsp + 0x250]
mov rsi, qword [rbp - 0x58]
mov byte [r15 + 0x1a], al
mov eax, dword [rsp + 0x7c]
test eax, eax
jle 0x18007d41f
mov rbx, rsi
mov edi, eax
mov rcx, qword [rbx]
test rcx, rcx
je 0x18007d40f
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007d40f
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 0x18007d3f5
test r12d, r12d
jle 0x18007d48c
mov rbx, qword [rbp - 0x80]
add rbx, 0x18
mov edi, r12d
nop
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x18007d451
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007d44b
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 0x18007d472
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007d46c
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 0x18007d482
call fcn.1800830a0
mov qword [rbx], r13
add rbx, 0x70
sub rdi, 1
jne 0x18007d430
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x18007d4b4
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007d4a7
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp - 0x80], r13
mov rcx, r15
call fcn.1800690a0
mov rcx, r15
call fcn.1800691e0
cmp dword [r15 + 0x58], 0
mov edi, r13d
jle 0x18007d5ca
mov rbx, r13
nop word [rax + rax]
mov r10, qword [r15 + 0x60]
mov r11, qword [rbx + r10 + 0x18]
test r11, r11
je 0x18007d5ba
mov r8d, dword [rbx + r10 + 8]
test r8d, r8d
je 0x18007d5ba
movzx edx, word [rbx + r10 + 6]
movzx ecx, word [rbx + r10 + 2]
movzx eax, word [rbx + r10 + 4]
movzx r9d, word [rbx + r10]
movss xmm5, dword [rbx + r10 + 0x14]
movss xmm3, dword [rbx + r10 + 0x10]
movss xmm0, dword [rbx + r10 + 0xc]
movss dword [rsp + 0x58], xmm0
movd xmm8, eax
add eax, r9d
movd xmm7, edx
movd xmm2, ecx
cvtdq2ps xmm7, xmm7
movd xmm6, eax
lea eax, [rcx + rdx]
mulss xmm7, dword [r15 + 0x3c]
xor edx, edx
mov rcx, r11
movd xmm4, eax
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm6, xmm6
mulss xmm4, dword [r15 + 0x3c]
mulss xmm6, dword [r15 + 0x38]
movss dword [rsp + 0x50], xmm4
movd xmm1, r9d
movss dword [rsp + 0x48], xmm6
movss dword [rsp + 0x40], xmm7
cvtdq2ps xmm8, xmm8
cvtdq2ps xmm2, xmm2
mulss xmm8, dword [r15 + 0x38]
cvtdq2ps xmm1, xmm1
movss dword [rsp + 0x38], xmm8
addss xmm2, xmm5
addss xmm1, xmm3
movss dword [rsp + 0x30], xmm2
movss dword [rsp + 0x28], xmm1
movss dword [rsp + 0x20], xmm5
call fcn.180069b10
inc edi
add rbx, 0x20
cmp edi, dword [r15 + 0x58]
jl 0x18007d4e0
cmp dword [r15 + 0x48], 0
movaps xmm8, xmmword [rsp + 0x290]
movaps xmm7, xmmword [rsp + 0x2a0]
movaps xmm6, xmmword [rsp + 0x2b0]
jle 0x18007d610
mov rbx, r13
nop dword [rax]
mov rax, qword [r15 + 0x50]
mov rcx, qword [rbx + rax]
cmp byte [rcx + 0x58], 0
je 0x18007d603
call fcn.180069520
inc r13d
add rbx, 8
cmp r13d, dword [r15 + 0x48]
jl 0x18007d5f0
mov byte [r15 + 0x19], 1
mov bl, 1
test r14, r14
je 0x18007d637
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007d62e
dec dword [rax + 0xf4]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rsi, rsi
je 0x18007d657
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007d64e
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x18007d678
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007d672
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 + 0x310]
test rcx, rcx
je 0x18007d6c9
mov rax, qword [0x1801d5410]
test rax, rax
je 0x18007d6c3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x18007d6ed
mov rcx, qword [0x1801d5410]
test rcx, rcx
je 0x18007d6e4
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