Function at 0x5c2740
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 rdi, qword [rcx + 0x10]
mov rbp, rcx
mov ecx, 0x28
mov rbx, rdx
vmovq xmm6, rdx
mov qword [rsp + 0x98], rdi
vpunpcklqdq xmm6, xmm6, xmm6
call sub.msvcrt.dll_malloc
mov ecx, 0x14
vmovdqu xmmword [rax], xmm6
vmovdqu xmmword [rax + 0x10], xmm6
mov qword [rax + 0x20], rbx
mov qword [rsp + 0x88], rax
call sub.msvcrt.dll_malloc
vmovdqu xmm6, xmmword [0x00706fa0]
mov qword [rsp + 0x70], rax
mov dword [rax + 0x10], 0
vmovdqu xmmword [rax], xmm6
mov eax, 1
shlx eax, eax, ebx
movsxd r15, eax
test r15, r15
jle 0x5c28ec
xor esi, esi
mov edx, 1
mov ecx, 0x20
call sub.msvcrt.dll_calloc
test rdi, rdi
mov r12, rax
lea rax, [rdi + rdi]
mov rdx, rax
not rdx
cmovs rax, rdx
cmp rax, 0x7f
jbe 0x5c3239
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 0x5c2800
add rdx, r12
mov byte [rdx], al
mov ecx, 0x40
inc rsi
call sub.msvcrt.dll_malloc
mov ecx, 0x20
mov r13, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm0, xmmword [r12]
vmovdqu xmm1, xmmword [r12 + 0x10]
vmovdqu xmm4, xmmword [rax]
vmovdqu xmmword [r13], xmm4
vmovdqu xmm5, xmmword [rax + 0x10]
vmovdqu xmmword [r13 + 0x20], xmm0
vmovdqu xmmword [r13 + 0x30], xmm1
vmovdqu xmmword [r13 + 0x10], xmm5
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x40
mov rcx, r13
mov r8, rax
mov r14, rax
call fcn.005c4c50
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
andn rdx, rdx, qword [rsp + 0x98]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, r14
call sub.msvcrt.dll_fwrite
mov rax, qword [rsp + 0x98]
mov rcx, r14
lea rdi, [rax + 1]
mov qword [rsp + 0x98], rdi
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
cmp r15, rsi
jne 0x5c27d0
mov byte [rsp + 0x5f], 5
cmp rbx, 1
je 0x5c36ab
mov rbx, rdi
nop
movsx rax, byte [rsp + 0x5f]
mov r15, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
mov rdi, qword [r15 + rax*8 - 8]
mov byte [rsp + 0x40], al
movsxd r12, dword [rcx + rax*4 - 4]
dec eax
mov word [rsp + 0x48], ax
mov byte [rsp + 0x5f], al
test al, al
jle 0x5c2994
movsx rsi, al
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
call sub.msvcrt.dll_malloc
mov ecx, 0x14
mov rsi, rax
mov qword [rsp + 0x78], rax
lea rax, [rdi - 1]
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], rax
mov qword [rsp + 0x20], rax
mov esi, 1
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x80], rax
vmovdqu xmmword [rax], xmm6
mov dword [rax + 0x10], 0
shlx eax, esi, edi
movsxd rdx, eax
lea eax, [rdi - 1]
shlx eax, esi, eax
cdqe
mov qword [rsp + 0x38], rax
test r12, r12
je 0x5c2e50
mov rsi, rbx
cmp r12, 1
je 0x5c3275
cmp r12, 2
je 0x5c3504
cmp r12, 3
je 0x5c3064
lea rax, [rdi + 1]
lea rcx, [rdx + rbx]
imul rax, rdx
imul rdi, rax
mov rax, qword [rsp + 0x38]
sub rcx, rdi
test rax, rax
jle 0x5c2df8
add rax, rbx
sub rcx, rbx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], rcx
nop dword [rax + rax]
mov rax, rsi
sub rax, qword [rsp + 0x38]
xor r8d, r8d
mov edi, 0
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
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]
mov rcx, qword [rbp]
cmp rax, 0x20
cmovne r14, rdi
xor r8d, r8d
lea rax, [r15 + rsi]
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]
cmp rax, 0x20
mov rax, qword [rsp + 0x20]
mov rcx, qword [rbp]
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 r12, rax
lea rax, [rsi + rsi]
test rsi, rsi
jns 0x5c2b70
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5c2e40
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 0x5c2b80
add rdx, r12
mov byte [rdx], al
mov ecx, pe_nt_image_headers64
call sub.msvcrt.dll_malloc
mov ecx, 0x20
mov r13, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm2, xmmword [r12]
vmovdqu xmm3, xmmword [r12 + 0x10]
vmovdqu xmm4, xmmword [r14]
lea rdi, [r13 + 0x60]
lea r11, [r13 + 0x20]
vmovdqu xmm5, xmmword [r14 + 0x10]
lea r10, [r13 + 0x40]
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x48], r10
vmovdqu xmm0, xmmword [rax]
vmovdqu xmmword [r13], xmm0
vmovdqu xmm1, xmmword [rax + 0x10]
vmovdqu xmm0, xmmword [rbx]
vmovdqu xmmword [r13 + 0x20], xmm2
vmovdqu xmmword [r13 + 0x30], xmm3
vmovdqu xmmword [r13 + 0x40], xmm4
vmovdqu xmmword [r13 + 0x50], xmm5
vmovdqu xmmword [r13 + 0x10], xmm1
vmovdqu xmm1, xmmword [rbx + 0x10]
vmovdqu xmmword [r13 + 0x60], xmm0
vmovdqu xmmword [rdi + 0x10], xmm1
call sub.msvcrt.dll_malloc
mov rcx, r13
mov r9d, 0x20
mov edx, pe_nt_image_headers64
mov r8, rax
mov qword [rsp + 0x40], rax
call fcn.005c4c50
mov qword [r12], 0
mov qword [r12 + 8], 0
mov qword [r12 + 0x10], 0
mov qword [r12 + 0x18], 0
mov rcx, qword [rsp + 0x20]
mov r10, qword [rsp + 0x48]
mov r11, qword [rsp + 0x50]
test rcx, rcx
lea rax, [rcx + rcx]
jns 0x5c2c89
mov rax, rcx
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5c2e30
xor edx, edx
nop word cs:[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 0x5c2ca0
add rdx, r12
mov byte [rdx], al
mov rax, qword [rbp + 0x18]
vmovdqu xmm4, xmmword [r12]
mov ecx, 0x20
vmovdqu xmm5, xmmword [r12 + 0x10]
vmovdqu xmm0, xmmword [r14]
vmovdqu xmm1, xmmword [r14 + 0x10]
vmovdqu xmm2, xmmword [rax]
vmovdqu xmmword [r13], xmm2
vmovdqu xmm3, xmmword [rax + 0x10]
vmovdqu xmm2, xmmword [r15]
vmovdqu xmmword [r13 + 0x20], xmm4
vmovdqu xmmword [r13 + 0x10], xmm3
vmovdqu xmm3, xmmword [r15 + 0x10]
vmovdqu xmmword [r11 + 0x10], xmm5
vmovdqu xmmword [r13 + 0x40], xmm0
vmovdqu xmmword [r10 + 0x10], xmm1
vmovdqu xmmword [r13 + 0x60], xmm2
vmovdqu xmmword [rdi + 0x10], xmm3
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.005c4c50
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
andn rdx, rdx, rsi
inc rsi
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
andn rdx, rdx, qword [rsp + 0x20]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, rdi
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, r12
call sub.msvcrt.dll_free
mov rcx, r13
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 0x5c2a60
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 0x5c3241
mov rbx, qword [rsp + 0x98]
jmp 0x5c2900
mov rdx, r12
jmp 0x5c2cbc
mov rdx, r12
jmp 0x5c2b9c
sub rbx, rdx
test rax, rax
jle 0x5c320f
lea rdi, [rbx + rax]
mov rsi, rdi
nop word cs:[rax + rax]
nop
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
mov r14d, 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, r14
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 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 0x5c3229
xor edx, edx
nop word cs:[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 0x5c2f40
add rdx, r12
mov byte [rdx], al
mov ecx, pe_nt_image_headers64
inc rbx
call sub.msvcrt.dll_malloc
mov ecx, 0x20
mov rdi, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm0, xmmword [r15]
vmovdqu xmm1, xmmword [r15 + 0x10]
vmovdqu xmm2, xmmword [r13]
vmovdqu xmm3, xmmword [r13 + 0x10]
vmovdqu xmm4, xmmword [rax]
vmovdqu xmmword [rdi], xmm4
vmovdqu xmm5, xmmword [rax + 0x10]
vmovdqu xmm4, xmmword [r12]
vmovdqu xmmword [rdi + 0x40], xmm0
vmovdqu xmmword [rdi + 0x50], xmm1
vmovdqu xmmword [rdi + 0x60], xmm2
vmovdqu xmmword [rdi + 0x70], xmm3
vmovdqu xmmword [rdi + 0x10], xmm5
vmovdqu xmm5, xmmword [r12 + 0x10]
vmovdqu xmmword [rdi + 0x20], xmm4
vmovdqu xmmword [rdi + 0x30], 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.005c4c50
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
andn rdx, rdx, qword [rsp + 0x98]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, r14
call sub.msvcrt.dll_fwrite
mov rcx, r14
inc qword [rsp + 0x98]
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 0x5c320f
mov rax, qword [rsp + 0x38]
lea rdi, [rbx + rax]
jmp 0x5c2e70
mov rdi, rax
test rax, rax
jle 0x5c320f
add rbx, rax
nop word cs:[rax + rax]
nop
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
mov rax, rsi
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 0x5c30f5
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5c3231
xor edx, edx
nop word cs:[rax + rax]
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 0x5c3110
add rdx, r12
mov byte [rdx], al
mov ecx, 0x60
inc rsi
call sub.msvcrt.dll_malloc
mov ecx, 0x20
mov r14, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm0, xmmword [r12]
vmovdqu xmm1, xmmword [r12 + 0x10]
vmovdqu xmm2, xmmword [r13]
vmovdqu xmm3, xmmword [r13 + 0x10]
vmovdqu xmm4, xmmword [rax]
vmovdqu xmmword [r14], xmm4
vmovdqu xmm5, xmmword [rax + 0x10]
vmovdqu xmmword [r14 + 0x20], xmm0
vmovdqu xmmword [r14 + 0x30], xmm1
vmovdqu xmmword [r14 + 0x40], xmm2
vmovdqu xmmword [r14 + 0x50], xmm3
vmovdqu xmmword [r14 + 0x10], xmm5
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x60
mov rcx, r14
mov r8, rax
mov r15, rax
call fcn.005c4c50
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
andn rdx, rdx, qword [rsp + 0x98]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, r15
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 0x5c3080
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x98]
mov rcx, rbp
call fcn.005c2400
jmp 0x5c2df8
mov rdx, r12
jmp 0x5c2f5c
mov rdx, r12
jmp 0x5c312c
mov rdx, r12
jmp 0x5c281c
mov rcx, qword [rsp + 0x88]
call sub.msvcrt.dll_free
nop
vmovups xmm6, xmmword [rsp + 0xa0]
mov rcx, qword [rsp + 0x70]
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 0x5c341e
add rbx, rax
nop word cs:[rax + rax]
nop dword [rax]
mov rax, rsi
sub rax, qword [rsp + 0x38]
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
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 0x5c3307
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5c34fc
xor edx, edx
nop word cs:[rax + rax]
nop
mov r8d, eax
mov ecx, edx
shr rax, 7
inc edx
or r8d, 0xffffff80
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x5c3320
add rdx, r12
mov byte [rdx], al
mov ecx, 0x60
inc rsi
call sub.msvcrt.dll_malloc
mov ecx, 0x20
mov r15, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm4, xmmword [r12]
vmovdqu xmm5, xmmword [r12 + 0x10]
vmovdqu xmm2, xmmword [rax]
vmovdqu xmmword [r15], xmm2
vmovdqu xmm3, xmmword [rax + 0x10]
vmovdqu xmm2, xmmword [r14]
vmovdqu xmmword [r15 + 0x20], xmm4
vmovdqu xmmword [r15 + 0x30], xmm5
vmovdqu xmmword [r15 + 0x10], xmm3
vmovdqu xmm3, xmmword [r14 + 0x10]
vmovdqu xmmword [r15 + 0x40], xmm2
vmovdqu xmmword [r15 + 0x50], xmm3
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x60
mov rcx, r15
mov r8, rax
mov r13, rax
call fcn.005c4c50
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
andn rdx, rdx, qword [rsp + 0x98]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, r13
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 0x5c3290
cmp rdi, 2
je 0x5c320f
movsx ebx, byte [rsp + 0x48]
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 + 0x88]
mov r8, rdi
mov rsi, rax
mov rcx, rax
mov rdx, r15
call sub.msvcrt.dll_memcpy
lea rax, [rsi + rdi]
mov rdi, qword [rsp + 0x78]
mov rcx, r15
vmovdqu xmm0, xmmword [rdi]
mov rdx, qword [rdi + 0x20]
mov qword [rax + 0x20], rdx
vmovdqu xmmword [rax], xmm0
vmovdqu xmm0, xmmword [rdi + 0x10]
vmovdqu xmmword [rax + 0x10], xmm0
movzx eax, byte [rsp + 0x40]
vmovdqu xmmword [rsp + 0x20], xmm0
add eax, 4
mov byte [rsp + 0x5f], al
call sub.msvcrt.dll_free
mov rcx, rbx
sub rbx, 0x14
call sub.msvcrt.dll_malloc
mov r8, rbx
mov r15, qword [rsp + 0x70]
mov rcx, rax
mov rdi, rax
add rbx, rdi
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x80]
mov rcx, r15
vmovdqu xmm0, xmmword [rax]
mov eax, dword [rax + 0x10]
mov dword [rbx + 0x10], eax
vmovdqu xmmword [rbx], xmm0
vmovdqu xmmword [rsp + 0x20], xmm0
call sub.msvcrt.dll_free
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x88], rsi
jmp 0x5c2df8
mov rdx, r12
jmp 0x5c333c
test rax, rax
jle 0x5c341e
add rbx, rax
mov rax, rsi
sub rax, qword [rsp + 0x38]
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
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 0x5c3587
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5c36a3
xor edx, edx
nop word cs:[rax + rax]
nop
mov r8d, eax
mov ecx, edx
shr rax, 7
inc edx
or r8d, 0xffffff80
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x5c35a0
add rdx, r12
mov byte [rdx], al
mov ecx, 0x60
inc rsi
call sub.msvcrt.dll_malloc
mov ecx, 0x20
mov r15, rax
mov rax, qword [rbp + 0x18]
vmovdqu xmm4, xmmword [r12]
vmovdqu xmm5, xmmword [r12 + 0x10]
vmovdqu xmm2, xmmword [r14]
vmovdqu xmm3, xmmword [r14 + 0x10]
vmovdqu xmm0, xmmword [rax]
vmovdqu xmmword [r15], xmm0
vmovdqu xmm1, xmmword [rax + 0x10]
vmovdqu xmmword [r15 + 0x20], xmm4
vmovdqu xmmword [r15 + 0x30], xmm5
vmovdqu xmmword [r15 + 0x40], xmm2
vmovdqu xmmword [r15 + 0x50], xmm3
vmovdqu xmmword [r15 + 0x10], xmm1
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x60
mov rcx, r15
mov r8, rax
mov r13, rax
call fcn.005c4c50
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
andn rdx, rdx, qword [rsp + 0x98]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, r13
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 0x5c3510
jmp 0x5c341e
mov rdx, r12
jmp 0x5c35bc
lea r8, [rsp + 0x98]
mov edx, 1
mov rcx, rbp
call fcn.005c2400
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