Function at 0x180006338
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 0x1800063da
movsxd r14, edi
mov rsi, r14
shl rsi, 5
mov r15, rsi
mov rax, qword [rbx + 0x3118]
cmp dword [rax + rsi + 4], 7
jne 0x1800063ca
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 0x180006394
xor edx, edx
mov rcx, rbx
call fcn.1800053c4
mov rdi, qword [0x180054eb0]
cmp byte [rdi + 0xcc], r12b
je 0x180006401
test byte [rdi + 0xc], 2
jne 0x180006401
mov byte [rdi + 0xcc], r12b
mov r15d, 3
cmp byte [rdi + 0x30c9], r12b
jne 0x18000646d
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x180006466
mov qword [rbp - 0x38], r12
mov word [rbp - 0x40], 0x9fba
mov byte [rbp - 0x3e], 0x42
mov r8d, 0xc5ee2e10
mov edx, r15d
lea rcx, [rbp - 0x40]
call fcn.180014604
nop
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.1800038e0
mov rsi, rax
test rax, rax
je 0x180006466
mov rdx, qword [rbp - 0x38]
mov rcx, rax
call fcn.180012c90
mov rcx, rsi
call fcn.180005374
mov byte [rdi + 0x30c9], r13b
movss xmm0, dword [rdi + 0x30cc]
xorps xmm6, xmm6
comiss xmm0, xmm6
jbe 0x18000651b
subss xmm0, dword [rdi + 0x18]
movss dword [rdi + 0x30cc], xmm0
comiss xmm6, xmm0
jb 0x18000651b
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x18000650d
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], 0x43a6
mov byte [rbp - 0x3e], 0x45
mov r8d, 0xc5ee45a7
mov rdx, r15
lea rcx, [rbp - 0x40]
call fcn.180014604
nop
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.180003820
mov rsi, rax
test rax, rax
je 0x180006514
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 0x180006514
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 0x1800065fd
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movss xmm1, dword [0x18004d9ec]
divss xmm1, xmm2
jmp 0x180006600
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 0x1800066eb
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 0x180006641
mov rax, qword [rbx + 0xa8]
mov byte [rax + 0x18], r13b
mov rax, qword [0x180054eb0]
mov rcx, qword [rax + 0xb8]
test rcx, rcx
jne 0x180006717
mov rax, qword [rax + 0xa8]
mov rcx, qword [rax + 0x50]
mov rcx, qword [rcx]
call fcn.18000d26c
movaps xmm5, xmm7
movaps xmm4, xmm7
movss xmm2, dword [0x18004db8c]
movaps xmm3, xmm2
mov eax, dword [rbx + 0x1e08]
test eax, eax
jle 0x180006786
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 0x180006762
movss xmm5, dword [rax + 4]
comiss xmm4, dword [rax + 8]
jbe 0x18000676d
movss xmm4, dword [rax + 8]
comiss xmm0, xmm2
jbe 0x180006775
movaps xmm2, xmm0
comiss xmm1, xmm3
jbe 0x18000677d
movaps xmm3, xmm1
add rcx, 8
sub rdx, r13
jne 0x180006740
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 0x1800067d8
je 0x18000688f
movss dword [rbx + 0x19b0], xmm1
mov edi, r12d
lea rsi, [rbx + 0x1b4c]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
test edi, edi
je 0x18000684d
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 0x180006850
mov ecx, r12d
mov byte [rsi], cl
add edi, r13d
add rsi, r13
cmp edi, 0x40
jl 0x1800067ea
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 0x1800068ac
mov dword [rbx + 0x19c4], r13d
mov r8d, r13d
mov edx, r8d
cmp byte [rbx + 0x162d], r12b
je 0x1800068d1
mov rax, qword [rbx + 0x1988]
mov rcx, qword [rax + 0x40]
test byte [rcx], sil
jne 0x1800068d1
or edx, 2
mov dword [rbx + 0x19c4], edx
cmp byte [rbx + 0x162e], r12b
je 0x1800068e2
or edx, esi
mov dword [rbx + 0x19c4], edx
test byte [rbx + 0xc], 8
je 0x1800068f1
or edx, 8
mov dword [rbx + 0x19c4], edx
mov r8d, r12d
cmp dword [rbx + 0x1e08], r12d
jle 0x18000692a
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 0x180006900
cmp byte [rbx + 0x1fac], r12b
je 0x180006946
mov ecx, dword [rbx + 0x1fcc]
cmp ecx, dword [rbx + 0x1c6c]
jne 0x180006946
call fcn.180005044
mov eax, dword [rbx + 0x1c58]
cmp dword [rbx + 0x1c5c], r12d
jne 0x18000695e
mov dword [rbx + 0x1c64], r12d
jmp 0x18000696c
mov ecx, eax
test eax, eax
je 0x180006975
cmp dword [rbx + 0x1c6c], eax
jne 0x180006975
mov dword [rbx + 0x1c68], r12d
mov ecx, eax
movss xmm2, dword [rbx + 0x18]
test ecx, ecx
je 0x1800069ac
movaps xmm0, xmm2
addss xmm0, dword [rbx + 0x1c64]
movss dword [rbx + 0x1c64], xmm0
cmp dword [rbx + 0x1c6c], ecx
je 0x1800069ac
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 0x180006a07
cmp dword [rbx + 0x1ca8], eax
jne 0x180006a07
test eax, eax
je 0x180006a07
xor edx, edx
xor ecx, ecx
call fcn.180004f8c
mov ecx, dword [rbx + 0x1c6c]
movss xmm1, dword [rbx + 0x18]
test ecx, ecx
je 0x180006a1e
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 0x180006a7f
cmp ecx, eax
je 0x180006a7f
mov dword [rbx + 0x3020], r12d
test ecx, ecx
jne 0x180006a91
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 0x180006b23
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 0x180006ae1
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 0x180006b0d
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 0x180006ba6
movss xmm0, dword [rdi]
comiss xmm6, xmm0
jbe 0x180006b9f
movaps xmm0, xmm6
jmp 0x180006bae
addss xmm0, dword [rbx + 0x18]
jmp 0x180006bae
movss xmm0, dword [0x18004db64]
movss dword [rdi], xmm0
add rdi, rsi
add rax, r13
sub r14, r13
jne 0x180006b8c
call fcn.18001045c
call fcn.180005948
call fcn.1800060e8
mov r9, qword [0x180054eb0]
cmp qword [r9 + 0x1c38], r12
je 0x180006c9f
mov ecx, dword [r9 + 0x1c6c]
call fcn.180005044
mov rcx, qword [r9 + 0x1c38]
mov r10, qword [rcx + 0x348]
cmp byte [r9 + 0x130], r12b
je 0x180006c96
lea rcx, [r9 + 0x128]
call fcn.18000882c
test al, al
je 0x180006c96
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 0x180006c56
jne 0x180006c56
movss xmm0, dword [r10 + 0x14]
ucomiss xmm0, xmm2
jp 0x180006c56
je 0x180006c88
mov rcx, qword [0x180054eb0]
test dword [r10 + 0xc], 0x100
jne 0x180006c79
comiss xmm6, dword [rcx + 0x30cc]
jb 0x180006c79
mov eax, dword [rcx + 0x1c]
mov dword [rcx + 0x30cc], eax
mov r8d, r13d
lea rdx, [rbp - 0x38]
mov rcx, r10
call fcn.18000d450
mov rcx, qword [r9 + 0x1c38]
call fcn.18000cfe8
jmp 0x180006cce
mov qword [r9 + 0x1c38], r12
jmp 0x180006cc5
mov rax, qword [r9 + 0x1c98]
test rax, rax
je 0x180006cce
mov ecx, dword [r9 + 0x1c6c]
cmp dword [rax + 0x54], ecx
jne 0x180006cce
call fcn.180005044
cmp byte [r9 + 0x130], r12b
jne 0x180006cce
xor edx, edx
xor ecx, ecx
call fcn.180004f8c
call fcn.18000e934
test rax, rax
jne 0x180006d0d
cmp qword [rbx + 0x1f80], r12
je 0x180006cee
movss xmm0, dword [rbx + 0x1f9c]
comiss xmm0, xmm6
ja 0x180006d0d
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x18004da80]
movss xmm1, dword [rbx + 0x1fa4]
subss xmm1, xmm0
maxss xmm1, xmm6
jmp 0x180006d2a
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.180005c64
cmp byte [rbx + 0x1baf], r12b
jne 0x180006d8a
movss xmm0, dword [rbx + 0xd0]
comiss xmm6, xmm0
ja 0x180006d8a
movsd xmm7, qword [rbx + 0x1b98]
cvtpd2ps xmm7, xmm7
subss xmm7, xmm0
mov esi, r12d
cmp dword [rbx + 0x1bc0], r12d
je 0x180006ea7
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 0x180006e94
cmp byte [rdi + 0x3a0], r12b
jne 0x180006e94
comiss xmm7, dword [rdi + 0x234]
jbe 0x180006e94
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 0x180006e2b
mov qword [rdi + 0xc8], r12
call fcn.180005374
mov qword [rdi + 0xd0], r12
mov rcx, qword [rdi + 0x268]
call fcn.18001a868
mov rcx, qword [rdi + 0x168]
test rcx, rcx
je 0x180006e56
mov qword [rdi + 0x160], r12
call fcn.180005374
mov qword [rdi + 0x168], r12
mov rcx, qword [rdi + 0x1a0]
test rcx, rcx
je 0x180006e75
mov qword [rdi + 0x198], r12
call fcn.180005374
mov qword [rdi + 0x1a0], r12
mov rcx, qword [rdi + 0x1b0]
test rcx, rcx
je 0x180006e94
mov qword [rdi + 0x1a8], r12
call fcn.180005374
mov qword [rdi + 0x1b0], r12
add esi, r13d
add r14, 8
cmp esi, dword [rbx + 0x1bc0]
jne 0x180006d9d
mov esi, r12d
cmp dword [rbx + 0x20b0], r12d
jle 0x180006fbe
mov r15, r12
mov r14, r12
mov rax, qword [rbx + 0x20b8]
movss xmm0, dword [r14 + rax]
comiss xmm0, xmm6
jb 0x180006f9e
comiss xmm7, xmm0
jbe 0x180006f9e
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 0x180006f13
mov qword [rdi + 0x1c0], r12
call fcn.180005374
mov qword [rdi + 0x1c8], r12
mov byte [rdi + 0x1fc], 1
mov rcx, qword [rdi + 0x1a0]
test rcx, rcx
je 0x180006f39
mov qword [rdi + 0x198], r12
call fcn.180005374
mov qword [rdi + 0x1a0], r12
mov byte [rdi + 0x206], 1
mov edx, r12d
cmp dword [rdi + 0x74], r12d
jle 0x180006f65
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 0x180006f50
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 0x180006ebd
mov r15d, 0xbf800000
mov esi, r12d
cmp dword [rbx + 0x2078], r12d
jle 0x180007005
mov rdi, r12
mov r14, qword [rbx + 0x2080]
movss xmm0, dword [rdi + r14 + 4]
comiss xmm0, xmm6
jb 0x180006ff6
comiss xmm7, xmm0
jbe 0x180006ff6
lea rcx, [r14 + 0x10]
add rcx, rdi
call fcn.18001d614
mov dword [rdi + r14 + 4], r15d
add esi, r13d
add rdi, 0x70
cmp esi, dword [rbx + 0x2078]
jl 0x180006fcd
cmp byte [rbx + 0x1baf], r12b
je 0x180007058
mov rdi, qword [0x180054eb0]
mov rcx, qword [rdi + 0x1dd0]
test rcx, rcx
je 0x180007034
mov qword [rdi + 0x1dc8], r12
call fcn.180005374
mov qword [rdi + 0x1dd0], r12
mov rcx, qword [rdi + 0x1de0]
test rcx, rcx
je 0x180007053
mov qword [rdi + 0x1dd8], r12
call fcn.180005374
mov qword [rdi + 0x1de0], r12
call fcn.180023818
mov byte [rbx + 0x1baf], r12b
mov rax, qword [rbx + 0x1e18]
test rax, rax
je 0x18000707b
cmp byte [rax + 0x8f], r12b
jne 0x18000707b
xor ecx, ecx
call fcn.18000d1d4
mov ecx, dword [rbx + 0x1bf4]
test ecx, ecx
jns 0x1800070fb
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 0x1800070fb
mov rax, qword [0x180054eb0]
test rax, rax
je 0x1800070ad
add dword [rax + 0x3b0], r13d
movsxd rax, edi
imul rcx, rax, 0x58
mov rdx, qword [0x180054ea0]
call fcn.1800033c0
mov rsi, rax
mov rdx, qword [rbx + 0x1bf8]
test rdx, rdx
je 0x1800070ee
movsxd rcx, dword [rbx + 0x1bf0]
imul r8, rcx, 0x58
mov rcx, rax
call sub.ucrtbase.dll_memcpy
mov rcx, qword [rbx + 0x1bf8]
call fcn.180005374
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 0x180007184
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 0x180007184
mov rax, qword [0x180054eb0]
test rax, rax
je 0x180007146
add dword [rax + 0x3b0], r13d
movsxd rcx, esi
shl rcx, 2
mov rdx, qword [0x180054ea0]
call fcn.1800033c0
mov r14, rax
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x18000717d
movsxd r8, dword [rdi]
shl r8, 2
mov rcx, rax
call sub.ucrtbase.dll_memcpy
mov rcx, qword [rdi + 8]
call fcn.180005374
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 dword [rax + 0x1d20], 4
or eax, 0xffffffff
mov byte [rbp - 0x38], al
mov word [rbp - 0x37], 0x4219
mov byte [rbp - 0x35], 0x19
mov dword [rbp - 0x34], 0x43aad076
mov dword [rbp - 0x30], 0x71764c65
mov word [rbp - 0x2c], 0xf838
mov byte [rbp - 0x2a], 0x19
lea edx, [rax + 0x10]
mov r8d, 0x791e426e
lea rcx, [rbp - 0x38]
call fcn.180014604
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.18000b058
mov edx, r13d
mov rcx, rbx
call fcn.1800053c4
mov rcx, qword [rbp - 0x28]
xor rcx, rsp
call fcn.1800462d0
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