Function at 0x5fde00
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 + 0x78], rax
mov qword [rax + 0x20], rsi
vextracti128 xmmword [rax + 0x10], ymm0, 1
vmovups xmmword [rax], xmm0
vzeroupper
call sub.msvcrt.dll_malloc
vmovdqu xmm6, xmmword [0x006e1b40]
mov ecx, esi
mov qword [rsp + 0x70], rax
mov dword [rax + 0x10], 0
vmovups xmmword [rax], xmm6
mov eax, 1
shl eax, cl
movsxd r15, eax
test r15, r15
jle 0x5fdfbf
xor edi, edi
nop word [rax + rax]
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 0x5fe980
xor edx, edx
nop word [rax + rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
add edx, 1
or r8d, 0xffffff80
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x5fded0
add rdx, r12
mov byte [rdx], al
mov ecx, 0x40
add rdi, 1
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.00600350
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
not rdx
and 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 0x5fde98
mov byte [rsp + 0x5f], 5
cmp rsi, 1
je 0x5fee22
nop
movsx rax, byte [rsp + 0x5f]
mov r10, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
mov rdi, rax
mov byte [rsp + 0x38], al
mov r12, qword [r10 + rax*8 - 8]
sub edi, 1
movsxd r13, dword [rcx + rax*4 - 4]
mov byte [rsp + 0x5f], dil
test dil, dil
jg 0x5fe4b8
mov ecx, 0x28
lea rsi, [r12 - 1]
call sub.msvcrt.dll_malloc
vmovq xmm5, r12
mov ecx, 0x14
mov qword [rsp + 0x20], rsi
vpbroadcastq ymm0, xmm5
vpaddq ymm0, ymm0, ymmword [0x006e1b60]
mov qword [rsp + 0x80], rax
mov qword [rax + 0x20], rsi
vmovups xmmword [rax], xmm0
vextracti128 xmmword [rax + 0x10], ymm0, 1
vzeroupper
call sub.msvcrt.dll_malloc
mov ecx, r12d
mov qword [rsp + 0x88], rax
mov dword [rax + 0x10], 0
vmovups xmmword [rax], xmm6
mov eax, 1
mov edx, eax
shl edx, cl
lea ecx, [r12 - 1]
shl eax, cl
movsxd rdx, edx
cdqe
mov qword [rsp + 0x40], rax
test r13, r13
je 0x5fe570
mov rsi, rbx
cmp r13, 1
je 0x5fe9c0
cmp r13, 2
je 0x5fec50
cmp r13, 3
je 0x5fe780
lea rax, [r12 + 1]
lea rcx, [rdx + rbx]
imul rax, rdx
imul r12, rax
mov rax, qword [rsp + 0x40]
sub rcx, r12
test rax, rax
jle 0x5fe481
add rax, rbx
sub rcx, rbx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], rcx
nop dword [rax]
mov rdx, qword [rbp + 0x10]
mov rax, rsi
sub rax, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, qword [rbp]
mov edi, 0
not rdx
and 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]
not rdx
cmovne r14, rdi
xor r8d, r8d
and 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
not rdx
xor r8d, r8d
add rax, r15
and 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 0x5fe1f3
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5fe560
xor edx, edx
nop
mov r8d, eax
mov ecx, edx
shr rax, 7
add edx, 1
or r8d, 0xffffff80
mov byte [r13 + rcx], r8b
cmp rax, 0x7f
ja 0x5fe200
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 + 0x38], rax
call fcn.00600350
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 0x5fe310
mov rax, rcx
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5fe550
xor edx, edx
nop dword [rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
add edx, 1
or r8d, 0xffffff80
mov byte [r13 + rcx], r8b
cmp rax, 0x7f
ja 0x5fe320
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.00600350
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
not rdx
and rdx, rsi
add rsi, 1
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov rcx, qword [rsp + 0x38]
mov r8d, 0x20
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
not rdx
and 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 + 0x38]
call sub.msvcrt.dll_free
mov rcx, rdi
call sub.msvcrt.dll_free
add qword [rsp + 0x20], 1
cmp qword [rsp + 0x68], rsi
jne 0x5fe0e0
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x88]
call sub.msvcrt.dll_free
cmp byte [rsp + 0x5f], 0
je 0x5fe990
mov rbx, qword [rsp + 0x98]
jmp 0x5fdfd0
movsx r15, dil
lea rsi, [r15*8]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r10, qword [rsp + 0x78]
lea ecx, [rsi - 1]
mov r14, rax
mov eax, esi
mov esi, ecx
mov rdx, qword [r10 + rax - 8]
shr esi, 3
mov rdi, r14
mov ecx, esi
mov rsi, r10
mov qword [r14 + rax - 8], rdx
rep movsq qword [rdi], qword [rsi]
mov rcx, r10
lea rsi, [r15*4]
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r15, rax
cmp esi, 8
jae 0x5fe940
test sil, 4
jne 0x5fee08
test esi, esi
je 0x5fe530
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax]
mov byte [r15], al
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
jmp 0x5fe002
mov rdx, r13
jmp 0x5fe33e
mov rdx, r13
jmp 0x5fe21e
sub rbx, rdx
test rax, rax
jle 0x5fe91b
lea rdi, [rbx + rax]
mov rsi, rdi
nop dword [rax + rax]
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
mov r14d, 0
not rdx
and 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
not rdx
cmovne r15, r14
xor r8d, r8d
and 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 r13, rax
call sub.msvcrt.dll_fread
mov edx, 1
mov ecx, 0x20
cmp rax, 0x20
cmovne r13, r14
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 0x5fe938
xor edx, edx
nop
mov r8d, eax
mov ecx, edx
shr rax, 7
add edx, 1
or r8d, 0xffffff80
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x5fe650
add rdx, r12
mov byte [rdx], al
mov ecx, pe_nt_image_headers64
add rbx, 1
call sub.msvcrt.dll_malloc
vmovdqu xmm0, xmmword [r12]
vmovdqu xmm2, xmmword [r15]
mov ecx, 0x20
mov rdi, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm1, xmmword [r12 + 0x10]
vmovdqu xmm3, xmmword [r15 + 0x10]
vmovdqu xmm4, xmmword [r13]
vmovdqu xmm5, xmmword [rax]
vmovups xmmword [rdi], xmm5
vmovdqu xmm5, xmmword [rax + 0x10]
vmovups xmmword [rdi + 0x20], xmm0
vmovups xmmword [rdi + 0x10], xmm5
vmovdqu xmm5, xmmword [r13 + 0x10]
vmovups xmmword [rdi + 0x30], xmm1
vmovups xmmword [rdi + 0x40], xmm2
vmovups xmmword [rdi + 0x50], xmm3
vmovups xmmword [rdi + 0x60], xmm4
vmovups xmmword [rdi + 0x70], xmm5
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, pe_nt_image_headers64
mov rcx, rdi
mov r8, rax
mov r14, rax
call fcn.00600350
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
not rdx
and 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 rcx, r14
add qword [rsp + 0x98], 1
call sub.msvcrt.dll_free
mov rcx, rdi
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
cmp rbx, rsi
je 0x5fe91b
mov rax, qword [rsp + 0x40]
lea rdi, [rbx + rax]
jmp 0x5fe588
mov rdi, rax
test rax, rax
jle 0x5fe91b
lea rbx, [rbx + rax]
mov rdx, qword [rbp + 0x10]
mov rax, rsi
mov rcx, qword [rbp]
xor r8d, r8d
sub rax, rdi
not rdx
and 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 0x5fe806
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5fe970
xor edx, edx
nop word [rax + rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
add edx, 1
or r8d, 0xffffff80
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x5fe818
add rdx, r12
mov byte [rdx], al
mov ecx, 0x60
add rsi, 1
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 xmm0, xmmword [rax]
vmovups xmmword [r14], xmm0
vmovdqu xmm0, 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], xmm0
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x60
mov rcx, r14
mov r8, rax
mov r15, rax
call fcn.00600350
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
not rdx
and 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
add qword [rsp + 0x98], 1
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 0x5fe790
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x98]
mov rcx, rbp
call fcn.005fdac0
jmp 0x5fe481
mov rdx, r12
jmp 0x5fe66d
mov r11, qword [rsp + 0x70]
mov eax, esi
lea ecx, [rsi - 1]
mov rdi, r15
mov esi, ecx
mov rdx, qword [r11 + rax - 8]
shr esi, 3
mov ecx, esi
mov rsi, r11
mov qword [r15 + rax - 8], rdx
rep movsq qword [rdi], qword [rsi]
jmp 0x5fe530
mov rdx, r12
jmp 0x5fe835
mov rdx, r12
jmp 0x5fdeed
mov rcx, qword [rsp + 0x78]
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
mov rbx, rax
test rax, rax
jle 0x5feb67
mov qword [rsp + 0x40], r12
lea rdi, [rsi + rax]
nop dword [rax]
mov rdx, qword [rbp + 0x10]
mov rax, rsi
mov rcx, qword [rbp]
xor r8d, r8d
sub rax, rbx
not rdx
and 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 r13, rax
lea rax, [rsi + rsi]
test rsi, rsi
jns 0x5fea4e
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5fec48
xor edx, edx
nop word [rax + rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
add edx, 1
or r8d, 0xffffff80
mov byte [r13 + rcx], r8b
cmp rax, 0x7f
ja 0x5fea60
add rdx, r13
mov byte [rdx], al
mov ecx, 0x60
add rsi, 1
call sub.msvcrt.dll_malloc
vmovdqu xmm3, xmmword [r13]
vmovdqu xmm5, xmmword [r14]
mov ecx, 0x20
mov r15, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm4, xmmword [r13 + 0x10]
vmovdqu xmm0, xmmword [r14 + 0x10]
vmovdqu xmm1, xmmword [rax]
vmovups xmmword [r15], xmm1
vmovdqu xmm2, xmmword [rax + 0x10]
vmovups xmmword [r15 + 0x20], xmm3
vmovups xmmword [r15 + 0x10], xmm2
vmovups xmmword [r15 + 0x30], xmm4
vmovups xmmword [r15 + 0x40], xmm5
vmovups xmmword [r15 + 0x50], xmm0
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x60
mov rcx, r15
mov r8, rax
mov r12, rax
call fcn.00600350
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
not rdx
and rdx, qword [rsp + 0x98]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov edx, 1
mov rcx, r12
mov r8d, 0x20
call sub.msvcrt.dll_fwrite
mov rcx, r12
add qword [rsp + 0x98], 1
call sub.msvcrt.dll_free
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, r14
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
cmp rsi, rdi
jne 0x5fe9d8
mov r12, qword [rsp + 0x40]
cmp r12, 2
je 0x5fe91b
movsx ebx, byte [rsp + 0x5f]
add ebx, 5
movsxd rbx, ebx
lea rdi, [rbx*8]
shl rbx, 2
mov rcx, rdi
sub rdi, 0x28
call sub.msvcrt.dll_malloc
mov r15, qword [rsp + 0x78]
mov r8, rdi
mov rcx, rax
mov rsi, rax
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x80]
lea r8, [rsi + rdi]
mov rcx, r15
vmovdqu xmm3, xmmword [rax + 0x10]
vmovdqu xmm1, xmmword [rax]
mov rax, qword [rax + 0x20]
vmovups xmmword [r8], xmm1
mov qword [r8 + 0x20], rax
movzx eax, byte [rsp + 0x38]
vmovups xmmword [r8 + 0x10], xmm3
add eax, 4
vmovups xmmword [rsp + 0x20], xmm3
mov byte [rsp + 0x5f], al
call sub.msvcrt.dll_free
mov rcx, rbx
sub rbx, 0x14
call sub.msvcrt.dll_malloc
mov r15, qword [rsp + 0x70]
mov r8, rbx
mov rcx, rax
mov rdi, rax
mov rdx, r15
add rbx, rdi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x88]
mov rcx, r15
vmovdqu xmm5, xmmword [rax]
mov eax, dword [rax + 0x10]
mov dword [rbx + 0x10], eax
vmovups xmmword [rbx], xmm5
vmovups xmmword [rsp + 0x20], xmm5
call sub.msvcrt.dll_free
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rsi
jmp 0x5fe481
mov rdx, r13
jmp 0x5fea7e
mov rbx, rax
test rax, rax
jle 0x5feb67
mov qword [rsp + 0x40], r12
lea rdi, [rsi + rax]
nop dword [rax]
mov rdx, qword [rbp + 0x10]
mov rax, rsi
mov rcx, qword [rbp]
xor r8d, r8d
sub rax, rbx
not rdx
and 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 r13, rax
lea rax, [rsi + rsi]
test rsi, rsi
jns 0x5fecde
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5fee00
xor edx, edx
nop word [rax + rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
add edx, 1
or r8d, 0xffffff80
mov byte [r13 + rcx], r8b
cmp rax, 0x7f
ja 0x5fecf0
add rdx, r13
mov byte [rdx], al
mov ecx, 0x60
add rsi, 1
call sub.msvcrt.dll_malloc
vmovdqu xmm3, xmmword [r13]
vmovdqu xmm5, xmmword [r14]
mov ecx, 0x20
mov r15, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm4, xmmword [r13 + 0x10]
vmovdqu xmm0, xmmword [r14 + 0x10]
vmovdqu xmm1, xmmword [rax]
vmovups xmmword [r15], xmm1
vmovdqu xmm2, xmmword [rax + 0x10]
vmovups xmmword [r15 + 0x20], xmm3
vmovups xmmword [r15 + 0x10], xmm2
vmovups xmmword [r15 + 0x30], xmm4
vmovups xmmword [r15 + 0x40], xmm5
vmovups xmmword [r15 + 0x50], xmm0
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x60
mov rcx, r15
mov r8, rax
mov r12, rax
call fcn.00600350
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
not rdx
and rdx, qword [rsp + 0x98]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov edx, 1
mov rcx, r12
mov r8d, 0x20
call sub.msvcrt.dll_fwrite
mov rcx, r12
add qword [rsp + 0x98], 1
call sub.msvcrt.dll_free
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, r14
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
cmp rdi, rsi
jne 0x5fec68
jmp 0x5feb62
mov rdx, r13
jmp 0x5fed0e
mov rdi, qword [rsp + 0x70]
mov esi, esi
mov eax, dword [rdi]
mov dword [r15], eax
mov eax, dword [rdi + rsi - 4]
mov dword [r15 + rsi - 4], eax
jmp 0x5fe530
lea r8, [rsp + 0x98]
mov edx, 1
mov rcx, rbp
call fcn.005fdac0
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