Function at 0x180006328
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x180053020]
xor rax, rsp
mov qword [rbp - 0x28], rax
mov rbx, qword [0x180054eb0]
mov edi, dword [rbx + 0x3110]
xor r12d, r12d
lea r13d, [r12 + 1]
sub edi, r13d
js 0x1800063ca
movsxd r14, edi
mov rsi, r14
shl rsi, 5
mov r15, rsi
mov rax, qword [rbx + 0x3118]
cmp dword [rax + rsi + 4], 7
jne 0x1800063ba
lea rcx, [rax + r15]
movsxd r8, dword [rbx + 0x3110]
sub r8, r14
shl r8, 5
sub r8, 0x20
lea rdx, [rcx + 0x20]
call sub.ucrtbase.dll_memmove
or eax, 0xffffffff
add dword [rbx + 0x3110], eax
sub r14, r13
sub r15, 0x20
sub rsi, 0x20
sub edi, r13d
jns 0x180006384
xor edx, edx
mov rcx, rbx
call fcn.1800053b4
mov rdi, qword [0x180054eb0]
cmp byte [rdi + 0xcc], r12b
je 0x1800063f1
test byte [rdi + 0xc], 2
jne 0x1800063f1
mov byte [rdi + 0xcc], r12b
mov r15d, 3
cmp byte [rdi + 0x30c9], r12b
jne 0x18000645d
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x180006456
mov qword [rbp - 0x38], r12
mov word [rbp - 0x40], 0x8da6
mov byte [rbp - 0x3e], 0x38
mov r8d, 0xd77ebb75
mov edx, r15d
lea rcx, [rbp - 0x40]
call fcn.180014604
nop
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.1800038d0
mov rsi, rax
test rax, rax
je 0x180006456
mov rdx, qword [rbp - 0x38]
mov rcx, rax
call fcn.180012c90
mov rcx, rsi
call fcn.180005364
mov byte [rdi + 0x30c9], r13b
movss xmm0, dword [rdi + 0x30cc]
xorps xmm6, xmm6
comiss xmm0, xmm6
jbe 0x18000650b
subss xmm0, dword [rdi + 0x18]
movss dword [rdi + 0x30cc], xmm0
comiss xmm6, xmm0
jb 0x18000650b
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x1800064fd
mov rax, qword [0x180054eb0]
mov dword [rax + 0x30cc], r12d
mov qword [rbp - 0x38], r12
lea rcx, [rbp - 0x38]
call fcn.180012f64
mov r14, rax
mov word [rbp - 0x40], 0x5daa
mov byte [rbp - 0x3e], 0x3c
mov r8d, 0xd77ed30c
mov rdx, r15
lea rcx, [rbp - 0x40]
call fcn.180014604
nop
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.180003810
mov rsi, rax
test rax, rax
je 0x180006504
mov r9, rax
mov r8, qword [rbp - 0x38]
mov rdx, r13
mov rcx, r14
call qword [sym.imp.ucrtbase.dll_fwrite]
mov rcx, rsi
call qword [sym.imp.ucrtbase.dll_fclose]
jmp 0x180006504
mov byte [rdi + 0x398], r13b
mov dword [rdi + 0x30cc], r12d
movss xmm0, dword [rbx + 0x18]
cvtps2pd xmm0, xmm0
addsd xmm0, qword [rbx + 0x1b98]
movsd qword [rbx + 0x1b98], xmm0
mov byte [rbx + 0x1bac], r13b
add dword [rbx + 0x1ba0], r13d
mov word [rbx + 0x308e], r12w
mov dword [rbx + 0x1c10], r12d
lea rcx, [rbx + 0x30a8]
xor edx, edx
call fcn.18001416c
movsxd rax, dword [rbx + 0x3388]
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [rbx + rax*4 + 0x31a8]
addss xmm0, dword [rbx + 0x3390]
movss dword [rbx + 0x3390], xmm0
movss dword [rbx + rax*4 + 0x31a8], xmm1
mov ecx, dword [rbx + 0x3388]
add ecx, r13d
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x78
sub ecx, eax
mov dword [rbx + 0x3388], ecx
mov eax, dword [rbx + 0x338c]
add eax, r13d
mov ecx, 0x78
cmp eax, ecx
cmovl ecx, eax
mov dword [rbx + 0x338c], ecx
movss xmm2, dword [rbx + 0x3390]
movss xmm7, dword [0x18004db58]
comiss xmm2, xmm6
jbe 0x1800065ed
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movss xmm1, dword [0x18004d9ec]
divss xmm1, xmm2
jmp 0x1800065f0
movaps xmm1, xmm7
movss dword [rbx + 0x39c], xmm1
mov rdx, qword [0x180054eb0]
mov rax, qword [rdx + 0x1e10]
mov rcx, qword [rax]
mov qword [rcx], 5
mov dword [rcx + 8], r12d
movsd xmm0, qword [rdx + 0x10]
movsd qword [rcx + 0xc], xmm0
mov r9d, r12d
cmp dword [rdx + 0x1e08], r12d
jle 0x1800066db
mov r8, r12
mov rax, qword [rdx + 0x1e10]
mov rcx, qword [r8 + rax]
movups xmm0, xmmword [rcx + 0xa0]
movups xmmword [rcx + 0x90], xmm0
mov qword [rcx + 0xa8], r12
movsd xmm0, qword [rcx + 0xa8]
movsd qword [rcx + 0xa0], xmm0
movss xmm1, dword [rcx + 0x94]
addss xmm1, dword [rcx + 8]
movss xmm0, dword [rcx + 4]
addss xmm0, dword [rcx + 0x90]
movss dword [rcx + 0x14], xmm0
movss dword [rcx + 0x18], xmm1
movss xmm0, dword [rcx + 0x10]
subss xmm0, dword [rcx + 0x94]
addss xmm0, dword [rcx + 0x9c]
movaps xmm2, xmm6
maxss xmm2, xmm0
movss xmm1, dword [rcx + 0xc]
subss xmm1, dword [rcx + 0x90]
addss xmm1, dword [rcx + 0x98]
movaps xmm0, xmm6
maxss xmm0, xmm1
movss dword [rcx + 0x1c], xmm0
movss dword [rcx + 0x20], xmm2
add r9d, r13d
add r8, 8
cmp r9d, dword [rdx + 0x1e08]
jl 0x180006631
mov rax, qword [rbx + 0xa8]
mov byte [rax + 0x18], r13b
mov rax, qword [0x180054eb0]
mov rcx, qword [rax + 0xb8]
test rcx, rcx
jne 0x180006707
mov rax, qword [rax + 0xa8]
mov rcx, qword [rax + 0x50]
mov rcx, qword [rcx]
call fcn.18000d24c
movaps xmm5, xmm7
movaps xmm4, xmm7
movss xmm2, dword [0x18004db8c]
movaps xmm3, xmm2
mov eax, dword [rbx + 0x1e08]
test eax, eax
jle 0x180006776
mov rcx, qword [rbx + 0x1e10]
mov edx, eax
mov rax, qword [rcx]
movss xmm1, dword [rax + 8]
addss xmm1, dword [rax + 0x10]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rax + 0xc]
comiss xmm5, dword [rax + 4]
jbe 0x180006752
movss xmm5, dword [rax + 4]
comiss xmm4, dword [rax + 8]
jbe 0x18000675d
movss xmm4, dword [rax + 8]
comiss xmm0, xmm2
jbe 0x180006765
movaps xmm2, xmm0
comiss xmm1, xmm3
jbe 0x18000676d
movaps xmm3, xmm1
add rcx, 8
sub rdx, r13
jne 0x180006730
movss dword [rbp - 0x38], xmm5
movss dword [rbp - 0x34], xmm4
movss dword [rbp - 0x30], xmm2
movss dword [rbp - 0x2c], xmm3
movups xmm0, xmmword [rbp - 0x38]
movdqu xmmword [rbx + 0x19b4], xmm0
mov eax, dword [rbx + 0x1630]
mov dword [rbx + 0x19ac], eax
movss xmm1, dword [rbx + 0x1634]
movss xmm0, dword [rbx + 0x19b0]
mov esi, 4
mov r14d, 0x200
ucomiss xmm0, xmm1
jp 0x1800067c8
je 0x18000687f
movss dword [rbx + 0x19b0], xmm1
mov edi, r12d
lea rsi, [rbx + 0x1b4c]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
test edi, edi
je 0x18000683d
movss xmm1, dword [rbx + 0x19b0]
minss xmm1, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x18004d9ec]
subss xmm0, xmm1
call sub.ucrtbase.dll_acosf
movss xmm1, dword [0x18004da50]
divss xmm1, xmm0
movaps xmm0, xmm1
call sub.ucrtbase.dll_ceilf
cvttss2si eax, xmm0
add eax, r13d
cdq
sub eax, edx
sar eax, 1
add eax, eax
mov ecx, eax
cmp eax, r14d
cmovg ecx, r14d
mov edx, 4
cmp eax, edx
cmovl ecx, edx
jmp 0x180006840
mov ecx, r12d
mov byte [rsi], cl
add edi, r13d
add rsi, r13
cmp edi, 0x40
jl 0x1800067da
movss xmm0, dword [0x18004d984]
call sub.ucrtbase.dll_cosf
movss xmm2, dword [0x18004d9ec]
subss xmm2, xmm0
movss xmm1, dword [rbx + 0x19b0]
divss xmm1, xmm2
movss dword [rbx + 0x1b48], xmm1
mov esi, 4
mov dword [rbx + 0x19c4], r12d
mov r8d, r12d
cmp byte [rbx + 0x162c], r12b
je 0x18000689c
mov dword [rbx + 0x19c4], r13d
mov r8d, r13d
mov edx, r8d
cmp byte [rbx + 0x162d], r12b
je 0x1800068c1
mov rax, qword [rbx + 0x1988]
mov rcx, qword [rax + 0x40]
test byte [rcx], sil
jne 0x1800068c1
or edx, 2
mov dword [rbx + 0x19c4], edx
cmp byte [rbx + 0x162e], r12b
je 0x1800068d2
or edx, esi
mov dword [rbx + 0x19c4], edx
test byte [rbx + 0xc], 8
je 0x1800068e1
or edx, 8
mov dword [rbx + 0x19c4], edx
mov r8d, r12d
cmp dword [rbx + 0x1e08], r12d
jle 0x18000691a
mov rdx, r12
mov rax, qword [rbx + 0x1e10]
mov rcx, qword [rdx + rax]
xorps xmm0, xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm0
add r8d, r13d
lea rdx, [rdx + 8]
cmp r8d, dword [rbx + 0x1e08]
jl 0x1800068f0
cmp byte [rbx + 0x1fac], r12b
je 0x180006936
mov ecx, dword [rbx + 0x1fcc]
cmp ecx, dword [rbx + 0x1c6c]
jne 0x180006936
call fcn.180005034
mov eax, dword [rbx + 0x1c58]
cmp dword [rbx + 0x1c5c], r12d
jne 0x18000694e
mov dword [rbx + 0x1c64], r12d
jmp 0x18000695c
mov ecx, eax
test eax, eax
je 0x180006965
cmp dword [rbx + 0x1c6c], eax
jne 0x180006965
mov dword [rbx + 0x1c68], r12d
mov ecx, eax
movss xmm2, dword [rbx + 0x18]
test ecx, ecx
je 0x18000699c
movaps xmm0, xmm2
addss xmm0, dword [rbx + 0x1c64]
movss dword [rbx + 0x1c64], xmm0
cmp dword [rbx + 0x1c6c], ecx
je 0x18000699c
movaps xmm0, xmm2
addss xmm0, dword [rbx + 0x1c68]
movss dword [rbx + 0x1c68], xmm0
mov dword [rbx + 0x1c5c], ecx
mov al, byte [rbx + 0x1c61]
mov byte [rbx + 0x1c62], al
mov dword [rbx + 0x1c58], r12d
mov word [rbx + 0x1c60], r12w
mov byte [rbx + 0x1c63], r12b
mov eax, dword [rbx + 0x1c6c]
mov ecx, eax
movaps xmm1, xmm2
cmp dword [rbx + 0x1c70], eax
je 0x1800069f7
cmp dword [rbx + 0x1ca8], eax
jne 0x1800069f7
test eax, eax
je 0x1800069f7
xor edx, edx
xor ecx, ecx
call fcn.180004f7c
mov ecx, dword [rbx + 0x1c6c]
movss xmm1, dword [rbx + 0x18]
test ecx, ecx
je 0x180006a0e
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x1c74]
movss dword [rbx + 0x1c74], xmm0
addss xmm1, dword [rbx + 0x1cbc]
movss dword [rbx + 0x1cbc], xmm1
mov dword [rbx + 0x1ca8], ecx
mov rax, qword [rbx + 0x1c98]
mov qword [rbx + 0x1cb0], rax
mov al, byte [rbx + 0x1c7c]
mov byte [rbx + 0x1cad], al
mov dword [rbx + 0x1c70], r12d
mov byte [rbx + 0x1c7d], r12b
mov byte [rbx + 0x1cac], r12b
mov byte [rbx + 0x1c78], r12b
mov eax, dword [rbx + 0x3020]
test eax, eax
je 0x180006a6f
cmp ecx, eax
je 0x180006a6f
mov dword [rbx + 0x3020], r12d
test ecx, ecx
jne 0x180006a81
mov qword [rbx + 0x1c80], r12
mov qword [rbx + 0x1c88], r12
mov eax, dword [rbx + 0x201c]
mov dword [rbx + 0x2020], eax
mov qword [rbx + 0x2018], 0x7f7fffff
mov word [rbx + 0x1fad], r12w
mov dword [rbx + 0x2028], r12d
mov r15d, 0xbf800000
cmp byte [rbx + 0x1558], r12b
je 0x180006b13
lea rcx, [rbx + 0x144]
mov r8, r14
xor edx, edx
call sub.ucrtbase.dll_memset
mov rcx, r14
lea rax, [rbx + 0x4b4]
mov dword [rax + 0x800], r15d
mov dword [rax], r15d
add rax, rsi
sub rcx, r13
jne 0x180006ad1
mov dword [rbx + 0x140], r12d
mov qword [rbx + 0x3c0], r12
mov ecx, 0x14
lea rax, [rbx + 0x14b4]
mov dword [rax + 0x50], r15d
mov dword [rax], r15d
add rax, rsi
sub rcx, r13
jne 0x180006afd
mov byte [rbx + 0x1558], r12b
mov r8, qword [0x180054eb0]
mov eax, r12d
cmp byte [r8 + 0x140], r12b
setne al
mov ecx, eax
or ecx, 2
cmp byte [r8 + 0x141], r12b
cmove ecx, eax
mov edx, ecx
or edx, esi
cmp byte [r8 + 0x142], r12b
cmove edx, ecx
mov eax, edx
or eax, 8
cmp byte [r8 + 0x143], r12b
cmove eax, edx
mov dword [rbx + 0x3c0], eax
lea rdi, [rbx + 0x4b4]
lea rcx, [rbx + 0xcb4]
mov rdx, rdi
mov r8d, 0x800
call sub.ucrtbase.dll_memcpy
lea rax, [rbx + 0x144]
cmp byte [rax], r12b
je 0x180006b96
movss xmm0, dword [rdi]
comiss xmm6, xmm0
jbe 0x180006b8f
movaps xmm0, xmm6
jmp 0x180006b9e
addss xmm0, dword [rbx + 0x18]
jmp 0x180006b9e
movss xmm0, dword [0x18004db64]
movss dword [rdi], xmm0
add rdi, rsi
add rax, r13
sub r14, r13
jne 0x180006b7c
call fcn.18001045c
call fcn.180005938
call fcn.1800060d8
mov r9, qword [0x180054eb0]
cmp qword [r9 + 0x1c38], r12
je 0x180006c8f
mov ecx, dword [r9 + 0x1c6c]
call fcn.180005034
mov rcx, qword [r9 + 0x1c38]
mov r10, qword [rcx + 0x348]
cmp byte [r9 + 0x130], r12b
je 0x180006c86
lea rcx, [r9 + 0x128]
call fcn.18000880c
test al, al
je 0x180006c86
movss xmm2, dword [rcx + 4]
subss xmm2, dword [r9 + 0x1c94]
movss xmm1, dword [rcx]
subss xmm1, dword [r9 + 0x1c90]
movss dword [rbp - 0x38], xmm1
movss dword [rbp - 0x34], xmm2
movss xmm0, dword [r10 + 0x10]
ucomiss xmm0, xmm1
jp 0x180006c46
jne 0x180006c46
movss xmm0, dword [r10 + 0x14]
ucomiss xmm0, xmm2
jp 0x180006c46
je 0x180006c78
mov rcx, qword [0x180054eb0]
test dword [r10 + 0xc], 0x100
jne 0x180006c69
comiss xmm6, dword [rcx + 0x30cc]
jb 0x180006c69
mov eax, dword [rcx + 0x1c]
mov dword [rcx + 0x30cc], eax
mov r8d, r13d
lea rdx, [rbp - 0x38]
mov rcx, r10
call fcn.18000d430
mov rcx, qword [r9 + 0x1c38]
call fcn.18000cfc8
jmp 0x180006cbe
mov qword [r9 + 0x1c38], r12
jmp 0x180006cb5
mov rax, qword [r9 + 0x1c98]
test rax, rax
je 0x180006cbe
mov ecx, dword [r9 + 0x1c6c]
cmp dword [rax + 0x54], ecx
jne 0x180006cbe
call fcn.180005034
cmp byte [r9 + 0x130], r12b
jne 0x180006cbe
xor edx, edx
xor ecx, ecx
call fcn.180004f7c
call fcn.18000e934
test rax, rax
jne 0x180006cfd
cmp qword [rbx + 0x1f80], r12
je 0x180006cde
movss xmm0, dword [rbx + 0x1f9c]
comiss xmm0, xmm6
ja 0x180006cfd
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x18004da80]
movss xmm1, dword [rbx + 0x1fa4]
subss xmm1, xmm0
maxss xmm1, xmm6
jmp 0x180006d1a
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x18004da6c]
addss xmm1, dword [rbx + 0x1fa4]
minss xmm1, dword [0x18004d9ec]
movss dword [rbx + 0x1fa4], xmm1
mov dword [rbx + 0x1fa8], r12d
or eax, 0xffffffff
mov dword [rbx + 0x339c], eax
mov dword [rbx + 0x3398], eax
mov dword [rbx + 0x3394], eax
mov eax, 0x3f800000
mov dword [rbx + 0x30b8], eax
mov dword [rbx + 0x30bc], eax
call fcn.180005c54
cmp byte [rbx + 0x1baf], r12b
jne 0x180006d7a
movss xmm0, dword [rbx + 0xd0]
comiss xmm6, xmm0
ja 0x180006d7a
movsd xmm7, qword [rbx + 0x1b98]
cvtpd2ps xmm7, xmm7
subss xmm7, xmm0
mov esi, r12d
cmp dword [rbx + 0x1bc0], r12d
je 0x180006e97
mov r14, r12
mov rax, qword [rbx + 0x1bc8]
mov rdi, qword [r14 + rax]
mov al, byte [rdi + 0x8e]
mov byte [rdi + 0x8f], al
mov word [rdi + 0x9a], r12w
mov byte [rdi + 0x8e], r12b
mov byte [rdi + 0x90], r12b
test al, al
jne 0x180006e84
cmp byte [rdi + 0x3a0], r12b
jne 0x180006e84
comiss xmm7, dword [rdi + 0x234]
jbe 0x180006e84
mov byte [rdi + 0x3a0], r13b
mov rcx, qword [rdi + 0x268]
mov eax, dword [rcx + 0x14]
mov dword [rdi + 0x398], eax
mov eax, dword [rcx + 0x24]
mov dword [rdi + 0x39c], eax
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x180006e1b
mov qword [rdi + 0xc8], r12
call fcn.180005364
mov qword [rdi + 0xd0], r12
mov rcx, qword [rdi + 0x268]
call fcn.18001a838
mov rcx, qword [rdi + 0x168]
test rcx, rcx
je 0x180006e46
mov qword [rdi + 0x160], r12
call fcn.180005364
mov qword [rdi + 0x168], r12
mov rcx, qword [rdi + 0x1a0]
test rcx, rcx
je 0x180006e65
mov qword [rdi + 0x198], r12
call fcn.180005364
mov qword [rdi + 0x1a0], r12
mov rcx, qword [rdi + 0x1b0]
test rcx, rcx
je 0x180006e84
mov qword [rdi + 0x1a8], r12
call fcn.180005364
mov qword [rdi + 0x1b0], r12
add esi, r13d
add r14, 8
cmp esi, dword [rbx + 0x1bc0]
jne 0x180006d8d
mov esi, r12d
cmp dword [rbx + 0x20b0], r12d
jle 0x180006fae
mov r15, r12
mov r14, r12
mov rax, qword [rbx + 0x20b8]
movss xmm0, dword [r14 + rax]
comiss xmm0, xmm6
jb 0x180006f8e
comiss xmm7, xmm0
jbe 0x180006f8e
mov rdi, qword [rbx + 0x2090]
add rdi, r15
mov r13, qword [0x180054eb0]
mov qword [rdi + 0x1d0], r12
mov rcx, qword [rdi + 0x1c8]
test rcx, rcx
je 0x180006f03
mov qword [rdi + 0x1c0], r12
call fcn.180005364
mov qword [rdi + 0x1c8], r12
mov byte [rdi + 0x1fc], 1
mov rcx, qword [rdi + 0x1a0]
test rcx, rcx
je 0x180006f29
mov qword [rdi + 0x198], r12
call fcn.180005364
mov qword [rdi + 0x1a0], r12
mov byte [rdi + 0x206], 1
mov edx, r12d
cmp dword [rdi + 0x74], r12d
jle 0x180006f55
mov rcx, r12
or r8d, 0xffffffff
mov rax, qword [rdi + 0x18]
mov word [rcx + rax + 0x50], r8w
inc edx
lea rcx, [rcx + 0x68]
cmp edx, dword [rdi + 0x74]
jl 0x180006f40
sub rdi, qword [r13 + 0x2090]
movabs rax, 0xfc0fc0fc0fc0fc1
imul rdi
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rcx, edx
mov rax, qword [r13 + 0x20b8]
mov dword [rax + rcx*4], 0xbf800000
mov r13d, 1
add esi, r13d
add r14, 4
add r15, 0x208
cmp esi, dword [rbx + 0x20b0]
jl 0x180006ead
mov r15d, 0xbf800000
mov esi, r12d
cmp dword [rbx + 0x2078], r12d
jle 0x180006ff5
mov rdi, r12
mov r14, qword [rbx + 0x2080]
movss xmm0, dword [rdi + r14 + 4]
comiss xmm0, xmm6
jb 0x180006fe6
comiss xmm7, xmm0
jbe 0x180006fe6
lea rcx, [r14 + 0x10]
add rcx, rdi
call fcn.18001d5e4
mov dword [rdi + r14 + 4], r15d
add esi, r13d
add rdi, 0x70
cmp esi, dword [rbx + 0x2078]
jl 0x180006fbd
cmp byte [rbx + 0x1baf], r12b
je 0x180007048
mov rdi, qword [0x180054eb0]
mov rcx, qword [rdi + 0x1dd0]
test rcx, rcx
je 0x180007024
mov qword [rdi + 0x1dc8], r12
call fcn.180005364
mov qword [rdi + 0x1dd0], r12
mov rcx, qword [rdi + 0x1de0]
test rcx, rcx
je 0x180007043
mov qword [rdi + 0x1dd8], r12
call fcn.180005364
mov qword [rdi + 0x1de0], r12
call fcn.1800237f0
mov byte [rbx + 0x1baf], r12b
mov rax, qword [rbx + 0x1e18]
test rax, rax
je 0x18000706b
cmp byte [rax + 0x8f], r12b
jne 0x18000706b
xor ecx, ecx
call fcn.18000d1b4
mov ecx, dword [rbx + 0x1bf4]
test ecx, ecx
jns 0x1800070eb
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov edi, r12d
test eax, eax
cmovg edi, eax
cmp edi, ecx
jle 0x1800070eb
mov rax, qword [0x180054eb0]
test rax, rax
je 0x18000709d
add dword [rax + 0x3b0], r13d
movsxd rax, edi
imul rcx, rax, 0x58
mov rdx, qword [0x180054ea0]
call fcn.1800033b0
mov rsi, rax
mov rdx, qword [rbx + 0x1bf8]
test rdx, rdx
je 0x1800070de
movsxd rcx, dword [rbx + 0x1bf0]
imul r8, rcx, 0x58
mov rcx, rax
call sub.ucrtbase.dll_memcpy
mov rcx, qword [rbx + 0x1bf8]
call fcn.180005364
mov qword [rbx + 0x1bf8], rsi
mov dword [rbx + 0x1bf4], edi
mov dword [rbx + 0x1bf0], r12d
lea rcx, [rbx + 0x1df8]
xor edx, edx
call fcn.180013bf8
lea rdi, [rbx + 0x1dc8]
mov ecx, dword [rdi + 4]
test ecx, ecx
jns 0x180007174
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov esi, r12d
test eax, eax
cmovg esi, eax
cmp esi, ecx
jle 0x180007174
mov rax, qword [0x180054eb0]
test rax, rax
je 0x180007136
add dword [rax + 0x3b0], r13d
movsxd rcx, esi
shl rcx, 2
mov rdx, qword [0x180054ea0]
call fcn.1800033b0
mov r14, rax
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x18000716d
movsxd r8, dword [rdi]
shl r8, 2
mov rcx, rax
call sub.ucrtbase.dll_memcpy
mov rcx, qword [rdi + 8]
call fcn.180005364
mov qword [rdi + 8], r14
mov dword [rdi + 4], esi
mov dword [rdi], r12d
mov dword [rbp - 0x40], r12d
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.180013ca8
lea rcx, [rbx + 0x1dd8]
xor edx, edx
call fcn.180013bf8
mov byte [rbx + 0x1bad], r13b
mov rax, qword [0x180054eb0]
or dword [rax + 0x1d18], 2
mov ecx, 0x43c80000
mov dword [rax + 0x1d38], ecx
mov dword [rax + 0x1d3c], ecx
mov ecx, 4
mov dword [rax + 0x1d20], ecx
mov dword [rbp - 0x38], 0x4c3ea3b2
mov dword [rbp - 0x34], 0xb7a804d0
mov dword [rbp - 0x30], 0xed3fe995
mov word [rbp - 0x2c], 0x4b89
mov byte [rbp - 0x2a], 0xe3
lea edx, [rcx + 0xb]
mov r8d, 0xb690f53
lea rcx, [rbp - 0x38]
call fcn.180014604
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.18000b038
mov edx, r13d
mov rcx, rbx
call fcn.1800053b4
mov rcx, qword [rbp - 0x28]
xor rcx, rsp
call fcn.1800462a0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret