Function at 0x5b4fa0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
vmovups xmmword [rsp + 0xa0], xmm6
mov rbx, qword [rcx + 0x10]
mov rsi, rdx
mov rbp, rcx
mov ecx, 0x28
mov qword [rsp + 0x98], rbx
call sub.msvcrt.dll_malloc
vmovq xmm6, rsi
mov ecx, 0x14
vpbroadcastq ymm0, xmm6
mov qword [rsp + 0x88], rax
mov qword [rax + 0x20], rsi
vmovdqu ymmword [rax], ymm0
vzeroupper
call sub.msvcrt.dll_malloc
vmovdqu xmm6, xmmword [0x006be5e0]
mov qword [rsp + 0x70], rax
mov dword [rax + 0x10], 0
vmovups xmmword [rax], xmm6
mov eax, 1
shlx eax, eax, esi
movsxd r15, eax
test r15, r15
jle 0x5b514c
xor edi, edi
nop
mov edx, 1
mov ecx, 0x20
call sub.msvcrt.dll_calloc
test rbx, rbx
mov r12, rax
lea rax, [rbx + rbx]
mov rdx, rax
not rdx
cmovs rax, rdx
cmp rax, 0x7f
jbe 0x5b5a90
xor edx, edx
nop
mov r8d, eax
mov ecx, edx
shr rax, 7
inc edx
or r8d, 0xffffff80
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x5b5060
add rdx, r12
mov byte [rdx], al
mov ecx, 0x40
inc rdi
call sub.msvcrt.dll_malloc
vmovdqu xmm3, xmmword [r12]
mov ecx, 0x20
vmovdqu xmm4, xmmword [r12 + 0x10]
mov r13, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm1, xmmword [rax]
vmovups xmmword [r13], xmm1
vmovdqu xmm2, xmmword [rax + 0x10]
vmovups xmmword [r13 + 0x20], xmm3
vmovups xmmword [r13 + 0x10], xmm2
vmovups xmmword [r13 + 0x30], xmm4
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x40
mov rcx, r13
mov r8, rax
mov r14, rax
call fcn.005b7330
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
andn rdx, rdx, qword [rsp + 0x98]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov edx, 1
mov rcx, r14
mov r8d, 0x20
call sub.msvcrt.dll_fwrite
mov rax, qword [rsp + 0x98]
mov rcx, r14
lea rbx, [rax + 1]
mov qword [rsp + 0x98], rbx
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
cmp r15, rdi
jne 0x5b5030
mov byte [rsp + 0x5f], 5
cmp rsi, 1
je 0x5b5f08
nop dword [rax + rax]
movsx rax, byte [rsp + 0x5f]
mov r15, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
mov rsi, rax
mov byte [rsp + 0x40], al
mov rdi, qword [r15 + rax*8 - 8]
dec esi
movsxd r12, dword [rcx + rax*4 - 4]
mov byte [rsp + 0x5f], sil
test sil, sil
jle 0x5b51f4
movsx rsi, sil
lea r14, [rsi*8]
shl rsi, 2
mov rcx, r14
call sub.msvcrt.dll_malloc
mov r8, r14
mov rdx, r15
mov rcx, rax
mov r13, rax
call sub.msvcrt.dll_memcpy
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r8, rsi
mov rsi, qword [rsp + 0x70]
mov rcx, rax
mov r14, rax
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov rcx, rsi
call sub.msvcrt.dll_free
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x70], r14
mov ecx, 0x28
lea rsi, [rdi - 1]
call sub.msvcrt.dll_malloc
vmovq xmm0, rdi
mov ecx, 0x14
mov qword [rsp + 0x20], rsi
vpbroadcastq ymm0, xmm0
vpaddq ymm0, ymm0, ymmword [0x006be600]
mov qword [rsp + 0x78], rax
mov qword [rax + 0x20], rsi
vmovdqu ymmword [rax], ymm0
vzeroupper
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x80], rax
mov dword [rax + 0x10], 0
vmovups xmmword [rax], xmm6
mov eax, 1
shlx edx, eax, edi
movsxd rcx, edx
lea edx, [rdi - 1]
shlx eax, eax, edx
cdqe
mov qword [rsp + 0x38], rax
test r12, r12
je 0x5b56b0
mov rsi, rbx
cmp r12, 1
je 0x5b5ad8
cmp r12, 2
je 0x5b5d60
cmp r12, 3
je 0x5b58c0
lea rax, [rdi + 1]
lea rdx, [rcx + rbx]
imul rax, rcx
imul rdi, rax
mov rax, qword [rsp + 0x38]
sub rdx, rdi
test rax, rax
jle 0x5b5664
add rax, rbx
sub rdx, rbx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], rdx
nop word [rax + rax]
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
mov rax, rsi
xor r8d, r8d
sub rax, qword [rsp + 0x38]
mov edi, 0
andn rdx, rdx, rax
shl edx, 5
call sub.msvcrt.dll_fseek
mov ecx, 0x20
call sub.msvcrt.dll_malloc
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, rax
mov r14, rax
call sub.msvcrt.dll_fread
mov r15, qword [rsp + 0x60]
mov rdx, qword [rbp + 0x10]
cmp rax, 0x20
mov rcx, qword [rbp]
lea rax, [r15 + rsi]
cmovne r14, rdi
xor r8d, r8d
andn rdx, rdx, rax
shl edx, 5
call sub.msvcrt.dll_fseek
mov ecx, 0x20
call sub.msvcrt.dll_malloc
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_fread
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
cmp rax, 0x20
mov rax, qword [rsp + 0x20]
cmovne rbx, rdi
xor r8d, r8d
add rax, r15
andn rdx, rdx, rax
shl edx, 5
call sub.msvcrt.dll_fseek
mov ecx, 0x20
call sub.msvcrt.dll_malloc
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, rax
mov r15, rax
call sub.msvcrt.dll_fread
mov edx, 1
mov ecx, 0x20
cmp rax, 0x20
cmovne r15, rdi
call sub.msvcrt.dll_calloc
mov r13, rax
lea rax, [rsi + rsi]
test rsi, rsi
jns 0x5b53d8
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5b56a0
xor edx, edx
nop dword [rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
inc edx
or r8d, 0xffffff80
mov byte [r13 + rcx], r8b
cmp rax, 0x7f
ja 0x5b53e8
add rdx, r13
mov byte [rdx], al
mov ecx, pe_nt_image_headers64
call sub.msvcrt.dll_malloc
vmovdqu xmm3, xmmword [r13]
vmovdqu xmm5, xmmword [r14]
mov ecx, 0x20
mov r12, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm4, xmmword [r13 + 0x10]
vmovdqu xmm0, xmmword [r14 + 0x10]
lea rdi, [r12 + 0x60]
lea r11, [r12 + 0x20]
vmovdqu xmm1, xmmword [rax]
lea r10, [r12 + 0x40]
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x48], r10
vmovups xmmword [r12], xmm1
vmovdqu xmm2, xmmword [rax + 0x10]
vmovdqu xmm1, xmmword [rbx]
vmovups xmmword [r12 + 0x20], xmm3
vmovups xmmword [r12 + 0x10], xmm2
vmovdqu xmm2, xmmword [rbx + 0x10]
vmovups xmmword [r12 + 0x30], xmm4
vmovups xmmword [r12 + 0x40], xmm5
vmovups xmmword [r12 + 0x50], xmm0
vmovups xmmword [r12 + 0x60], xmm1
vmovups xmmword [rdi + 0x10], xmm2
call sub.msvcrt.dll_malloc
mov rcx, r12
mov r9d, 0x20
mov edx, pe_nt_image_headers64
mov r8, rax
mov qword [rsp + 0x40], rax
call fcn.005b7330
mov rcx, qword [rsp + 0x20]
mov qword [r13], 0
mov qword [r13 + 8], 0
mov r10, qword [rsp + 0x48]
test rcx, rcx
mov r11, qword [rsp + 0x50]
lea rax, [rcx + rcx]
mov qword [r13 + 0x10], 0
mov qword [r13 + 0x18], 0
jns 0x5b54f7
mov rax, rcx
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5b5698
xor edx, edx
nop dword [rax + rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
inc edx
or r8d, 0xffffff80
mov byte [r13 + rcx], r8b
cmp rax, 0x7f
ja 0x5b5508
add rdx, r13
mov byte [rdx], al
mov rax, qword [rbp + 0x18]
mov ecx, 0x20
vmovdqu xmm5, xmmword [r13]
vmovdqu xmm0, xmmword [r13 + 0x10]
vmovdqu xmm3, xmmword [rax]
vmovdqu xmm1, xmmword [r14]
vmovdqu xmm2, xmmword [r14 + 0x10]
vmovups xmmword [r12], xmm3
vmovdqu xmm4, xmmword [rax + 0x10]
vmovdqu xmm3, xmmword [r15]
vmovups xmmword [r12 + 0x20], xmm5
vmovups xmmword [r12 + 0x10], xmm4
vmovdqu xmm4, xmmword [r15 + 0x10]
vmovups xmmword [r11 + 0x10], xmm0
vmovups xmmword [r12 + 0x40], xmm1
vmovups xmmword [r10 + 0x10], xmm2
vmovups xmmword [r12 + 0x60], xmm3
vmovups xmmword [rdi + 0x10], xmm4
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, pe_nt_image_headers64
mov rcx, r12
mov r8, rax
mov rdi, rax
call fcn.005b7330
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
andn rdx, rdx, rsi
shl edx, 5
inc rsi
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov rcx, qword [rsp + 0x40]
mov r8d, 0x20
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
andn rdx, rdx, qword [rsp + 0x20]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov edx, 1
mov rcx, rdi
mov r8d, 0x20
call sub.msvcrt.dll_fwrite
mov rcx, r14
add qword [rsp + 0x98], 2
call sub.msvcrt.dll_free
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
mov rcx, rdi
call sub.msvcrt.dll_free
inc qword [rsp + 0x20]
cmp qword [rsp + 0x68], rsi
jne 0x5b52c8
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
cmp byte [rsp + 0x5f], 0
je 0x5b5aa0
mov rbx, qword [rsp + 0x98]
jmp 0x5b5160
mov rdx, r13
jmp 0x5b5525
mov rdx, r13
jmp 0x5b5405
sub rbx, rcx
test rax, rax
jle 0x5b5a57
lea rdi, [rbx + rax]
mov rsi, rdi
nop dword [rax + rax]
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
mov r13d, 0
andn rdx, rdx, rbx
shl edx, 5
call sub.msvcrt.dll_fseek
mov ecx, 0x20
call sub.msvcrt.dll_malloc
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, rax
mov r15, rax
call sub.msvcrt.dll_fread
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
cmp rax, 0x20
cmovne r15, r13
xor r8d, r8d
andn rdx, rdx, rdi
shl edx, 5
call sub.msvcrt.dll_fseek
mov ecx, 0x20
call sub.msvcrt.dll_malloc
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, rax
mov r14, rax
call sub.msvcrt.dll_fread
mov edx, 1
mov ecx, 0x20
cmp rax, 0x20
cmovne r14, r13
call sub.msvcrt.dll_calloc
mov rdx, qword [rsp + 0x98]
mov r12, rax
lea rax, [rdx + rdx]
test rdx, rdx
mov rcx, rax
not rcx
cmovs rax, rcx
cmp rax, 0x7f
jbe 0x5b5a78
xor edx, edx
nop dword [rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
inc edx
or r8d, 0xffffff80
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x5b5790
add rdx, r12
mov byte [rdx], al
mov ecx, pe_nt_image_headers64
inc rbx
call sub.msvcrt.dll_malloc
vmovdqu xmm2, xmmword [r15]
vmovdqu xmm3, xmmword [r15 + 0x10]
mov ecx, 0x20
mov r13, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm1, xmmword [r12 + 0x10]
vmovdqu xmm4, xmmword [r14]
vmovdqu xmm5, xmmword [rax]
vmovups xmmword [r13], xmm5
vmovdqu xmm0, xmmword [rax + 0x10]
vmovdqu xmm5, xmmword [r12]
vmovups xmmword [r13 + 0x30], xmm1
vmovups xmmword [r13 + 0x10], xmm0
vmovdqu xmm0, xmmword [r14 + 0x10]
vmovups xmmword [r13 + 0x20], xmm5
vmovups xmmword [r13 + 0x40], xmm2
vmovups xmmword [r13 + 0x50], xmm3
vmovups xmmword [r13 + 0x60], xmm4
vmovups xmmword [r13 + 0x70], xmm0
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, pe_nt_image_headers64
mov rcx, r13
mov r8, rax
mov rdi, rax
call fcn.005b7330
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
andn rdx, rdx, qword [rsp + 0x98]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov edx, 1
mov rcx, rdi
mov r8d, 0x20
call sub.msvcrt.dll_fwrite
mov rcx, rdi
inc qword [rsp + 0x98]
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, r14
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
cmp rbx, rsi
je 0x5b5a57
mov rax, qword [rsp + 0x38]
lea rdi, [rbx + rax]
jmp 0x5b56c8
mov rdi, rax
test rax, rax
jle 0x5b5a57
lea rbx, [rbx + rax]
mov rdx, qword [rbp + 0x10]
mov rax, rsi
mov rcx, qword [rbp]
xor r8d, r8d
sub rax, rdi
andn rdx, rdx, rax
shl edx, 5
call sub.msvcrt.dll_fseek
mov ecx, 0x20
call sub.msvcrt.dll_malloc
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, rax
mov r13, rax
call sub.msvcrt.dll_fread
mov edx, 1
mov ecx, 0x20
cmp rax, 0x20
mov eax, 0
cmovne r13, rax
call sub.msvcrt.dll_calloc
mov r12, rax
lea rax, [rsi + rsi]
test rsi, rsi
jns 0x5b5945
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5b5a80
xor edx, edx
nop dword [rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
inc edx
or r8d, 0xffffff80
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x5b5958
add rdx, r12
mov byte [rdx], al
mov ecx, 0x60
inc rsi
call sub.msvcrt.dll_malloc
vmovdqu xmm2, xmmword [r12]
vmovdqu xmm4, xmmword [r13]
mov ecx, 0x20
mov r14, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm3, xmmword [r12 + 0x10]
vmovdqu xmm5, xmmword [rax]
vmovups xmmword [r14], xmm5
vmovdqu xmm5, xmmword [r13 + 0x10]
vmovdqu xmm1, xmmword [rax + 0x10]
vmovups xmmword [r14 + 0x20], xmm2
vmovups xmmword [r14 + 0x10], xmm1
vmovups xmmword [r14 + 0x30], xmm3
vmovups xmmword [r14 + 0x40], xmm4
vmovups xmmword [r14 + 0x50], xmm5
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x60
mov rcx, r14
mov r8, rax
mov r15, rax
call fcn.005b7330
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
andn rdx, rdx, qword [rsp + 0x98]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov edx, 1
mov rcx, r15
mov r8d, 0x20
call sub.msvcrt.dll_fwrite
mov rcx, r15
inc qword [rsp + 0x98]
call sub.msvcrt.dll_free
mov rcx, r14
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
cmp rbx, rsi
jne 0x5b58d0
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x98]
mov rcx, rbp
call fcn.005b4c60
jmp 0x5b5664
mov rdx, r12
jmp 0x5b57ac
mov rdx, r12
jmp 0x5b5974
mov rdx, r12
jmp 0x5b507c
mov rcx, qword [rsp + 0x88]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x70]
vmovups xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_free
test rax, rax
jle 0x5b5c6e
lea rbx, [rbx + rax]
nop dword [rax]
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
mov rax, rsi
xor r8d, r8d
sub rax, qword [rsp + 0x38]
andn rdx, rdx, rax
shl edx, 5
call sub.msvcrt.dll_fseek
mov ecx, 0x20
call sub.msvcrt.dll_malloc
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, rax
mov r14, rax
call sub.msvcrt.dll_fread
mov edx, 1
mov ecx, 0x20
cmp rax, 0x20
mov eax, 0
cmovne r14, rax
call sub.msvcrt.dll_calloc
mov r12, rax
lea rax, [rsi + rsi]
test rsi, rsi
jns 0x5b5b5f
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5b5d50
xor edx, edx
nop dword [rax + rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
inc edx
or r8d, 0xffffff80
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x5b5b70
add rdx, r12
mov byte [rdx], al
mov ecx, 0x60
inc rsi
call sub.msvcrt.dll_malloc
vmovdqu xmm2, xmmword [r12]
vmovdqu xmm4, xmmword [r14]
mov ecx, 0x20
mov r15, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm3, xmmword [r12 + 0x10]
vmovdqu xmm0, xmmword [r14 + 0x10]
vmovdqu xmm5, xmmword [rax]
vmovups xmmword [r15], xmm5
vmovdqu xmm1, xmmword [rax + 0x10]
vmovups xmmword [r15 + 0x20], xmm2
vmovups xmmword [r15 + 0x10], xmm1
vmovups xmmword [r15 + 0x30], xmm3
vmovups xmmword [r15 + 0x40], xmm4
vmovups xmmword [r15 + 0x50], xmm0
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x60
mov rcx, r15
mov r8, rax
mov r13, rax
call fcn.005b7330
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
andn rdx, rdx, qword [rsp + 0x98]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov edx, 1
mov rcx, r13
mov r8d, 0x20
call sub.msvcrt.dll_fwrite
mov rcx, r13
inc qword [rsp + 0x98]
call sub.msvcrt.dll_free
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, r14
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
cmp rsi, rbx
jne 0x5b5ae8
cmp rdi, 2
je 0x5b5a57
movsx esi, byte [rsp + 0x5f]
add esi, 5
movsxd rsi, esi
lea rdi, [rsi*8]
shl rsi, 2
mov rcx, rdi
sub rdi, 0x28
call sub.msvcrt.dll_malloc
mov r14, qword [rsp + 0x88]
mov r8, rdi
mov rcx, rax
mov rbx, rax
mov rdx, r14
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x78]
lea r8, [rbx + rdi]
mov rcx, r14
vmovdqu xmm1, xmmword [rax + 0x10]
vmovdqu xmm5, xmmword [rax]
mov rax, qword [rax + 0x20]
vmovups xmmword [r8], xmm5
mov qword [r8 + 0x20], rax
movzx eax, byte [rsp + 0x40]
vmovups xmmword [r8 + 0x10], xmm1
add eax, 4
vmovups xmmword [rsp + 0x20], xmm1
mov byte [rsp + 0x5f], al
call sub.msvcrt.dll_free
mov rcx, rsi
sub rsi, 0x14
call sub.msvcrt.dll_malloc
mov r14, qword [rsp + 0x70]
mov r8, rsi
mov rcx, rax
mov rdi, rax
mov rdx, r14
add rsi, rdi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x80]
mov rcx, r14
vmovdqu xmm3, xmmword [rax]
mov eax, dword [rax + 0x10]
mov dword [rsi + 0x10], eax
vmovups xmmword [rsi], xmm3
vmovups xmmword [rsp + 0x20], xmm3
call sub.msvcrt.dll_free
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x88], rbx
jmp 0x5b5664
mov rdx, r12
jmp 0x5b5b8c
test rax, rax
jle 0x5b5c6e
lea rbx, [rbx + rax]
nop dword [rax]
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
mov rax, rsi
xor r8d, r8d
sub rax, qword [rsp + 0x38]
andn rdx, rdx, rax
shl edx, 5
call sub.msvcrt.dll_fseek
mov ecx, 0x20
call sub.msvcrt.dll_malloc
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, rax
mov r14, rax
call sub.msvcrt.dll_fread
mov edx, 1
mov ecx, 0x20
cmp rax, 0x20
mov eax, 0
cmovne r14, rax
call sub.msvcrt.dll_calloc
mov r12, rax
lea rax, [rsi + rsi]
test rsi, rsi
jns 0x5b5de7
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5b5f00
xor edx, edx
nop dword [rax + rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
inc edx
or r8d, 0xffffff80
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x5b5df8
add rdx, r12
mov byte [rdx], al
mov ecx, 0x60
inc rsi
call sub.msvcrt.dll_malloc
vmovdqu xmm2, xmmword [r12]
vmovdqu xmm4, xmmword [r14]
mov ecx, 0x20
mov r15, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm3, xmmword [r12 + 0x10]
vmovdqu xmm0, xmmword [r14 + 0x10]
vmovdqu xmm5, xmmword [rax]
vmovups xmmword [r15], xmm5
vmovdqu xmm1, xmmword [rax + 0x10]
vmovups xmmword [r15 + 0x20], xmm2
vmovups xmmword [r15 + 0x10], xmm1
vmovups xmmword [r15 + 0x30], xmm3
vmovups xmmword [r15 + 0x40], xmm4
vmovups xmmword [r15 + 0x50], xmm0
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x60
mov rcx, r15
mov r8, rax
mov r13, rax
call fcn.005b7330
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
andn rdx, rdx, qword [rsp + 0x98]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov edx, 1
mov rcx, r13
mov r8d, 0x20
call sub.msvcrt.dll_fwrite
mov rcx, r13
inc qword [rsp + 0x98]
call sub.msvcrt.dll_free
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, r14
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
cmp rbx, rsi
jne 0x5b5d70
jmp 0x5b5c6e
mov rdx, r12
jmp 0x5b5e14
lea r8, [rsp + 0x98]
mov edx, 1
mov rcx, rbp
call fcn.005b4c60
nop
vmovups xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret