Function at 0x180044380
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 - 0x238]
sub rsp, 0x300
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 [0x180591028]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r12d, r8d
mov rdi, rdx
mov qword [rbp - 0x68], rdx
mov r13, rcx
xor esi, esi
cmp dword [rdx + 0x484], esi
jge 0x180044430
mov dword [rbp - 0x44], 0xffffffff
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rsi
lea rcx, [rdx + 0x58]
test byte [rdx], 2
lea rdx, [rbp - 0x48]
mov dword [rbp - 0x48], 0x1b00f5
je 0x180044420
mov dword [rbp - 0x48], 0x20002
call fcn.18002bef0
mov eax, dword [rdi + 0x58]
dec eax
mov dword [rdi + 0x484], eax
cmp dword [rdi + 0x488], esi
jge 0x18004446f
test byte [rdi], 4
jne 0x18004446f
mov dword [rbp - 0x44], 0xffffffff
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rsi
mov dword [rbp - 0x48], 0x400041
lea rdx, [rbp - 0x48]
lea rcx, [rdi + 0x58]
call fcn.18002bef0
mov eax, dword [rdi + 0x58]
dec eax
mov dword [rdi + 0x488], eax
mov qword [rdi + 8], rsi
mov qword [rdi + 0x30], rsi
mov qword [rdi + 0x38], rsi
mov qword [rdi + 0x40], rsi
mov rcx, rdi
call fcn.180028ab0
mov byte [rsp + 0x61], sil
mov dword [rbp + 0x14], esi
mov r15, rsi
mov qword [rsp + 0x78], rsi
mov qword [rbp + 0x18], rsi
mov dword [rbp + 4], esi
mov rax, rsi
mov qword [rbp - 0x78], rax
mov qword [rbp + 8], rax
mov r14d, dword [rdi + 0x68]
mov dword [rsp + 0x70], r14d
mov eax, 8
test r14d, r14d
jle 0x1800444fc
mov ebx, r14d
cmp r14d, eax
cmovl ebx, eax
test ebx, ebx
jle 0x1800444fc
mov rax, qword [0x180593810]
test rax, rax
je 0x1800444db
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 r15, rax
mov qword [rsp + 0x78], rax
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x14], ebx
mov eax, 8
mov dword [rbp + 0x10], r14d
mov edi, dword [rdi + 0x48]
mov dword [rsp + 0x64], edi
test edi, edi
jle 0x180044541
mov ebx, edi
cmp edi, 8
cmovl ebx, eax
test ebx, ebx
jle 0x180044541
mov rax, qword [0x180593810]
test rax, rax
je 0x180044529
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 qword [rbp - 0x78], rax
mov qword [rbp + 8], rax
mov dword [rbp + 4], ebx
mov dword [rbp], edi
imul ecx, r14d, 0x70
movsxd r8, ecx
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
mov ecx, edi
shl ecx, 5
movsxd r8, ecx
xor edx, edx
mov rcx, qword [rbp - 0x78]
call sub.VCRUNTIME140.dll_memset
mov r15d, esi
mov r10, qword [rbp - 0x68]
cmp dword [r10 + 0x68], esi
jle 0x18004469d
mov r14, rsi
mov rbx, qword [rsp + 0x78]
add rbx, 0x44
nop word [rax + rax]
mov rdi, qword [r10 + 0x70]
add rdi, r14
mov dword [rbx - 4], 0xffffffff
mov r8d, esi
cmp dword [r10 + 0x48], 0
jle 0x180044696
mov edx, 0xffffffff
mov r9, rsi
mov eax, edx
cmp edx, 0xffffffff
jne 0x1800445e2
mov rax, qword [r10 + 0x50]
mov rcx, qword [r9 + rax]
cmp qword [rdi + 0x80], rcx
jne 0x1800445d3
mov dword [rbx - 4], r8d
mov edx, r8d
inc r8d
add r9, 8
mov eax, edx
cmp r8d, dword [r10 + 0x48]
jl 0x1800445b4
cmp eax, 0xffffffff
je 0x180044696
mov r9d, r12d
mov r8, rdi
mov rdx, r13
lea rcx, [rbx - 0x44]
call fcn.1800433e0
test al, al
je 0x180044696
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 - 0x78]
add r8, r9
mov rax, qword [rdi + 0x38]
lea rdx, [0x18056e7e8]
test rax, rax
cmovne rdx, rax
mov qword [rbx - 0xc], rdx
cmp word [rdx], 0
je 0x18004465c
nop dword [rax]
movzx eax, word [rdx + 2]
test ax, ax
je 0x18004465c
mov ecx, eax
cmp dword [rbx], eax
cmovge ecx, dword [rbx]
mov dword [rbx], ecx
add rdx, 4
cmp word [rdx], 0
jne 0x180044640
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 r10, qword [rbp - 0x68]
cmp r15d, dword [r10 + 0x68]
mov esi, 0
jl 0x180044590
mov r14d, dword [rsp + 0x70]
jmp 0x1800446a1
xor bl, bl
jmp 0x1800456da
mov r9, qword [rbp - 0x78]
xor r13d, r13d
mov r12d, r13d
mov r15d, 1
mov dword [rsp + 0x74], r15d
test r14d, r14d
jle 0x1800449f1
mov r14, qword [rsp + 0x78]
add r14, 0x58
mov eax, dword [rsp + 0x70]
mov qword [rbp - 0x80], rax
mov esi, eax
mov qword [rbp - 0x70], rax
nop dword [rax]
nop word [rax + 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 0x180044726
test ecx, ecx
je 0x18004470c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x180044711
mov eax, 8
lea rdi, [r14 - 8]
mov edx, ebx
cmp eax, ebx
cmovg edx, eax
mov rcx, rdi
call fcn.1800231e0
jmp 0x18004472a
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 0x180044790
mov ebx, dword [r15 + 4]
add ebx, 0x20
sar ebx, 5
mov ecx, dword [r15 + 0x14]
cmp ebx, ecx
jle 0x18004477a
test ecx, ecx
je 0x180044765
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18004476a
mov eax, 8
mov edx, ebx
cmp eax, ebx
cmovg edx, eax
lea rcx, [r15 + 0x10]
call fcn.1800231e0
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 0x18004481e
movzx eax, word [r13 + 2]
test ax, ax
je 0x18004481a
movzx edi, word [r13]
cmp edi, eax
ja 0x18004480e
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 0x180044803
mov edx, edi
mov rcx, qword [r14 - 0x40]
call fcn.18044f490
test eax, eax
je 0x180044803
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 0x1800447c0
add r13, 4
cmp word [r13], 0
jne 0x1800447a0
mov rsi, qword [rbp - 0x70]
add r14, 0x70
sub rsi, 1
mov qword [rbp - 0x70], rsi
mov r9, qword [rbp - 0x78]
jne 0x1800446e0
mov rsi, qword [rsp + 0x78]
add rsi, 0x68
mov r15, qword [rbp - 0x80]
mov qword [rbp - 0x70], r15
mov dword [rsp + 0x6c], r12d
nop word [rax + rax]
movsxd rbx, dword [rsi - 0x20]
cmp ebx, dword [rsi - 4]
jle 0x1800448be
mov rax, qword [0x180593810]
test rax, rax
je 0x18004486b
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 [rsi]
test rdx, rdx
je 0x1800448b8
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 0x1800448b2
mov rax, qword [0x180593810]
test rax, rax
je 0x1800448b2
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]
lea rax, [rax*4]
add rax, r13
mov qword [rbp - 0x60], rax
mov r14, r13
cmp r13, rax
jae 0x1800449a2
xor r12d, r12d
mov r15d, dword [r14]
test r15d, r15d
je 0x180044991
mov edi, r12d
bt r15d, edi
jae 0x180044982
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rbp - 0x38], xmm6
mov qword [rbp - 0x28], rax
lea rcx, [r14*8]
lea rax, [r13*8]
sub ecx, eax
and ecx, 0xffffffe0
add ecx, edi
movzx eax, cx
mov dword [rbp - 0x30], eax
mov r8d, dword [rsi - 4]
mov ecx, dword [rsi - 8]
cmp ecx, r8d
jne 0x18004495c
inc ecx
test r8d, r8d
je 0x180044947
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x18004494c
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rsi - 8]
call fcn.1800458e0
movsxd rax, dword [rsi - 8]
lea rcx, [rax + rax*4]
mov rax, qword [rsi]
movups xmmword [rax + rcx*8], xmm6
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rax + rcx*8 + 0x10], xmm0
movsd xmm1, qword [rbp - 0x28]
movsd qword [rax + rcx*8 + 0x20], xmm1
inc dword [rsi - 8]
inc edi
cmp edi, 0x20
jb 0x1800448f3
mov rax, qword [rbp - 0x60]
add r14, 4
cmp r14, rax
jb 0x1800448e4
mov r15, qword [rbp - 0x70]
mov rcx, qword [rsi - 0x10]
xor r13d, r13d
test rcx, rcx
je 0x1800449ce
mov qword [rsi - 0x18], r13
mov rax, qword [0x180593810]
test rax, rax
je 0x1800449c4
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 - 0x70], r15
jne 0x180044850
mov r12d, dword [rsp + 0x6c]
mov r14, qword [rbp - 0x80]
mov r15d, 1
jmp 0x1800449f8
mov eax, r14d
mov qword [rbp - 0x80], rax
mov eax, dword [rsp + 0x64]
test eax, eax
jle 0x180044a45
mov rbx, qword [rbp - 0x78]
add rbx, 0x18
mov edi, eax
nop word [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x180044a3b
mov qword [rbx - 8], 0
mov rax, qword [0x180593810]
test rax, rax
je 0x180044a32
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 0x180044a10
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x180044a79
mov qword [rbp], 0
mov rax, qword [0x180593810]
test rax, rax
je 0x180044a68
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
mov qword [rbp - 0x78], rcx
mov qword [rbp + 8], rcx
mov dword [rbp - 0x44], r13d
mov rdi, r13
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x40], r13
mov esi, 8
test r12d, r12d
jle 0x180044ad0
mov ebx, r12d
cmp r12d, esi
cmovl ebx, esi
test ebx, ebx
jle 0x180044ad0
mov rax, qword [0x180593810]
test rax, rax
je 0x180044ab1
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 rdi, rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x44], ebx
mov dword [rbp - 0x48], r12d
lea ecx, [r12 + r12*2]
shl ecx, 3
movsxd r8, ecx
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x64], r13d
mov dword [rbp + 0x24], r13d
mov qword [rbp + 0x28], r13
mov rax, qword [0x180593810]
mov ecx, 0x40000
test rax, rax
je 0x180044b0c
inc dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov rax, qword [0x180593810]
test rax, rax
je 0x180044b27
inc dword [rax + 0xf4]
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 + 0x28], rax
mov dword [rbp + 0x24], esi
mov qword [rax], rbx
mov dword [rbp + 0x20], r15d
mov ecx, r13d
mov dword [rsp + 0x68], ecx
mov r10d, r13d
movss xmm6, dword [0x180575680]
mov r12d, dword [rsp + 0x70]
test r12d, r12d
jle 0x180044f06
mov r9, r13
mov qword [rbp - 0x60], r13
mov rbx, qword [rsp + 0x78]
add rbx, 0x60
mov r11, qword [rbp - 0x68]
nop dword [rax + rax]
mov r8, qword [r11 + 0x70]
mov edx, dword [rbx - 0x18]
test edx, edx
je 0x180044ee4
movsxd rax, r10d
lea rcx, [rax + rax*2]
lea rax, [rdi + rcx*8]
mov qword [rbx - 0x30], rax
add r10d, edx
mov dword [rbp - 0x58], r10d
movss xmm1, dword [r9 + r8 + 0x50]
ucomiss xmm1, xmm6
jp 0x180044bba
jne 0x180044bba
mov byte [rsp + 0x60], 0
jmp 0x180044c08
mov byte [rsp + 0x60], 1
mov r8d, r13d
lea r9, [rbp + 0x80]
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 0x180044bd0
mov r9, qword [rbp - 0x60]
mov eax, dword [r11 + 0x14]
mov dword [rbp - 0x20], eax
mov r12d, r13d
mov dword [rsp + 0x6c], r13d
cmp dword [rbx], 0
jle 0x180044ee0
xor r14d, r14d
mov r15, qword [rbx + 8]
mov edx, dword [r14 + r15 + 0x18]
mov rcx, qword [rbx - 0x48]
call fcn.18044f490
test eax, eax
je 0x180044eaa
mov r8d, dword [rbx - 0x3c]
mov edx, eax
mov rcx, qword [rbx - 0x48]
call fcn.180450490
test eax, eax
jne 0x180044eaa
mov rax, qword [rbx - 0x48]
mov rdi, qword [rax + 0x78]
test byte [rbx - 0x40], 0x20
je 0x180044c6a
mov rcx, rdi
call fcn.180458ba0
test byte [rbx - 0x40], 0x40
je 0x180044c78
mov rcx, rdi
call fcn.180458ca0
lea rax, [rdi + 0x30]
test rax, rax
je 0x180044eaa
mov rax, qword [rbx - 0x48]
mov rdi, qword [rax + 0x78]
mov edx, dword [rbx - 0x38]
mov rcx, rdi
call fcn.180452ee0
test eax, eax
jne 0x180044eaa
mov rax, qword [rbx - 0x48]
mov r10, qword [rax + 0x78]
add r10, 0x68
mov qword [rbp - 0x10], r10
mov r8d, dword [r10 + 4]
mov dword [r14 + r15], r8d
mov r9d, dword [r10]
mov dword [r14 + r15 + 4], r9d
mov rax, qword [rbx - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x90]
mov dword [r14 + r15 + 8], eax
mov rax, qword [rbx - 0x48]
mov rcx, qword [rax + 0x78]
mov eax, dword [rcx + 0x94]
neg eax
mov dword [r14 + r15 + 0xc], eax
mov eax, dword [rdi + 0x58]
add eax, 0x3f
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [r14 + r15 + 0x10], xmm0
cmp byte [r10 + 0x1a], 7
sete al
mov byte [r14 + r15 + 0x14], al
imul r9d, r8d
shl r9d, 2
mov dword [rbp - 0x18], r9d
mov edi, dword [rsp + 0x64]
lea eax, [r9 + rdi]
cmp eax, 0x40000
jle 0x180044e23
xor edi, edi
mov dword [rsp + 0x64], edi
mov rax, qword [0x180593810]
test rax, rax
je 0x180044d4c
inc dword [rax + 0xf4]
mov ecx, 0x40000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov r8d, dword [rsp + 0x74]
cmp r8d, esi
jne 0x180044dfd
lea edi, [r8 + 1]
test esi, esi
je 0x180044d7b
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x180044d80
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, esi
jle 0x180044df9
mov rax, qword [0x180593810]
test rax, rax
je 0x180044d9b
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 rsi, rax
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x180044de4
movsxd r8, dword [rsp + 0x74]
shl r8, 3
mov rdx, rax
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [0x180593810]
test rcx, rcx
je 0x180044dda
dec dword [rcx + 0xf4]
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 + 0x28], rax
mov esi, edi
mov dword [rbp + 0x24], edi
mov r8d, dword [rsp + 0x74]
mov edi, dword [rsp + 0x64]
movsxd rax, r8d
mov rcx, qword [rbp - 0x50]
mov qword [rcx + rax*8], r12
inc r8d
mov dword [rsp + 0x74], r8d
mov dword [rbp + 0x20], r8d
mov r9d, dword [rbp - 0x18]
mov r10, qword [rbp - 0x10]
mov r12d, dword [rsp + 0x6c]
jmp 0x180044e28
mov r8d, dword [rsp + 0x74]
lea eax, [r8 - 1]
cdqe
movsxd rcx, edi
mov rdx, qword [rbp - 0x50]
mov r8, qword [rdx + rax*8]
add r8, rcx
mov qword [r14 + r15 + 0x20], r8
add edi, r9d
mov dword [rsp + 0x64], edi
lea rax, [rbp + 0x80]
cmp byte [rsp + 0x60], 0
mov ecx, 0
cmove rax, rcx
mov qword [rsp + 0x20], rax
mov r9d, dword [r14 + r15]
mov rdx, r10
call fcn.1800435d0
mov ecx, dword [r14 + r15]
add ecx, dword [rbp - 0x20]
mov rax, qword [rbx - 0x30]
mov dword [rax + r13 + 4], ecx
mov ecx, dword [r14 + r15 + 4]
add ecx, dword [rbp - 0x20]
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
jmp 0x180044eae
mov ecx, dword [rsp + 0x68]
inc r12d
mov dword [rsp + 0x6c], r12d
add r14, 0x28
add r13, 0x18
cmp r12d, dword [rbx]
jl 0x180044c23
xor r13d, r13d
mov r9, qword [rbp - 0x60]
mov r10d, dword [rbp - 0x58]
mov r11, qword [rbp - 0x68]
mov r14, qword [rbp - 0x80]
mov rdi, qword [rbp - 0x70]
jmp 0x180044ee4
mov ecx, dword [rsp + 0x68]
add rbx, 0x70
add r9, 0x88
mov qword [rbp - 0x60], r9
sub r14, 1
mov qword [rbp - 0x80], r14
jne 0x180044b80
mov r12d, dword [rsp + 0x70]
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x180044f1e
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x180044f26
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
cvttss2si eax, xmm0
inc eax
mov rsi, qword [rbp - 0x68]
mov dword [rsi + 0x34], r13d
mov ebx, dword [rsi + 0x10]
test ebx, ebx
jg 0x180044f76
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x18057577c]
jb 0x180044f52
mov ebx, 0x1000
jmp 0x180044f76
comiss xmm0, dword [0x180575778]
jb 0x180044f62
mov ebx, 0x800
jmp 0x180044f76
mov ebx, 0x200
mov eax, 0x400
comiss xmm0, dword [0x18057576c]
cmovae ebx, eax
mov dword [rsi + 0x30], ebx
sub ebx, dword [rsi + 0x14]
mov dword [rbp - 0xc], r13d
mov r15, r13
mov qword [rbp - 8], r13
test ebx, ebx
jle 0x180044fc5
mov edi, ebx
cmp ebx, 8
mov eax, 8
cmovl edi, eax
test edi, edi
jle 0x180044fc5
mov rax, qword [0x180593810]
test rax, rax
je 0x180044fae
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 r15, rax
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], edi
mov dword [rbp - 0x10], ebx
mov dword [rsp + 0x20], ebx
mov r9, r15
mov edx, dword [rsi + 0x30]
lea rcx, [rbp + 0x30]
call fcn.180043fb0
lea rdx, [rbp + 0x30]
mov rcx, rsi
call fcn.180029360
test r12d, r12d
jle 0x180045053
mov rbx, qword [rsp + 0x78]
add rbx, 0x48
mov edi, r12d
mov r8d, dword [rbx]
test r8d, r8d
je 0x180045049
mov rdx, qword [rbx - 0x18]
lea rcx, [rbp + 0x30]
call fcn.180044180
mov r8d, r13d
cmp dword [rbx], 0
jle 0x180045049
mov rdx, r13
nop dword [rax + rax]
mov rax, qword [rbx - 0x18]
cmp dword [rax + rdx + 0x14], 0
je 0x18004503d
mov ecx, dword [rax + rdx + 0x10]
add ecx, dword [rax + rdx + 8]
cmp dword [rsi + 0x34], ecx
cmovge ecx, dword [rsi + 0x34]
mov dword [rsi + 0x34], ecx
inc r8d
add rdx, 0x18
cmp r8d, dword [rbx]
jl 0x180045020
add rbx, 0x70
sub rdi, 1
jne 0x180044ff8
mov eax, dword [rsi + 0x34]
test byte [rsi], 1
jne 0x180045080
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 [rsi + 0x34], ecx
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movaps xmm1, xmm6
divss xmm1, xmm0
movsxd rax, dword [rsi + 0x30]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm6, xmm0
movss dword [rsi + 0x38], xmm6
movss dword [rsi + 0x3c], xmm1
movsxd rbx, ecx
imul rbx, rax
mov rax, qword [0x180593810]
cmp byte [rsp + 0x61], 0
je 0x1800450e4
lea rbx, [rbx*4]
test rax, rax
je 0x1800450d5
inc dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsi + 0x28], rax
jmp 0x1800450fc
test rax, rax
je 0x1800450ef
inc dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsi + 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 0x180045451
mov r14, r13
mov qword [rbp - 0x60], r13
mov r12, qword [rsp + 0x78]
add r12, 8
mov eax, dword [rsp + 0x70]
mov qword [rbp - 0x18], rax
movss xmm12, dword [0x180575644]
nop dword [rax]
cmp dword [r12 + 0x40], 0
je 0x180045426
mov r9, qword [rsi + 0x70]
add r9, r14
mov qword [rbp - 0x80], r9
mov r15, qword [r9 + 0x80]
mov qword [rbp - 0x20], r15
movss xmm6, dword [r12 - 4]
movss xmm7, dword [r12]
cmp byte [r9 + 0x48], 0
jne 0x1800451a3
mov rcx, r15
call fcn.180029cd0
mov r9, qword [rbp - 0x80]
mov eax, dword [r9 + 0x14]
mov dword [r15 + 0x14], eax
mov qword [r15 + 0x48], r9
mov word [r15 + 0x50], r13w
mov qword [r15 + 0x40], rsi
movss dword [r15 + 0x60], xmm6
movss dword [r15 + 0x64], xmm7
inc word [r15 + 0x50]
movss xmm11, dword [r9 + 0x2c]
movss xmm0, dword [r15 + 0x60]
addss xmm0, xmm12
cvttss2si eax, xmm0
movd xmm10, eax
cvtdq2ps xmm10, xmm10
addss xmm10, dword [r9 + 0x30]
mov r8d, dword [rsi + 0x14]
mov dword [rsp + 0x64], r8d
mov dword [rsp + 0x6c], r13d
cmp dword [r12 + 0x40], 0
jle 0x18004541d
mov rdx, r13
mov qword [rbp - 0x58], rdx
mov rbx, r13
mov rdi, qword [r12 + 0x60]
mov rcx, qword [r12 + 0x28]
cmp dword [rdx + rcx + 4], 0
jne 0x18004520c
cmp dword [rdx + rcx + 8], 0
je 0x1800453f4
mov esi, dword [rdx + rcx + 0xc]
add esi, r8d
mov r14d, dword [rdx + 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
mov rdx, qword [rbp - 0x68]
movd xmm0, dword [rdx + 0x30]
cvtdq2ps xmm0, xmm0
movd xmm6, esi
cvtdq2ps xmm6, xmm6
divss xmm6, xmm0
movd xmm2, dword [rdx + 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 rdx, r9
mov rcx, r15
call fcn.18002a340
movsxd rax, dword [r15 + 0x28]
lea rcx, [rax + rax*4]
mov rax, qword [r15 + 0x30]
cmp byte [rbx + rdi + 0x14], 0
je 0x180045307
mov byte [rsp + 0x60], 1
or dword [rax + rcx*8 - 0x28], 1
movsxd rcx, dword [rbx + rdi]
mov r11, qword [rbp - 0x68]
movsxd r15, dword [r11 + 0x30]
mov r10, qword [rbx + rdi + 0x20]
mov r8, qword [r11 + 0x20]
movsxd rdx, r14d
imul rdx, r15
movsxd rax, esi
add rdx, rax
mov esi, r13d
test r8, r8
je 0x180045389
lea r11, [rdx + r8]
cmp dword [rbx + rdi + 4], 0
jle 0x1800453e3
lea r14, [rcx*4]
mov r9d, r13d
test ecx, ecx
jle 0x180045379
mov rdx, r11
lea r8, [r10 + 3]
nop word [rax + rax]
movzx eax, byte [r8]
mov byte [rdx], al
inc r9d
lea r8, [r8 + 4]
lea rdx, [rdx + 1]
mov ecx, dword [rbx + rdi]
cmp r9d, ecx
jl 0x180045360
inc esi
add r11, r15
add r10, r14
cmp esi, dword [rbx + rdi + 4]
jl 0x180045348
jmp 0x1800453e3
mov rax, qword [r11 + 0x28]
lea r11, [rax + rdx*4]
cmp dword [rbx + rdi + 4], 0
jle 0x1800453e3
lea r15, [r15*4]
lea r14, [rcx*4]
mov r8d, r13d
test ecx, ecx
jle 0x1800453d5
mov rdx, r11
mov r9, r10
sub r9, r11
nop dword [rax + rax]
mov eax, dword [r9 + rdx]
mov dword [rdx], eax
inc r8d
lea rdx, [rdx + 4]
mov ecx, dword [rbx + rdi]
cmp r8d, ecx
jl 0x1800453c0
inc esi
add r11, r15
add r10, r14
cmp esi, dword [rbx + rdi + 4]
jl 0x1800453a8
mov r8d, dword [rsp + 0x64]
mov r9, qword [rbp - 0x80]
mov r15, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x58]
mov ecx, dword [rsp + 0x6c]
inc ecx
mov dword [rsp + 0x6c], ecx
add rbx, 0x28
add rdx, 0x18
mov qword [rbp - 0x58], rdx
cmp ecx, dword [r12 + 0x40]
jl 0x1800451f0
mov rsi, qword [rbp - 0x68]
mov r14, qword [rbp - 0x60]
mov qword [r12 + 0x28], r13
mov rax, qword [rbp - 0x18]
add r12, 0x70
add r14, 0x88
mov qword [rbp - 0x60], r14
sub rax, 1
mov qword [rbp - 0x18], rax
jne 0x180045140
movzx eax, byte [rsp + 0x60]
mov r15, qword [rbp - 8]
mov r12d, dword [rsp + 0x70]
mov byte [rsi + 0x1a], al
mov eax, dword [rsp + 0x74]
mov r14, qword [rbp - 0x50]
test eax, eax
jle 0x18004548f
mov rbx, r14
mov edi, eax
mov rcx, qword [rbx]
test rcx, rcx
je 0x18004547f
mov rax, qword [0x180593810]
test rax, rax
je 0x18004547f
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 0x180045465
test r12d, r12d
jle 0x1800454fe
mov rbx, qword [rsp + 0x78]
add rbx, 0x18
mov edi, r12d
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1800454c2
mov rax, qword [0x180593810]
test rax, rax
je 0x1800454bb
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 0x1800454e4
mov rax, qword [0x180593810]
test rax, rax
je 0x1800454dd
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 0x1800454f4
call fcn.18044ee90
mov qword [rbx], r13
add rbx, 0x70
sub rdi, 1
jne 0x1800454a0
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x180045537
mov qword [rbp + 0x10], 0
mov rax, qword [0x180593810]
test rax, rax
je 0x180045522
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, r13
mov qword [rsp + 0x78], rbx
mov qword [rbp + 0x18], rbx
mov rcx, rsi
call fcn.180029900
mov rcx, rsi
call fcn.180029a40
mov edi, r13d
cmp dword [rsi + 0x58], 0
jle 0x180045646
mov rbx, r13
nop word [rax + rax]
mov r10, qword [rsi + 0x60]
mov r11, qword [rbx + r10 + 0x18]
test r11, r11
je 0x180045637
mov r8d, dword [rbx + r10 + 8]
test r8d, r8d
je 0x180045637
movzx eax, word [rbx + r10 + 6]
movd xmm8, eax
cvtdq2ps xmm8, xmm8
mulss xmm8, dword [rsi + 0x3c]
movzx ecx, word [rbx + r10 + 4]
movzx r9d, word [rbx + r10 + 2]
add eax, r9d
movd xmm6, eax
cvtdq2ps xmm6, xmm6
mulss xmm6, dword [rsi + 0x3c]
movzx edx, word [rbx + r10]
movss xmm7, dword [rbx + r10 + 0x14]
movss xmm3, dword [rbx + r10 + 0x10]
lea eax, [rdx + rcx]
movd xmm4, eax
cvtdq2ps xmm4, xmm4
mulss xmm4, dword [rsi + 0x38]
movd xmm5, ecx
cvtdq2ps xmm5, xmm5
mulss xmm5, dword [rsi + 0x38]
movd xmm2, r9d
cvtdq2ps xmm2, xmm2
addss xmm2, xmm7
movd xmm1, edx
cvtdq2ps xmm1, xmm1
addss xmm1, xmm3
movss xmm0, dword [rbx + r10 + 0xc]
movss dword [rsp + 0x58], xmm0
movss dword [rsp + 0x50], xmm6
movss dword [rsp + 0x48], xmm4
movss dword [rsp + 0x40], xmm8
movss dword [rsp + 0x38], xmm5
movss dword [rsp + 0x30], xmm2
movss dword [rsp + 0x28], xmm1
movss dword [rsp + 0x20], xmm7
xor edx, edx
mov rcx, r11
call fcn.18002a340
inc edi
add rbx, 0x20
cmp edi, dword [rsi + 0x58]
jl 0x180045560
cmp dword [rsi + 0x48], 0
jle 0x180045670
mov rbx, r13
nop
mov rax, qword [rsi + 0x50]
mov rcx, qword [rbx + rax]
cmp byte [rcx + 0x58], 0
je 0x180045663
call fcn.180029d80
inc r13d
add rbx, 8
cmp r13d, dword [rsi + 0x48]
jl 0x180045650
mov byte [rsi + 0x19], 1
mov bl, 1
test r15, r15
je 0x180045697
mov rax, qword [0x180593810]
test rax, rax
je 0x18004568d
dec dword [rax + 0xf4]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
test r14, r14
je 0x1800456b8
mov rax, qword [0x180593810]
test rax, rax
je 0x1800456ae
dec dword [rax + 0xf4]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1800456da
mov rax, qword [0x180593810]
test rax, rax
je 0x1800456d3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1800456fc
mov rax, qword [0x180593810]
test rax, rax
je 0x1800456f5
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 0x180045722
mov rcx, qword [0x180593810]
test rcx, rcx
je 0x180045718
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 + 0x180]
xor rcx, rsp
call fcn.1804cfc00
lea r11, [rsp + 0x300]
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