Function at 0x1800522d0
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 [0x180149040]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r12d, r8d
mov rsi, rdx
mov qword [rbp - 0x80], rdx
mov r13, rcx
mov rcx, rdx
call fcn.18004ef20
xor ebx, ebx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x30], rbx
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x40], rbx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x180052373
mov rax, qword [0x180152208]
test rax, rax
je 0x18005236d
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 0x180052394
mov rax, qword [0x180152208]
test rax, rax
je 0x18005238e
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x28], rbx
mov byte [rsi + 0x1a], bl
mov byte [rsp + 0x61], bl
mov dword [rbp - 0x1c], ebx
mov r14, rbx
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x2c], ebx
mov r15, rbx
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x28], rbx
mov edi, dword [rsi + 0x68]
mov dword [rsp + 0x70], edi
mov eax, 8
test edi, edi
jle 0x18005240e
mov ebx, edi
cmp edi, eax
cmovl ebx, eax
test ebx, ebx
jle 0x18005240e
mov rax, qword [0x180152208]
test rax, rax
je 0x1800523ed
inc dword [rax + 0xf4]
movsxd rax, ebx
imul rcx, rax, 0x70
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x1c], ebx
mov eax, 8
mov dword [rbp - 0x20], edi
mov edi, dword [rsi + 0x48]
mov dword [rsp + 0x64], edi
test edi, edi
jle 0x180052455
mov ebx, edi
cmp edi, 8
cmovl ebx, eax
test ebx, ebx
jle 0x180052455
mov rax, qword [0x180152208]
test rax, rax
je 0x18005243a
inc dword [rax + 0xf4]
movsxd rcx, ebx
shl rcx, 5
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x2c], ebx
mov dword [rbp - 0x30], edi
imul ecx, dword [rsp + 0x70], 0x70
movsxd r8, ecx
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov ecx, edi
shl ecx, 5
movsxd r8, ecx
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
mov r15d, ecx
cmp dword [rsi + 0x68], ecx
jle 0x1800525ad
mov r14d, ecx
mov rbx, qword [rsp + 0x78]
add rbx, 0x44
nop word [rax + rax]
mov rdi, qword [rsi + 0x70]
add rdi, r14
mov dword [rbx - 4], 0xffffffff
mov r8d, ecx
cmp dword [rsi + 0x48], 0
jle 0x1800525a6
mov edx, 0xffffffff
mov r9, rcx
mov eax, edx
cmp edx, 0xffffffff
jne 0x1800524f1
mov rax, qword [rsi + 0x50]
mov rcx, qword [r9 + rax]
cmp qword [rdi + 0x80], rcx
jne 0x1800524e2
mov dword [rbx - 4], r8d
mov edx, r8d
inc r8d
add r9, 8
mov eax, edx
cmp r8d, dword [rsi + 0x48]
jl 0x1800524c3
cmp eax, 0xffffffff
je 0x1800525a6
mov r9d, r12d
mov r8, rdi
mov rdx, r13
lea rcx, [rbx - 0x44]
call fcn.1800512f0
test al, al
je 0x1800525a6
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, [0x18012d10c]
test rax, rax
cmovne rdx, rax
mov qword [rbx - 0xc], rdx
cmp word [rdx], 0
je 0x18005256c
nop dword [rax + rax]
movzx eax, word [rdx + 2]
test ax, ax
je 0x18005256c
mov ecx, eax
cmp dword [rbx], eax
cmovge ecx, dword [rbx]
mov dword [rbx], ecx
add rdx, 4
cmp word [rdx], 0
jne 0x180052550
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 [rbp - 0x80]
cmp r15d, dword [rsi + 0x68]
mov ecx, 0
jl 0x1800524a0
mov r14, qword [rsp + 0x78]
jmp 0x1800525b1
xor bl, bl
jmp 0x180053464
mov r9, qword [rbp - 0x68]
xor r13d, r13d
mov r12d, r13d
mov esi, 1
mov dword [rsp + 0x74], esi
mov eax, dword [rsp + 0x70]
test eax, eax
jle 0x18005289b
add r14, 0x48
mov edi, eax
mov qword [rbp - 0x78], rax
nop word [rax + rax]
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.180040c00
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 0x18005263e
mov edx, dword [r15 + 4]
add edx, 0x20
sar edx, 5
lea rcx, [r15 + 0x10]
call fcn.180040c00
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 0x1800526ce
nop
movzx eax, word [r13 + 2]
test ax, ax
je 0x1800526ca
movzx edi, word [r13]
cmp edi, eax
ja 0x1800526be
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 0x1800526ae
mov edx, edi
mov rcx, qword [r14 - 0x30]
call fcn.18007bed0
test eax, eax
je 0x1800526ae
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 0x180052670
add r13, 4
cmp word [r13], 0
jne 0x180052650
mov rdi, qword [rbp - 0x78]
add r14, 0x70
sub rdi, 1
mov qword [rbp - 0x78], rdi
mov r9, qword [rbp - 0x68]
jne 0x1800525e0
mov r14, qword [rsp + 0x78]
add r14, 0x68
mov r15d, dword [rsp + 0x70]
mov qword [rbp - 0x78], r15
mov dword [rsp + 0x6c], r12d
xor r12d, r12d
nop
movsxd rbx, dword [r14 - 0x20]
cmp ebx, dword [r14 - 4]
jle 0x180052770
mov rax, qword [0x180152208]
test rax, rax
je 0x18005271c
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 rdi, rax
mov rdx, qword [r14]
test rdx, rdx
je 0x180052769
movsxd rcx, dword [r14 - 8]
lea r8, [rcx + rcx*4]
shl r8, 3
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [r14]
test rcx, rcx
je 0x180052763
mov rax, qword [0x180152208]
test rax, rax
je 0x180052763
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]
lea rax, [rax*4]
add rax, r13
mov qword [rbp - 0x50], rax
mov rsi, r13
cmp r13, rax
jae 0x180052853
mov r15d, dword [rsi]
test r15d, r15d
je 0x180052842
mov edi, r12d
bt r15d, edi
jae 0x180052833
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rbp + 0x18], xmm6
mov qword [rbp + 0x28], rax
lea rcx, [rsi*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 [r14 - 4]
mov ecx, dword [r14 - 8]
cmp ecx, r8d
jne 0x18005280c
inc ecx
test r8d, r8d
je 0x1800527f7
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x1800527fc
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [r14 - 8]
call fcn.180053660
movsxd rax, dword [r14 - 8]
lea rcx, [rax + rax*4]
mov rax, qword [r14]
movups xmmword [rax + rcx*8], xmm6
movups xmm0, xmmword [rbp + 0x18]
movups xmmword [rax + rcx*8 + 0x10], xmm0
movsd xmm1, qword [rbp + 0x28]
movsd qword [rax + rcx*8 + 0x20], xmm1
inc dword [r14 - 8]
inc edi
cmp edi, 0x20
jb 0x1800527a2
mov rax, qword [rbp - 0x50]
add rsi, 4
cmp rsi, rax
jb 0x180052793
mov r15, qword [rbp - 0x78]
mov rcx, qword [r14 - 0x10]
test rcx, rcx
je 0x18005287c
mov qword [r14 - 0x18], r12
mov rax, qword [0x180152208]
test rax, rax
je 0x180052872
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r14 - 0x10], r12
add r14, 0x70
sub r15, 1
mov qword [rbp - 0x78], r15
jne 0x180052700
mov r12d, dword [rsp + 0x6c]
mov esi, 1
xor r13d, r13d
mov eax, dword [rsp + 0x64]
test eax, eax
jle 0x1800528e5
mov rbx, qword [rbp - 0x68]
add rbx, 0x18
mov edi, eax
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800528db
mov qword [rbx - 8], 0
mov rax, qword [0x180152208]
test rax, rax
je 0x1800528d2
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 0x1800528b0
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x180052919
mov qword [rbp - 0x30], 0
mov rax, qword [0x180152208]
test rax, rax
je 0x180052908
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x28], rcx
mov dword [rbp - 0xc], r13d
mov r15, r13
mov qword [rbp - 0x78], r13
mov qword [rbp - 8], r13
mov edi, 8
test r12d, r12d
jle 0x180052970
mov ebx, r12d
cmp r12d, edi
cmovl ebx, edi
test ebx, ebx
jle 0x180052970
mov rax, qword [0x180152208]
test rax, rax
je 0x180052951
inc dword [rax + 0xf4]
movsxd rax, ebx
lea rcx, [rax + rax*2]
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], ebx
mov dword [rbp - 0x10], r12d
lea ecx, [r12 + r12*2]
shl ecx, 3
movsxd r8, ecx
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x64], r13d
mov dword [rbp + 0x34], r13d
mov qword [rbp + 0x38], r13
mov rax, qword [0x180152208]
mov ecx, 0x40000
test rax, rax
je 0x1800529ac
inc dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14d, edi
mov rbx, rax
mov rax, qword [0x180152208]
test rax, rax
je 0x1800529ca
inc dword [rax + 0xf4]
mov ecx, 0x40
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x70], rax
mov qword [rbp + 0x38], rax
mov dword [rbp + 0x34], r14d
mov qword [rax], rbx
mov dword [rbp + 0x30], esi
mov ecx, r13d
mov dword [rsp + 0x68], ecx
mov r10d, r13d
movss xmm6, dword [0x1801325bc]
mov r12d, dword [rsp + 0x70]
test r12d, r12d
jle 0x180052db7
mov r9, r13
mov qword [rbp - 0x58], r13
mov rbx, qword [rsp + 0x78]
add rbx, 0x60
mov r11d, r12d
mov qword [rbp - 0x50], r12
mov rdi, qword [rbp - 0x80]
nop dword [rax]
nop word [rax + rax]
mov r8, qword [rdi + 0x70]
mov edx, dword [rbx - 0x18]
test edx, edx
je 0x180052d95
movsxd rax, r10d
lea rcx, [rax + rax*2]
lea rax, [r15 + rcx*8]
mov qword [rbx - 0x30], rax
add r10d, edx
mov dword [rbp - 0x60], r10d
movss xmm1, dword [r9 + r8 + 0x50]
ucomiss xmm1, xmm6
jp 0x180052a6a
jne 0x180052a6a
mov byte [rsp + 0x60], 0
jmp 0x180052ab8
mov byte [rsp + 0x60], 1
mov r8d, r13d
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 0x180052a80
mov r9, qword [rbp - 0x58]
mov eax, dword [rdi + 0x14]
mov dword [rbp - 0x48], eax
mov r12d, r13d
mov dword [rsp + 0x6c], r13d
cmp dword [rbx], 0
jle 0x180052d91
xor eax, eax
mov edi, eax
mov r15, qword [rbx + 8]
mov edx, dword [rdi + r15 + 0x18]
mov rcx, qword [rbx - 0x48]
call fcn.18007bed0
test eax, eax
je 0x180052d5b
mov r8d, dword [rbx - 0x3c]
mov edx, eax
mov rcx, qword [rbx - 0x48]
call fcn.18007ced0
test eax, eax
jne 0x180052d5b
mov rax, qword [rbx - 0x48]
mov rsi, qword [rax + 0x78]
test byte [rbx - 0x40], 0x20
je 0x180052b1a
mov rcx, rsi
call fcn.180085610
test byte [rbx - 0x40], 0x40
je 0x180052b28
mov rcx, rsi
call fcn.180085710
lea rax, [rsi + 0x30]
test rax, rax
je 0x180052d5b
mov rax, qword [rbx - 0x48]
mov rsi, qword [rax + 0x78]
mov edx, dword [rbx - 0x38]
mov rcx, rsi
call fcn.18007f910
test eax, eax
jne 0x180052d5b
mov rax, qword [rbx - 0x48]
mov r9, qword [rax + 0x78]
add r9, 0x68
mov qword [rbp - 0x40], r9
mov r8d, dword [r9 + 4]
mov dword [rdi + r15], r8d
mov r12d, dword [r9]
mov dword [rdi + r15 + 4], r12d
mov rax, qword [rbx - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x90]
mov dword [rdi + r15 + 8], eax
mov rax, qword [rbx - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x94]
neg eax
mov dword [rdi + r15 + 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 + r15 + 0x10], xmm0
cmp byte [r9 + 0x1a], 7
sete al
mov byte [rdi + r15 + 0x14], al
imul r12d, r8d
shl r12d, 2
mov esi, dword [rsp + 0x64]
lea eax, [r12 + rsi]
cmp eax, 0x40000
jle 0x180052cce
xor eax, eax
mov esi, eax
mov dword [rsp + 0x64], eax
mov rax, qword [0x180152208]
test rax, rax
je 0x180052bfa
inc dword [rax + 0xf4]
mov ecx, 0x40000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp], rax
mov r8d, dword [rsp + 0x74]
cmp r8d, r14d
jne 0x180052cb1
lea esi, [r8 + 1]
test r14d, r14d
je 0x180052c2d
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
add eax, r14d
jmp 0x180052c32
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, r14d
jle 0x180052cad
mov rax, qword [0x180152208]
test rax, rax
je 0x180052c4e
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 r14, rax
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x180052c97
movsxd r8, dword [rsp + 0x74]
shl r8, 3
mov rdx, rcx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [0x180152208]
test rcx, rcx
je 0x180052c8d
dec dword [rcx + 0xf4]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, r14
mov qword [rbp - 0x70], rax
mov qword [rbp + 0x38], rax
mov r14d, esi
mov dword [rbp + 0x34], esi
mov r8d, dword [rsp + 0x74]
mov esi, dword [rsp + 0x64]
movsxd rax, r8d
mov rcx, qword [rbp]
mov rdx, qword [rbp - 0x70]
mov qword [rdx + rax*8], rcx
inc r8d
mov dword [rsp + 0x74], r8d
mov dword [rbp + 0x30], r8d
jmp 0x180052cd7
mov r8d, dword [rsp + 0x74]
mov rdx, qword [rbp - 0x70]
lea eax, [r8 - 1]
cdqe
movsxd rcx, esi
mov r8, qword [rdx + rax*8]
add r8, rcx
mov qword [rdi + r15 + 0x20], r8
add esi, r12d
mov dword [rsp + 0x64], esi
lea rax, [rbp + 0x90]
cmp byte [rsp + 0x60], 0
mov ecx, 0
cmove rax, rcx
mov qword [rsp + 0x20], rax
mov r9d, dword [rdi + r15]
mov rdx, qword [rbp - 0x40]
call fcn.1800514e0
mov ecx, dword [rdi + r15]
add ecx, dword [rbp - 0x48]
mov rax, qword [rbx - 0x30]
mov dword [rax + r13 + 4], ecx
mov ecx, dword [rdi + r15 + 4]
add ecx, dword [rbp - 0x48]
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 [rsp + 0x68]
add ecx, eax
mov dword [rsp + 0x68], ecx
mov r12d, dword [rsp + 0x6c]
jmp 0x180052d5f
mov ecx, dword [rsp + 0x68]
inc r12d
mov dword [rsp + 0x6c], r12d
add rdi, 0x28
add r13, 0x18
cmp r12d, dword [rbx]
jl 0x180052ad3
mov r9, qword [rbp - 0x58]
mov r10d, dword [rbp - 0x60]
mov r11, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x80]
mov r15, qword [rbp - 0x78]
xor r13d, r13d
jmp 0x180052d95
mov ecx, dword [rsp + 0x68]
add rbx, 0x70
add r9, 0x88
mov qword [rbp - 0x58], r9
sub r11, 1
mov qword [rbp - 0x50], r11
jne 0x180052a30
mov r12d, dword [rsp + 0x70]
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x180052dcf
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x180052dd7
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
cvttss2si eax, xmm0
inc eax
mov r15, qword [rbp - 0x80]
mov dword [r15 + 0x34], r13d
mov ebx, dword [r15 + 0x10]
test ebx, ebx
jg 0x180052e28
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x1801327c0]
jb 0x180052e04
mov ebx, 0x1000
jmp 0x180052e28
comiss xmm0, dword [0x1801327b4]
jb 0x180052e14
mov ebx, 0x800
jmp 0x180052e28
mov ebx, 0x200
mov eax, 0x400
comiss xmm0, dword [0x180132794]
cmovae ebx, eax
mov rax, r15
mov dword [rax + 0x30], ebx
sub ebx, dword [r15 + 0x14]
mov dword [rbp - 0x3c], r13d
mov r14, r13
mov qword [rbp - 0x38], r13
test ebx, ebx
jle 0x180052e7b
mov edi, ebx
cmp ebx, 8
mov eax, 8
cmovl edi, eax
test edi, edi
jle 0x180052e7b
mov rax, qword [0x180152208]
test rax, rax
je 0x180052e64
inc dword [rax + 0xf4]
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 - 0x38], rax
mov dword [rbp - 0x3c], edi
mov dword [rbp - 0x40], ebx
mov dword [rsp + 0x20], ebx
mov r9, r14
mov edx, dword [r15 + 0x30]
lea rcx, [rbp + 0x40]
call fcn.180051ea0
lea rdx, [rbp + 0x40]
mov rcx, r15
call fcn.18004e630
mov r13, qword [rsp + 0x78]
test r12d, r12d
jle 0x180052f0c
lea rbx, [r13 + 0x48]
mov edi, r12d
xor r14d, r14d
mov r8d, dword [rbx]
test r8d, r8d
je 0x180052efe
mov rdx, qword [rbx - 0x18]
lea rcx, [rbp + 0x40]
call fcn.1800520d0
mov r8d, r14d
cmp dword [rbx], r14d
jle 0x180052efe
mov rdx, r14
mov rax, qword [rbx - 0x18]
cmp dword [rdx + rax + 0x14], r14d
je 0x180052ef2
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 0x180052ed2
add rbx, 0x70
sub rdi, 1
jne 0x180052eb2
mov r14, qword [rbp - 0x38]
mov eax, dword [r15 + 0x34]
test byte [r15], 1
jne 0x180052f3b
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 [r15 + 0x34], ecx
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movaps xmm1, xmm6
divss xmm1, xmm0
movsxd rax, dword [r15 + 0x30]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm6, xmm0
movss dword [r15 + 0x38], xmm6
movss dword [r15 + 0x3c], xmm1
movsxd rbx, ecx
imul rbx, rax
mov rax, qword [0x180152208]
cmp byte [rsp + 0x61], 0
je 0x180052fa2
lea rbx, [rbx*4]
test rax, rax
je 0x180052f93
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 0x180052fba
test rax, rax
je 0x180052fad
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
mov byte [rsp + 0x60], al
test r12d, r12d
jle 0x180053309
xor eax, eax
mov esi, eax
mov qword [rbp - 0x50], rax
add r13, 8
mov r14d, r12d
mov qword [rbp - 0x48], r14
movss xmm12, dword [0x180132588]
cmp dword [r13 + 0x40], 0
je 0x1800532de
mov rdx, qword [r15 + 0x70]
add rdx, rsi
mov qword [rbp - 0x60], rdx
mov r9, qword [rdx + 0x80]
mov qword [rbp - 0x58], r9
movss xmm6, dword [r13 - 4]
movss xmm7, dword [r13]
lea rbx, [r9 + 0x50]
lea rdi, [r9 + 0x60]
cmp byte [rdx + 0x48], 0
jne 0x18005305b
mov rcx, r9
call fcn.18004f210
mov rdx, qword [rbp - 0x60]
mov eax, dword [rdx + 0x14]
mov r9, qword [rbp - 0x58]
mov dword [r9 + 0x14], eax
mov qword [r9 + 0x48], rdx
xor eax, eax
mov word [rbx], ax
mov qword [r9 + 0x40], r15
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 [r15 + 0x14]
mov dword [rsp + 0x64], r8d
xor eax, eax
mov dword [rsp + 0x6c], eax
cmp dword [r13 + 0x40], eax
jle 0x1800532da
mov r12d, eax
mov ebx, eax
nop
mov rdi, qword [r13 + 0x60]
mov rcx, qword [r13 + 0x28]
cmp dword [r12 + rcx + 4], 0
jne 0x1800530bc
cmp dword [r12 + rcx + 8], 0
je 0x1800532b2
mov esi, dword [r12 + rcx + 0xc]
add esi, r8d
mov r14d, dword [r12 + rcx + 0x10]
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 [r15 + 0x30]
cvtdq2ps xmm0, xmm0
movd xmm6, esi
cvtdq2ps xmm6, xmm6
divss xmm6, xmm0
movd xmm2, dword [r15 + 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.18004f810
mov rdx, qword [rbp - 0x58]
movsxd rax, dword [rdx + 0x28]
lea rcx, [rax + rax*4]
mov rax, qword [rdx + 0x30]
cmp byte [rbx + rdi + 0x14], 0
je 0x1800531b7
mov byte [rsp + 0x60], 1
or dword [rax + rcx*8 - 0x28], 1
movsxd rdx, dword [rbx + rdi]
movsxd r15, dword [r15 + 0x30]
mov r10, qword [rbx + rdi + 0x20]
mov r11, qword [rbp - 0x80]
mov rcx, qword [r11 + 0x20]
movsxd rax, r14d
imul rax, r15
movsxd r8, esi
test rcx, rcx
je 0x18005323b
lea r11, [rcx + r8]
add r11, rax
xor eax, eax
mov esi, eax
cmp dword [rbx + rdi + 4], eax
jle 0x1800532a5
lea r14, [rdx*4]
mov r9d, eax
test edx, edx
jle 0x18005322b
mov rcx, r11
lea r8, [r10 + 3]
nop word [rax + rax]
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 0x180053210
xor eax, eax
inc esi
add r11, r15
add r10, r14
cmp esi, dword [rbx + rdi + 4]
jl 0x1800531f8
jmp 0x1800532a5
lea rcx, [r8 + rax]
mov rax, qword [r11 + 0x28]
lea r11, [rax + rcx*4]
xor eax, eax
mov esi, eax
cmp dword [rbx + rdi + 4], eax
jle 0x1800532a5
lea r15, [r15*4]
lea r14, [rdx*4]
mov r8d, eax
test edx, edx
jle 0x180053297
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 0x180053280
xor eax, eax
inc esi
add r11, r15
add r10, r14
cmp esi, dword [rbx + rdi + 4]
jl 0x180053261
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rbp - 0x60]
mov r15, qword [rbp - 0x80]
mov ecx, dword [rsp + 0x6c]
inc ecx
mov dword [rsp + 0x6c], ecx
add rbx, 0x28
add r12, 0x18
cmp ecx, dword [r13 + 0x40]
mov r9, qword [rbp - 0x58]
jl 0x1800530a0
mov rsi, qword [rbp - 0x50]
mov r14, qword [rbp - 0x48]
mov qword [r13 + 0x28], rax
add r13, 0x70
add rsi, 0x88
mov qword [rbp - 0x50], rsi
sub r14, 1
mov qword [rbp - 0x48], r14
jne 0x180052ff2
movzx eax, byte [rsp + 0x60]
mov r14, qword [rbp - 0x38]
mov r12d, dword [rsp + 0x70]
mov byte [r15 + 0x1a], al
mov eax, dword [rsp + 0x74]
mov rsi, qword [rbp - 0x70]
test eax, eax
jle 0x18005334a
mov rbx, rsi
mov edi, eax
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x18005333a
mov rax, qword [0x180152208]
test rax, rax
je 0x18005333a
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 0x180053320
test r12d, r12d
jle 0x1800533c2
mov rbx, qword [rsp + 0x78]
add rbx, 0x18
mov edi, r12d
xor esi, esi
nop dword [rax]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x180053382
mov rax, qword [0x180152208]
test rax, rax
je 0x18005337b
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x1800533a4
mov rax, qword [0x180152208]
test rax, rax
je 0x18005339d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800533b4
call fcn.18007b8d0
mov qword [rbx], rsi
add rbx, 0x70
sub rdi, 1
jne 0x180053360
mov rsi, qword [rbp - 0x70]
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x1800533f6
xor ebx, ebx
mov qword [rbp - 0x20], rbx
mov rax, qword [0x180152208]
test rax, rax
je 0x1800533e4
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x18], rbx
mov rcx, r15
call fcn.18004efe0
mov bl, 1
test r14, r14
je 0x180053421
mov rax, qword [0x180152208]
test rax, rax
je 0x180053417
dec dword [rax + 0xf4]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
test rsi, rsi
je 0x180053442
mov rax, qword [0x180152208]
test rax, rax
je 0x180053438
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x180053464
mov rax, qword [0x180152208]
test rax, rax
je 0x18005345d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x180053486
mov rax, qword [0x180152208]
test rax, rax
je 0x18005347f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1800534ac
mov rcx, qword [0x180152208]
test rcx, rcx
je 0x1800534a2
dec dword [rcx + 0xf4]
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.1800e54a0
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