Function at 0x56d1c0
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
movups xmmword [rsp + 0xa0], xmm6
mov edi, 1
mov r14, qword [rcx + 0x10]
mov rbp, rcx
mov ecx, 0x28
mov rbx, rdx
mov qword [rsp + 0x98], r14
movq xmm6, rdx
call sub.msvcrt.dll_malloc
punpcklqdq xmm6, xmm6
mov ecx, 0x14
mov qword [rax + 0x20], rbx
movups xmmword [rax], xmm6
movups xmmword [rax + 0x10], xmm6
mov qword [rsp + 0x88], rax
call sub.msvcrt.dll_malloc
mov ecx, ebx
movdqu xmm6, xmmword [0x00652940]
shl edi, cl
mov qword [rsp + 0x70], rax
movsxd rdi, edi
mov dword [rax + 0x10], 0
movups xmmword [rax], xmm6
test rdi, rdi
jle 0x56d36b
xor esi, esi
nop dword [rax + rax]
mov edx, 1
mov ecx, 0x20
call sub.msvcrt.dll_calloc
test r14, r14
mov r12, rax
lea rax, [r14 + r14]
mov rdx, rax
not rdx
cmovs rax, rdx
cmp rax, 0x7f
jbe 0x56dd10
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 0x56d280
add rdx, r12
mov byte [rdx], al
mov ecx, 0x40
add rsi, 1
call sub.msvcrt.dll_malloc
movdqu xmm0, xmmword [r12]
mov ecx, 0x20
movdqu xmm1, xmmword [r12 + 0x10]
mov r13, rax
mov rax, qword [rbp + 0x18]
movdqu xmm4, xmmword [rax]
movups xmmword [r13], xmm4
movdqu xmm5, xmmword [rax + 0x10]
movups xmmword [r13 + 0x20], xmm0
movups xmmword [r13 + 0x10], xmm5
movups xmmword [r13 + 0x30], xmm1
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x40
mov rcx, r13
mov r8, rax
mov r15, rax
call fcn.0056f6b0
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 rax, qword [rsp + 0x98]
mov rcx, r15
lea r14, [rax + 1]
mov qword [rsp + 0x98], r14
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
cmp rdi, rsi
jne 0x56d250
mov byte [rsp + 0x5f], 5
cmp rbx, 1
je 0x56e1ca
nop word [rax + rax]
movsx rax, byte [rsp + 0x5f]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x70]
mov rbx, rax
mov byte [rsp + 0x20], al
mov r12, qword [rdi + rax*8 - 8]
sub ebx, 1
movsxd r13, dword [rsi + rax*4 - 4]
mov byte [rsp + 0x5f], bl
test bl, bl
jg 0x56d840
mov ecx, 0x28
lea rbx, [r12 - 1]
mov rsi, r14
call sub.msvcrt.dll_malloc
mov ecx, 0x14
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbx
mov qword [rsp + 0x78], rax
call sub.msvcrt.dll_malloc
mov ecx, r12d
mov edx, 1
mov qword [rsp + 0x80], rax
mov dword [rax + 0x10], 0
movups xmmword [rax], xmm6
mov eax, 1
shl eax, cl
lea ecx, [r12 - 1]
shl edx, cl
cdqe
movsxd rdi, edx
mov qword [rsp + 0x40], rdi
test r13, r13
je 0x56d8f0
cmp r13, 1
je 0x56dd58
cmp r13, 2
je 0x56dff0
cmp r13, 3
je 0x56db10
lea rdx, [r12 + 1]
lea rcx, [rax + r14]
imul rax, rdx
imul r12, rax
mov rax, qword [rsp + 0x40]
sub rcx, r12
test rax, rax
jle 0x56d811
add rax, r14
sub rcx, r14
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], rcx
nop word [rax + 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 0x56d593
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x56d8e0
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 0x56d5a0
add rdx, r13
mov byte [rdx], al
mov ecx, pe_nt_image_headers64
call sub.msvcrt.dll_malloc
movdqu xmm2, xmmword [r13]
movdqu xmm4, xmmword [r14]
mov ecx, 0x20
mov r12, rax
mov rax, qword [rbp + 0x18]
movdqu xmm3, xmmword [r13 + 0x10]
movdqu xmm5, xmmword [r14 + 0x10]
lea rdi, [r12 + 0x60]
lea r11, [r12 + 0x20]
movdqu xmm0, xmmword [rax]
lea r10, [r12 + 0x40]
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x48], r10
movups xmmword [r12], xmm0
movdqu xmm1, xmmword [rax + 0x10]
movdqu xmm0, xmmword [rbx]
movups xmmword [r12 + 0x20], xmm2
movups xmmword [r12 + 0x10], xmm1
movdqu xmm1, xmmword [rbx + 0x10]
movups xmmword [r12 + 0x30], xmm3
movups xmmword [r12 + 0x40], xmm4
movups xmmword [r12 + 0x50], xmm5
movups xmmword [r12 + 0x60], xmm0
movups xmmword [rdi + 0x10], xmm1
call sub.msvcrt.dll_malloc
mov rcx, r12
mov r9d, 0x20
mov edx, pe_nt_image_headers64
mov r8, rax
mov qword [rsp + 0x30], rax
call fcn.0056f6b0
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 0x56d6a8
mov rax, rcx
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x56d8d8
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 0x56d6b8
add rdx, r13
mov byte [rdx], al
mov rax, qword [rbp + 0x18]
mov ecx, 0x20
movdqu xmm4, xmmword [r13]
movdqu xmm5, xmmword [r13 + 0x10]
movdqu xmm2, xmmword [rax]
movdqu xmm0, xmmword [r14]
movdqu xmm1, xmmword [r14 + 0x10]
movups xmmword [r12], xmm2
movdqu xmm3, xmmword [rax + 0x10]
movdqu xmm2, xmmword [r15]
movups xmmword [r12 + 0x20], xmm4
movups xmmword [r12 + 0x10], xmm3
movdqu xmm3, xmmword [r15 + 0x10]
movups xmmword [r11 + 0x10], xmm5
movups xmmword [r12 + 0x40], xmm0
movups xmmword [r10 + 0x10], xmm1
movups xmmword [r12 + 0x60], xmm2
movups xmmword [rdi + 0x10], xmm3
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.0056f6b0
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 + 0x30]
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 + 0x30]
call sub.msvcrt.dll_free
mov rcx, rdi
call sub.msvcrt.dll_free
add qword [rsp + 0x20], 1
cmp qword [rsp + 0x68], rsi
jne 0x56d480
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 0x56dd20
mov r14, qword [rsp + 0x98]
jmp 0x56d380
movsx r15, bl
lea rsi, [r15*8]
mov rcx, rsi
call sub.msvcrt.dll_malloc
lea ecx, [rsi - 1]
mov r10, rdi
mov rbx, rax
mov eax, esi
mov esi, ecx
mov rdx, qword [rdi + rax - 8]
shr esi, 3
mov rdi, rbx
mov ecx, esi
mov rsi, r10
mov qword [rbx + 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 0x56dcd0
test sil, 4
jne 0x56e1b0
test esi, esi
je 0x56d8b6
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 + 0x88], rbx
mov qword [rsp + 0x70], r15
jmp 0x56d3b3
mov rdx, r13
jmp 0x56d6d6
mov rdx, r13
jmp 0x56d5be
sub rsi, rax
test rdi, rdi
jle 0x56dca4
lea rdi, [rsi + rdi]
mov qword [rsp + 0x20], rdi
mov r12, rdi
mov rdi, rsi
nop dword [rax + rax]
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
xor r8d, r8d
mov r14d, 0
not rdx
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 rsi, rax
call sub.msvcrt.dll_fread
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
cmp rax, 0x20
not rdx
cmovne rsi, r14
xor r8d, r8d
and rdx, r12
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 0x56dcc0
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 0x56d9e0
add rdx, r12
mov byte [rdx], al
mov ecx, pe_nt_image_headers64
add rdi, 1
call sub.msvcrt.dll_malloc
movdqu xmm0, xmmword [rsi]
movdqu xmm1, xmmword [rsi + 0x10]
mov ecx, 0x20
mov r14, rax
mov rax, qword [rbp + 0x18]
movdqu xmm2, xmmword [r13]
movdqu xmm3, xmmword [r13 + 0x10]
movdqu xmm4, xmmword [rax]
movups xmmword [r14], xmm4
movdqu xmm5, xmmword [rax + 0x10]
movdqu xmm4, xmmword [r12]
movups xmmword [r14 + 0x40], xmm0
movups xmmword [r14 + 0x10], xmm5
movdqu xmm5, xmmword [r12 + 0x10]
movups xmmword [r14 + 0x20], xmm4
movups xmmword [r14 + 0x30], xmm5
movups xmmword [r14 + 0x50], xmm1
movups xmmword [r14 + 0x60], xmm2
movups xmmword [r14 + 0x70], xmm3
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, pe_nt_image_headers64
mov rcx, r14
mov r8, rax
mov r15, rax
call fcn.0056f6b0
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, rsi
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
cmp rdi, qword [rsp + 0x20]
je 0x56dca4
mov rax, qword [rsp + 0x40]
lea r12, [rdi + rax]
jmp 0x56d910
test rdi, rdi
jle 0x56dca4
lea rdi, [r14 + rdi]
nop dword [rax]
mov rdx, qword [rbp + 0x10]
mov rax, rsi
sub rax, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, qword [rbp]
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 r12, rax
lea rax, [rsi + rsi]
test rsi, rsi
jns 0x56db98
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x56dd00
xor edx, edx
nop dword [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 0x56dba8
add rdx, r12
mov byte [rdx], al
mov ecx, 0x60
add rsi, 1
call sub.msvcrt.dll_malloc
movdqu xmm0, xmmword [r12]
movdqu xmm2, xmmword [r14]
mov ecx, 0x20
mov r15, rax
mov rax, qword [rbp + 0x18]
movdqu xmm1, xmmword [r12 + 0x10]
movdqu xmm3, xmmword [r14 + 0x10]
movdqu xmm4, xmmword [rax]
movups xmmword [r15], xmm4
movdqu xmm5, xmmword [rax + 0x10]
movups xmmword [r15 + 0x20], xmm0
movups xmmword [r15 + 0x10], xmm5
movups xmmword [r15 + 0x30], xmm1
movups xmmword [r15 + 0x40], xmm2
movups 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.0056f6b0
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, r13
mov r8d, 0x20
call sub.msvcrt.dll_fwrite
mov rcx, r13
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, r12
call sub.msvcrt.dll_free
cmp rdi, rsi
jne 0x56db20
lea r8, [rsp + 0x98]
mov rdx, rbx
mov rcx, rbp
call fcn.0056ce90
jmp 0x56d811
mov rdx, r12
jmp 0x56d9fd
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 0x56d8b6
mov rdx, r12
jmp 0x56dbc5
mov rdx, r12
jmp 0x56d29d
mov rcx, qword [rsp + 0x88]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x70]
movups 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 rdi, rdi
jle 0x56df01
lea rax, [r14 + rdi]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], rax
nop
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 r15, rax
call sub.msvcrt.dll_fread
mov edx, 1
mov ecx, 0x20
cmp rax, 0x20
mov eax, 0
cmovne r15, rax
call sub.msvcrt.dll_calloc
mov r13, rax
lea rax, [rsi + rsi]
test rsi, rsi
jns 0x56dde6
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x56dfe0
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 0x56ddf8
add rdx, r13
mov byte [rdx], al
mov ecx, 0x60
add rsi, 1
call sub.msvcrt.dll_malloc
movdqu xmm4, xmmword [r13]
movdqu xmm5, xmmword [r13 + 0x10]
mov ecx, 0x20
mov r12, rax
mov rax, qword [rbp + 0x18]
movdqu xmm2, xmmword [rax]
movups xmmword [r12], xmm2
movdqu xmm3, xmmword [rax + 0x10]
movdqu xmm2, xmmword [r15]
movups xmmword [r12 + 0x20], xmm4
movups xmmword [r12 + 0x10], xmm3
movdqu xmm3, xmmword [r15 + 0x10]
movups xmmword [r12 + 0x30], xmm5
movups xmmword [r12 + 0x40], xmm2
movups xmmword [r12 + 0x50], xmm3
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x60
mov rcx, r12
mov r8, rax
mov r14, rax
call fcn.0056f6b0
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, r12
call sub.msvcrt.dll_free
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
cmp rsi, qword [rsp + 0x30]
jne 0x56dd70
mov r12, qword [rsp + 0x40]
cmp r12, 2
je 0x56dca4
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 + 0x88]
mov r8, rdi
mov rcx, rax
mov rsi, rax
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x78]
lea r8, [rsi + rdi]
mov rcx, r15
movdqu xmm0, xmmword [rax]
movups xmmword [r8], xmm0
movdqu xmm0, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
mov qword [r8 + 0x20], rax
movzx eax, byte [rsp + 0x20]
movups xmmword [r8 + 0x10], xmm0
add eax, 4
movups xmmword [rsp + 0x30], xmm0
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 + 0x80]
mov rcx, r15
movdqu xmm0, xmmword [rax]
mov eax, dword [rax + 0x10]
mov dword [rbx + 0x10], eax
movups xmmword [rbx], xmm0
movups xmmword [rsp + 0x20], xmm0
call sub.msvcrt.dll_free
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x88], rsi
jmp 0x56d811
mov rdx, r13
jmp 0x56de16
test rdi, rdi
jle 0x56df01
lea rax, [r14 + rdi]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], rax
nop word [rax + 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 r15, rax
call sub.msvcrt.dll_fread
mov edx, 1
mov ecx, 0x20
cmp rax, 0x20
mov eax, 0
cmovne r15, rax
call sub.msvcrt.dll_calloc
mov r13, rax
lea rax, [rsi + rsi]
test rsi, rsi
jns 0x56e086
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x56e1a8
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 0x56e098
add rdx, r13
mov byte [rdx], al
mov ecx, 0x60
add rsi, 1
call sub.msvcrt.dll_malloc
movdqu xmm4, xmmword [r13]
movdqu xmm2, xmmword [r15]
mov ecx, 0x20
mov r12, rax
mov rax, qword [rbp + 0x18]
movdqu xmm5, xmmword [r13 + 0x10]
movdqu xmm3, xmmword [r15 + 0x10]
movdqu xmm0, xmmword [rax]
movups xmmword [r12], xmm0
movdqu xmm1, xmmword [rax + 0x10]
movups xmmword [r12 + 0x20], xmm4
movups xmmword [r12 + 0x10], xmm1
movups xmmword [r12 + 0x30], xmm5
movups xmmword [r12 + 0x40], xmm2
movups xmmword [r12 + 0x50], xmm3
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x60
mov rcx, r12
mov r8, rax
mov r14, rax
call fcn.0056f6b0
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, r12
call sub.msvcrt.dll_free
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
cmp qword [rsp + 0x30], rsi
jne 0x56e010
jmp 0x56defc
mov rdx, r13
jmp 0x56e0b6
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 0x56d8b6
lea r8, [rsp + 0x98]
mov edx, 1
mov rcx, rbp
call fcn.0056ce90
nop
movups xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret