Function at 0x572d10
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 rdi, qword [rcx + 0x10]
mov rbp, rcx
mov ecx, 0x28
mov rbx, rdx
mov qword [rsp + 0x98], rdi
movq xmm6, rdx
call sub.msvcrt.dll_malloc
punpcklqdq xmm6, xmm6
mov ecx, 0x14
movups xmmword [rax], xmm6
movups xmmword [rax + 0x10], xmm6
mov qword [rax + 0x20], rbx
mov qword [rsp + 0x88], rax
call sub.msvcrt.dll_malloc
movdqu xmm6, xmmword [0x00624590]
mov ecx, ebx
mov qword [rsp + 0x70], rax
movups xmmword [rax], xmm6
mov dword [rax + 0x10], 0
mov eax, 1
shl eax, cl
movsxd r15, eax
test r15, r15
jle 0x572ebb
xor esi, esi
nop dword [rax + rax]
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 0x573810
xor edx, edx
nop
mov r8d, eax
mov ecx, edx
shr rax, 7
or r8d, 0xffffff80
add edx, 1
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x572dd0
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
mov r13, rax
mov rax, qword [rbp + 0x18]
movdqu xmm1, xmmword [r12 + 0x10]
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 r14, rax
call fcn.005751e0
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
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 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 0x572da0
mov byte [rsp + 0x5f], 5
cmp rbx, 1
je 0x573ca8
nop word [rax + rax]
movsx rax, byte [rsp + 0x5f]
mov r15, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
mov rbx, rax
mov byte [rsp + 0x20], al
sub ebx, 1
mov rsi, qword [r15 + rax*8 - 8]
movsxd r12, dword [rcx + rax*4 - 4]
mov byte [rsp + 0x5f], bl
test bl, bl
jle 0x572f63
movsx rbx, bl
lea r14, [rbx*8]
shl rbx, 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, rbx
call sub.msvcrt.dll_malloc
mov r8, rbx
mov rbx, qword [rsp + 0x70]
mov rcx, rax
mov r14, rax
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call sub.msvcrt.dll_free
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x70], r14
lea r15, [rsi - 1]
mov ecx, 0x28
call sub.msvcrt.dll_malloc
mov ecx, 0x14
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], r15
mov qword [rsp + 0x78], rax
call sub.msvcrt.dll_malloc
mov ecx, esi
mov edx, 1
mov qword [rsp + 0x80], rax
movups xmmword [rax], xmm6
mov dword [rax + 0x10], 0
mov eax, 1
shl eax, cl
lea ecx, [rsi - 1]
movsxd r8, eax
shl edx, cl
movsxd rax, edx
mov qword [rsp + 0x50], rax
test r12, r12
je 0x573410
mov rbx, rdi
cmp r12, 1
je 0x573858
cmp r12, 2
je 0x573af0
cmp r12, 3
je 0x573628
lea rax, [rsi + 1]
imul rax, r8
lea rdx, [r8 + rdi]
imul rsi, rax
mov rax, qword [rsp + 0x50]
sub rdx, rsi
test rax, rax
jle 0x5733c1
add rax, rdi
sub rdx, rdi
mov rsi, rdi
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], rdx
nop word cs:[rax + rax]
mov rdx, qword [rbp + 0x10]
mov rax, rsi
xor r8d, r8d
mov edi, 0
sub rax, qword [rsp + 0x50]
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 r15, qword [rsp + 0x60]
mov rdx, qword [rbp + 0x10]
cmp rax, 0x20
cmovne r14, rdi
mov rcx, qword [rbp]
xor r8d, r8d
lea rax, [r15 + rsi]
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 rbx, rax
call sub.msvcrt.dll_fread
mov rdx, qword [rbp + 0x10]
cmp rax, 0x20
mov rax, qword [rsp + 0x20]
cmovne rbx, rdi
mov rcx, qword [rbp]
xor r8d, r8d
not rdx
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 0x573143
mov rax, rsi
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x573400
xor edx, edx
nop
mov r8d, eax
mov ecx, edx
shr rax, 7
or r8d, 0xffffff80
add edx, 1
mov byte [r13 + rcx], r8b
cmp rax, 0x7f
ja 0x573150
add rdx, r13
mov byte [rdx], al
mov ecx, pe_nt_image_headers64
call sub.msvcrt.dll_malloc
movdqu xmm2, xmmword [r13]
mov ecx, 0x20
mov r12, rax
mov rax, qword [rbp + 0x18]
movdqu xmm3, xmmword [r13 + 0x10]
lea rdi, [r12 + 0x60]
movdqu xmm4, xmmword [r14]
lea r11, [r12 + 0x20]
movdqu xmm5, xmmword [r14 + 0x10]
lea r10, [r12 + 0x40]
mov qword [rsp + 0x48], r11
movdqu xmm0, xmmword [rax]
mov qword [rsp + 0x40], 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.005751e0
mov rcx, qword [rsp + 0x20]
mov qword [r13], 0
mov r10, qword [rsp + 0x40]
mov qword [r13 + 8], 0
mov r11, qword [rsp + 0x48]
mov qword [r13 + 0x10], 0
mov qword [r13 + 0x18], 0
lea rax, [rcx + rcx]
test rcx, rcx
jns 0x573258
mov rax, rcx
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x5733f0
xor edx, edx
nop dword [rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
or r8d, 0xffffff80
add edx, 1
mov byte [r13 + rcx], r8b
cmp rax, 0x7f
ja 0x573268
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 xmm0, xmmword [r14]
movdqu xmm2, xmmword [rax]
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.005751e0
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
not rdx
and rdx, rsi
add rsi, 1
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov r8d, 0x20
mov edx, 1
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_fwrite
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
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 0x573030
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 0x573820
mov rdi, qword [rsp + 0x98]
jmp 0x572ed0
mov rdx, r13
jmp 0x573286
mov rdx, r13
jmp 0x57316e
sub rdi, r8
mov rsi, rax
test rax, rax
jle 0x5737ca
lea r12, [rdi + rax]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x20], r12
nop dword [rax]
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov ebx, 0
mov rcx, qword [rbp]
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 r14, rax
call sub.msvcrt.dll_fread
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp]
cmp rax, 0x20
cmovne r14, rbx
xor r8d, r8d
not rdx
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, rbx
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 0x5737e8
xor edx, edx
nop word cs:[rax + rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
or r8d, 0xffffff80
add edx, 1
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x573500
add rdx, r12
mov byte [rdx], al
mov ecx, pe_nt_image_headers64
add rdi, 1
call sub.msvcrt.dll_malloc
movdqu xmm0, xmmword [r14]
mov ecx, 0x20
mov r15, rax
mov rax, qword [rbp + 0x18]
movdqu xmm1, xmmword [r14 + 0x10]
movdqu xmm2, xmmword [r13]
movdqu xmm3, xmmword [r13 + 0x10]
movdqu xmm4, xmmword [rax]
movups xmmword [r15], xmm4
movdqu xmm5, xmmword [rax + 0x10]
movdqu xmm4, xmmword [r12]
movups xmmword [r15 + 0x40], xmm0
movups xmmword [r15 + 0x10], xmm5
movdqu xmm5, xmmword [r12 + 0x10]
movups xmmword [r15 + 0x20], xmm4
movups xmmword [r15 + 0x30], xmm5
movups xmmword [r15 + 0x50], xmm1
movups xmmword [r15 + 0x60], xmm2
movups xmmword [r15 + 0x70], xmm3
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, pe_nt_image_headers64
mov rcx, r15
mov r8, rax
mov rbx, rax
call fcn.005751e0
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
not rdx
and rdx, qword [rsp + 0x98]
shl edx, 5
call sub.msvcrt.dll_fseek
mov r9, qword [rbp]
mov edx, 1
mov rcx, rbx
mov r8d, 0x20
call sub.msvcrt.dll_fwrite
mov rcx, rbx
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
mov rcx, r12
call sub.msvcrt.dll_free
cmp rdi, qword [rsp + 0x20]
je 0x5737f0
lea r12, [rdi + rsi]
jmp 0x573430
mov rdi, rax
test rax, rax
jle 0x5737ca
lea rsi, [rbx + rax]
mov qword [rsp + 0x20], r15
nop dword [rax]
mov rdx, qword [rbp + 0x10]
mov rax, rbx
xor r8d, r8d
mov rcx, qword [rbp]
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, [rbx + rbx]
test rbx, rbx
jns 0x5736b6
mov rax, rbx
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x573800
xor edx, edx
nop word [rax + rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
or r8d, 0xffffff80
add edx, 1
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x5736c8
add rdx, r12
mov byte [rdx], al
mov ecx, 0x60
add rbx, 1
call sub.msvcrt.dll_malloc
movdqu xmm0, xmmword [r12]
mov ecx, 0x20
mov r14, rax
mov rax, qword [rbp + 0x18]
movdqu xmm1, xmmword [r12 + 0x10]
movdqu xmm2, xmmword [r13]
movdqu xmm3, xmmword [r13 + 0x10]
movdqu xmm4, xmmword [rax]
movups xmmword [r14], xmm4
movdqu xmm5, xmmword [rax + 0x10]
movups xmmword [r14 + 0x20], xmm0
movups xmmword [r14 + 0x10], xmm5
movups xmmword [r14 + 0x30], xmm1
movups xmmword [r14 + 0x40], xmm2
movups xmmword [r14 + 0x50], xmm3
call sub.msvcrt.dll_malloc
mov r9d, 0x20
mov edx, 0x60
mov rcx, r14
mov r8, rax
mov r15, rax
call fcn.005751e0
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
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 rsi, rbx
jne 0x573640
mov r15, qword [rsp + 0x20]
lea r8, [rsp + 0x98]
mov rdx, r15
mov rcx, rbp
call fcn.005729e0
jmp 0x5733c1
mov rdx, r12
jmp 0x57351d
mov r15, qword [rsp + 0x30]
jmp 0x5737ca
mov rdx, r12
jmp 0x5736e5
mov rdx, r12
jmp 0x572ded
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
mov rdi, rax
test rax, rax
jle 0x573a03
lea rax, [rbx + rax]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x30], rax
nop word [rax + rax]
mov rdx, qword [rbp + 0x10]
mov rax, rbx
xor r8d, r8d
mov rcx, qword [rbp]
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 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, [rbx + rbx]
test rbx, rbx
jns 0x5738ee
mov rax, rbx
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x573ae0
xor edx, edx
nop word [rax + rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
or r8d, 0xffffff80
add edx, 1
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x573900
add rdx, r12
mov byte [rdx], al
mov ecx, 0x60
add rbx, 1
call sub.msvcrt.dll_malloc
movdqu xmm4, xmmword [r12]
mov ecx, 0x20
mov r15, rax
mov rax, qword [rbp + 0x18]
movdqu xmm5, xmmword [r12 + 0x10]
movdqu xmm2, xmmword [rax]
movups xmmword [r15], xmm2
movdqu xmm3, xmmword [rax + 0x10]
movdqu xmm2, xmmword [r14]
movups xmmword [r15 + 0x20], xmm4
movups xmmword [r15 + 0x10], xmm3
movdqu xmm3, xmmword [r14 + 0x10]
movups xmmword [r15 + 0x30], xmm5
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.005751e0
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
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 rbx, qword [rsp + 0x30]
jne 0x573878
mov r15, qword [rsp + 0x40]
cmp rsi, 2
je 0x5737ca
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
movdqu xmm0, xmmword [rax]
movups xmmword [r8], xmm0
movdqu xmm0, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
movups xmmword [r8 + 0x10], xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [r8 + 0x20], rax
movzx eax, byte [rsp + 0x20]
add eax, 4
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
add rsi, rdi
mov rdx, r14
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x80]
mov rcx, r14
movdqu xmm0, xmmword [rax]
mov eax, dword [rax + 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsi + 0x10], eax
call sub.msvcrt.dll_free
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x88], rbx
jmp 0x5733c1
mov rdx, r12
jmp 0x57391d
mov rdi, rax
test rax, rax
jle 0x573a03
lea rax, [rbx + rax]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x30], rax
nop word [rax + rax]
mov rdx, qword [rbp + 0x10]
mov rax, rbx
xor r8d, r8d
mov rcx, qword [rbp]
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 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, [rbx + rbx]
test rbx, rbx
jns 0x573b86
mov rax, rbx
neg rax
lea rax, [rax + rax - 1]
cmp rax, 0x7f
jbe 0x573ca0
xor edx, edx
nop word [rax + rax]
mov r8d, eax
mov ecx, edx
shr rax, 7
or r8d, 0xffffff80
add edx, 1
mov byte [r12 + rcx], r8b
cmp rax, 0x7f
ja 0x573b98
add rdx, r12
mov byte [rdx], al
mov ecx, 0x60
add rbx, 1
call sub.msvcrt.dll_malloc
movdqu xmm4, xmmword [r12]
mov ecx, 0x20
mov r15, rax
mov rax, qword [rbp + 0x18]
movdqu xmm5, xmmword [r12 + 0x10]
movdqu xmm2, xmmword [r14]
movdqu xmm3, xmmword [r14 + 0x10]
movdqu xmm0, xmmword [rax]
movups xmmword [r15], xmm0
movdqu xmm1, xmmword [rax + 0x10]
movups xmmword [r15 + 0x20], xmm4
movups xmmword [r15 + 0x10], xmm1
movups xmmword [r15 + 0x30], xmm5
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.005751e0
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
mov rcx, qword [rbp]
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 qword [rsp + 0x30], rbx
jne 0x573b10
jmp 0x5739fe
mov rdx, r12
jmp 0x573bb5
lea r8, [rsp + 0x98]
mov edx, 1
mov rcx, rbp
call fcn.005729e0
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