Function at 0x1800063e8
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 [0x180058020]
xor rax, rsp
mov qword [rbp - 0x28], rax
mov rbx, qword [0x180059f90]
mov edi, dword [rbx + 0x3110]
xor r12d, r12d
lea r13d, [r12 + 1]
sub edi, r13d
js 0x18000648a
movsxd r14, edi
mov rsi, r14
shl rsi, 5
mov r15, rsi
mov rax, qword [rbx + 0x3118]
cmp dword [rax + rsi + 4], 7
jne 0x18000647a
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 0x180006444
xor edx, edx
mov rcx, rbx
call fcn.180005474
mov rdi, qword [0x180059f90]
cmp byte [rdi + 0xcc], r12b
je 0x1800064b1
test byte [rdi + 0xc], 2
jne 0x1800064b1
mov byte [rdi + 0xcc], r12b
mov r15d, 3
cmp byte [rdi + 0x30c9], r12b
jne 0x18000651d
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x180006516
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.1800146c4
nop
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.180003990
mov rsi, rax
test rax, rax
je 0x180006516
mov rdx, qword [rbp - 0x38]
mov rcx, rax
call fcn.180012d50
mov rcx, rsi
call fcn.180005424
mov byte [rdi + 0x30c9], r13b
movss xmm0, dword [rdi + 0x30cc]
xorps xmm6, xmm6
comiss xmm0, xmm6
jbe 0x1800065cb
subss xmm0, dword [rdi + 0x18]
movss dword [rdi + 0x30cc], xmm0
comiss xmm6, xmm0
jb 0x1800065cb
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x1800065bd
mov rax, qword [0x180059f90]
mov dword [rax + 0x30cc], r12d
mov qword [rbp - 0x38], r12
lea rcx, [rbp - 0x38]
call fcn.180013024
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.1800146c4
nop
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.1800038d0
mov rsi, rax
test rax, rax
je 0x1800065c4
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 0x1800065c4
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.18001422c
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 [0x180051c98]
comiss xmm2, xmm6
jbe 0x1800066ad
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movss xmm1, dword [0x180051b2c]
divss xmm1, xmm2
jmp 0x1800066b0
movaps xmm1, xmm7
movss dword [rbx + 0x39c], xmm1
mov rdx, qword [0x180059f90]
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 0x18000679b
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 0x1800066f1
mov rax, qword [rbx + 0xa8]
mov byte [rax + 0x18], r13b
mov rax, qword [0x180059f90]
mov rcx, qword [rax + 0xb8]
test rcx, rcx
jne 0x1800067c7
mov rax, qword [rax + 0xa8]
mov rcx, qword [rax + 0x50]
mov rcx, qword [rcx]
call fcn.18000d30c
movaps xmm5, xmm7
movaps xmm4, xmm7
movss xmm2, dword [0x180051ccc]
movaps xmm3, xmm2
mov eax, dword [rbx + 0x1e08]
test eax, eax
jle 0x180006836
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 0x180006812
movss xmm5, dword [rax + 4]
comiss xmm4, dword [rax + 8]
jbe 0x18000681d
movss xmm4, dword [rax + 8]
comiss xmm0, xmm2
jbe 0x180006825
movaps xmm2, xmm0
comiss xmm1, xmm3
jbe 0x18000682d
movaps xmm3, xmm1
add rcx, 8
sub rdx, r13
jne 0x1800067f0
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 0x180006888
je 0x18000693f
movss dword [rbx + 0x19b0], xmm1
mov edi, r12d
lea rsi, [rbx + 0x1b4c]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
test edi, edi
je 0x1800068fd
movss xmm1, dword [rbx + 0x19b0]
minss xmm1, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x180051b2c]
subss xmm0, xmm1
call sub.ucrtbase.dll_acosf
movss xmm1, dword [0x180051b90]
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 0x180006900
mov ecx, r12d
mov byte [rsi], cl
add edi, r13d
add rsi, r13
cmp edi, 0x40
jl 0x18000689a
movss xmm0, dword [0x180051ac4]
call sub.ucrtbase.dll_cosf
movss xmm2, dword [0x180051b2c]
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 0x18000695c
mov dword [rbx + 0x19c4], r13d
mov r8d, r13d
mov edx, r8d
cmp byte [rbx + 0x162d], r12b
je 0x180006981
mov rax, qword [rbx + 0x1988]
mov rcx, qword [rax + 0x40]
test byte [rcx], sil
jne 0x180006981
or edx, 2
mov dword [rbx + 0x19c4], edx
cmp byte [rbx + 0x162e], r12b
je 0x180006992
or edx, esi
mov dword [rbx + 0x19c4], edx
test byte [rbx + 0xc], 8
je 0x1800069a1
or edx, 8
mov dword [rbx + 0x19c4], edx
mov r8d, r12d
cmp dword [rbx + 0x1e08], r12d
jle 0x1800069da
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 0x1800069b0
cmp byte [rbx + 0x1fac], r12b
je 0x1800069f6
mov ecx, dword [rbx + 0x1fcc]
cmp ecx, dword [rbx + 0x1c6c]
jne 0x1800069f6
call fcn.1800050f4
mov eax, dword [rbx + 0x1c58]
cmp dword [rbx + 0x1c5c], r12d
jne 0x180006a0e
mov dword [rbx + 0x1c64], r12d
jmp 0x180006a1c
mov ecx, eax
test eax, eax
je 0x180006a25
cmp dword [rbx + 0x1c6c], eax
jne 0x180006a25
mov dword [rbx + 0x1c68], r12d
mov ecx, eax
movss xmm2, dword [rbx + 0x18]
test ecx, ecx
je 0x180006a5c
movaps xmm0, xmm2
addss xmm0, dword [rbx + 0x1c64]
movss dword [rbx + 0x1c64], xmm0
cmp dword [rbx + 0x1c6c], ecx
je 0x180006a5c
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 0x180006ab7
cmp dword [rbx + 0x1ca8], eax
jne 0x180006ab7
test eax, eax
je 0x180006ab7
xor edx, edx
xor ecx, ecx
call fcn.18000503c
mov ecx, dword [rbx + 0x1c6c]
movss xmm1, dword [rbx + 0x18]
test ecx, ecx
je 0x180006ace
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 0x180006b2f
cmp ecx, eax
je 0x180006b2f
mov dword [rbx + 0x3020], r12d
test ecx, ecx
jne 0x180006b41
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 0x180006bd3
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 0x180006b91
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 0x180006bbd
mov byte [rbx + 0x1558], r12b
mov r8, qword [0x180059f90]
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 0x180006c56
movss xmm0, dword [rdi]
comiss xmm6, xmm0
jbe 0x180006c4f
movaps xmm0, xmm6
jmp 0x180006c5e
addss xmm0, dword [rbx + 0x18]
jmp 0x180006c5e
movss xmm0, dword [0x180051ca4]
movss dword [rdi], xmm0
add rdi, rsi
add rax, r13
sub r14, r13
jne 0x180006c3c
call fcn.18001051c
call fcn.1800059f8
call fcn.180006198
mov r9, qword [0x180059f90]
cmp qword [r9 + 0x1c38], r12
je 0x180006d4f
mov ecx, dword [r9 + 0x1c6c]
call fcn.1800050f4
mov rcx, qword [r9 + 0x1c38]
mov r10, qword [rcx + 0x348]
cmp byte [r9 + 0x130], r12b
je 0x180006d46
lea rcx, [r9 + 0x128]
call fcn.1800088cc
test al, al
je 0x180006d46
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 0x180006d06
jne 0x180006d06
movss xmm0, dword [r10 + 0x14]
ucomiss xmm0, xmm2
jp 0x180006d06
je 0x180006d38
mov rcx, qword [0x180059f90]
test dword [r10 + 0xc], 0x100
jne 0x180006d29
comiss xmm6, dword [rcx + 0x30cc]
jb 0x180006d29
mov eax, dword [rcx + 0x1c]
mov dword [rcx + 0x30cc], eax
mov r8d, r13d
lea rdx, [rbp - 0x38]
mov rcx, r10
call fcn.18000d4f0
mov rcx, qword [r9 + 0x1c38]
call fcn.18000d088
jmp 0x180006d7e
mov qword [r9 + 0x1c38], r12
jmp 0x180006d75
mov rax, qword [r9 + 0x1c98]
test rax, rax
je 0x180006d7e
mov ecx, dword [r9 + 0x1c6c]
cmp dword [rax + 0x54], ecx
jne 0x180006d7e
call fcn.1800050f4
cmp byte [r9 + 0x130], r12b
jne 0x180006d7e
xor edx, edx
xor ecx, ecx
call fcn.18000503c
call fcn.18000e9f4
test rax, rax
jne 0x180006dbd
cmp qword [rbx + 0x1f80], r12
je 0x180006d9e
movss xmm0, dword [rbx + 0x1f9c]
comiss xmm0, xmm6
ja 0x180006dbd
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x180051bc0]
movss xmm1, dword [rbx + 0x1fa4]
subss xmm1, xmm0
maxss xmm1, xmm6
jmp 0x180006dda
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x180051bac]
addss xmm1, dword [rbx + 0x1fa4]
minss xmm1, dword [0x180051b2c]
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.180005d14
cmp byte [rbx + 0x1baf], r12b
jne 0x180006e3a
movss xmm0, dword [rbx + 0xd0]
comiss xmm6, xmm0
ja 0x180006e3a
movsd xmm7, qword [rbx + 0x1b98]
cvtpd2ps xmm7, xmm7
subss xmm7, xmm0
mov esi, r12d
cmp dword [rbx + 0x1bc0], r12d
je 0x180006f57
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 0x180006f44
cmp byte [rdi + 0x3a0], r12b
jne 0x180006f44
comiss xmm7, dword [rdi + 0x234]
jbe 0x180006f44
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 0x180006edb
mov qword [rdi + 0xc8], r12
call fcn.180005424
mov qword [rdi + 0xd0], r12
mov rcx, qword [rdi + 0x268]
call fcn.18001a8f8
mov rcx, qword [rdi + 0x168]
test rcx, rcx
je 0x180006f06
mov qword [rdi + 0x160], r12
call fcn.180005424
mov qword [rdi + 0x168], r12
mov rcx, qword [rdi + 0x1a0]
test rcx, rcx
je 0x180006f25
mov qword [rdi + 0x198], r12
call fcn.180005424
mov qword [rdi + 0x1a0], r12
mov rcx, qword [rdi + 0x1b0]
test rcx, rcx
je 0x180006f44
mov qword [rdi + 0x1a8], r12
call fcn.180005424
mov qword [rdi + 0x1b0], r12
add esi, r13d
add r14, 8
cmp esi, dword [rbx + 0x1bc0]
jne 0x180006e4d
mov esi, r12d
cmp dword [rbx + 0x20b0], r12d
jle 0x18000706e
mov r15, r12
mov r14, r12
mov rax, qword [rbx + 0x20b8]
movss xmm0, dword [r14 + rax]
comiss xmm0, xmm6
jb 0x18000704e
comiss xmm7, xmm0
jbe 0x18000704e
mov rdi, qword [rbx + 0x2090]
add rdi, r15
mov r13, qword [0x180059f90]
mov qword [rdi + 0x1d0], r12
mov rcx, qword [rdi + 0x1c8]
test rcx, rcx
je 0x180006fc3
mov qword [rdi + 0x1c0], r12
call fcn.180005424
mov qword [rdi + 0x1c8], r12
mov byte [rdi + 0x1fc], 1
mov rcx, qword [rdi + 0x1a0]
test rcx, rcx
je 0x180006fe9
mov qword [rdi + 0x198], r12
call fcn.180005424
mov qword [rdi + 0x1a0], r12
mov byte [rdi + 0x206], 1
mov edx, r12d
cmp dword [rdi + 0x74], r12d
jle 0x180007015
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 0x180007000
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 0x180006f6d
mov r15d, 0xbf800000
mov esi, r12d
cmp dword [rbx + 0x2078], r12d
jle 0x1800070b5
mov rdi, r12
mov r14, qword [rbx + 0x2080]
movss xmm0, dword [rdi + r14 + 4]
comiss xmm0, xmm6
jb 0x1800070a6
comiss xmm7, xmm0
jbe 0x1800070a6
lea rcx, [r14 + 0x10]
add rcx, rdi
call fcn.18001d6a4
mov dword [rdi + r14 + 4], r15d
add esi, r13d
add rdi, 0x70
cmp esi, dword [rbx + 0x2078]
jl 0x18000707d
cmp byte [rbx + 0x1baf], r12b
je 0x180007108
mov rdi, qword [0x180059f90]
mov rcx, qword [rdi + 0x1dd0]
test rcx, rcx
je 0x1800070e4
mov qword [rdi + 0x1dc8], r12
call fcn.180005424
mov qword [rdi + 0x1dd0], r12
mov rcx, qword [rdi + 0x1de0]
test rcx, rcx
je 0x180007103
mov qword [rdi + 0x1dd8], r12
call fcn.180005424
mov qword [rdi + 0x1de0], r12
call fcn.1800238b0
mov byte [rbx + 0x1baf], r12b
mov rax, qword [rbx + 0x1e18]
test rax, rax
je 0x18000712b
cmp byte [rax + 0x8f], r12b
jne 0x18000712b
xor ecx, ecx
call fcn.18000d274
mov ecx, dword [rbx + 0x1bf4]
test ecx, ecx
jns 0x1800071ab
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 0x1800071ab
mov rax, qword [0x180059f90]
test rax, rax
je 0x18000715d
add dword [rax + 0x3b0], r13d
movsxd rax, edi
imul rcx, rax, 0x58
mov rdx, qword [0x180059f80]
call fcn.180003470
mov rsi, rax
mov rdx, qword [rbx + 0x1bf8]
test rdx, rdx
je 0x18000719e
movsxd rcx, dword [rbx + 0x1bf0]
imul r8, rcx, 0x58
mov rcx, rax
call sub.ucrtbase.dll_memcpy
mov rcx, qword [rbx + 0x1bf8]
call fcn.180005424
mov qword [rbx + 0x1bf8], rsi
mov dword [rbx + 0x1bf4], edi
mov dword [rbx + 0x1bf0], r12d
lea rcx, [rbx + 0x1df8]
xor edx, edx
call fcn.180013cb8
lea rdi, [rbx + 0x1dc8]
mov ecx, dword [rdi + 4]
test ecx, ecx
jns 0x180007234
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 0x180007234
mov rax, qword [0x180059f90]
test rax, rax
je 0x1800071f6
add dword [rax + 0x3b0], r13d
movsxd rcx, esi
shl rcx, 2
mov rdx, qword [0x180059f80]
call fcn.180003470
mov r14, rax
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x18000722d
movsxd r8, dword [rdi]
shl r8, 2
mov rcx, rax
call sub.ucrtbase.dll_memcpy
mov rcx, qword [rdi + 8]
call fcn.180005424
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.180013d68
lea rcx, [rbx + 0x1dd8]
xor edx, edx
call fcn.180013cb8
mov byte [rbx + 0x1bad], r13b
mov rax, qword [0x180059f90]
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.1800146c4
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.18000b0f8
mov edx, r13d
mov rcx, rbx
call fcn.180005474
mov rcx, qword [rbp - 0x28]
xor rcx, rsp
call fcn.1800492b0
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