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

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rdx
mov dword [rbp + 0x44], r8d
mov qword [rbp + 0x48], r9
mov qword [rbp + 0x58], 0
nop
mov rax, qword [rbp + 0xc0]
mov rcx, qword [rax]
mov edx, dword [rbp + 0x44]
mov edx, edx
xor r8, r8
call fcn.0040b4c0
mov dword [rbp + 0x54], 0
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax]
mov rdx, qword [rbp + 0x38]
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointerEx
test al, al
je 0x549bb1
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax]
mov rax, qword [rbp + 0xc0]
mov rdx, qword [rax]
mov r8d, dword [rbp + 0x44]
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
mov eax, dword [rbp + 0x54]
sub eax, 1
jmp 0x549bbc
sub eax, 1
test eax, eax
jl 0x549bd3
mov rcx, qword [rbp + 0xc0]
mov rcx, qword [rcx]
movsxd rdx, eax
cmp byte [rcx + rdx], 0
je 0x549bb9
add eax, 1
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
jne 0x549c95
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 1
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 2
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 3
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 4
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 5
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xb8]
add dword [rax], 6
jmp 0x54a003
mov eax, dword [rbp + 0x54]
mov dword [rbp + 0x44], eax
xor ebx, ebx
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xa0]
mov r8, qword [rbp + 0x48]
mov r9, qword [rbp + 0xc8]
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0xd0]
mov qword [rsp + 0x28], rax
call fcn.0053efd0
jmp 0x549dd2
cmp bl, 0xff
jne 0x549d8e
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 1
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 2
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 3
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 4
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 5
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xb8]
add dword [rax], 6
jmp 0x54a003
add bl, 1
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0xb0]
call fcn.005499b0
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xa0]
mov r8, qword [rbp + 0x48]
mov r9, qword [rbp + 0xc8]
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0xd0]
mov qword [rsp + 0x28], rax
call fcn.0053efd0
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xc8]
mov rcx, qword [rcx]
movzx rax, byte [rax]
cmp al, byte [rcx]
je 0x549cd3
mov dword [rbp + 0x54], 0
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax]
mov rdx, qword [rbp + 0x38]
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointerEx
test al, al
je 0x549e3a
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax]
mov rax, qword [rbp + 0xc8]
mov rdx, qword [rax]
mov r8d, dword [rbp + 0x44]
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
cmp dword [rbp + 0x54], 0
jne 0x549ef6
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 1
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 2
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 3
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 4
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 5
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xb8]
add dword [rax], 6
jmp 0x54a003
mov eax, dword [rbp + 0x54]
mov dword [rbp + 0x44], eax
lea rcx, [rbp + 0x58]
mov edx, dword [rbp + 0x44]
call fcn.00449950
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
mov rdx, qword [rbp + 0xc0]
mov rdx, qword [rdx]
movzx rdx, byte [rdx]
mov byte [rax + rcx], dl
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 1
mov ecx, ecx
mov rdx, qword [rbp + 0xc0]
mov rdx, qword [rdx]
mov r8d, dword [rbp + 0x44]
sub r8d, 1
mov r8d, r8d
movzx rdx, byte [rdx + r8]
mov byte [rax + rcx], dl
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 2
mov ecx, ecx
mov byte [rax + rcx], bl
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 3
mov ecx, ecx
mov rdx, qword [rbp + 0x58]
movzx rdx, byte [rdx + 1]
mov byte [rax + rcx], dl
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 4
mov ecx, ecx
mov rdx, qword [rbp + 0x58]
movzx rdx, byte [rdx + 2]
mov byte [rax + rcx], dl
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
add ecx, 5
mov ecx, ecx
mov rdx, qword [rbp + 0x58]
movzx rdx, byte [rdx + 3]
mov byte [rax + rcx], dl
mov rax, qword [rbp + 0xb8]
add dword [rax], 6
lea rcx, [rbp + 0x58]
mov rdx, qword [0x004481f0]
call fcn.00415bf0
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x004481f0]
call fcn.00415bf0
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret