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

Disassembly:
push rbp
sub rsp, 0x60
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 rcx, qword [rbp + 0x98]
mov rax, qword [rbp + 0xa0]
mov edx, dword [rax]
call fcn.00551f20
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rax]
mov edx, dword [rbp + 0x44]
mov edx, edx
xor r8, r8
call fcn.0040b460
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 0x551fe5
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax]
mov rax, qword [rbp + 0xa8]
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 0x551ff0
sub eax, 1
test eax, eax
jl 0x552007
mov rcx, qword [rbp + 0xa8]
mov rcx, qword [rcx]
movsxd rdx, eax
cmp byte [rcx + rdx], 0
je 0x551fed
add eax, 1
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
jne 0x5520ad
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
add ecx, 1
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
add ecx, 2
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
add ecx, 3
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
add ecx, 4
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa0]
add dword [rax], 5
jmp 0x5522be
mov eax, dword [rbp + 0x54]
mov dword [rbp + 0x44], eax
mov rcx, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0x48]
mov r9, qword [rbp + 0xb0]
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0xb8]
mov qword [rsp + 0x28], rax
call fcn.00544740
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 0x55212c
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax]
mov rax, qword [rbp + 0xb0]
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 0x5521cc
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
add ecx, 1
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
add ecx, 2
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
add ecx, 3
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
add ecx, 4
mov ecx, ecx
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0xa0]
add dword [rax], 5
jmp 0x5522be
mov eax, dword [rbp + 0x54]
mov dword [rbp + 0x44], eax
lea rcx, [rbp + 0x58]
mov edx, dword [rbp + 0x44]
call fcn.00449aa0
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
mov rdx, qword [rbp + 0xa8]
mov rdx, qword [rdx]
movzx rdx, byte [rdx]
mov byte [rax + rcx], dl
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
add ecx, 1
mov ecx, ecx
mov rdx, qword [rbp + 0xa8]
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 + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
add ecx, 2
mov ecx, ecx
mov rdx, qword [rbp + 0x58]
movzx rdx, byte [rdx + 1]
mov byte [rax + rcx], dl
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
add ecx, 3
mov ecx, ecx
mov rdx, qword [rbp + 0x58]
movzx rdx, byte [rdx + 2]
mov byte [rax + rcx], dl
mov rax, qword [rbp + 0x98]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xa0]
mov ecx, dword [rcx]
add ecx, 4
mov ecx, ecx
mov rdx, qword [rbp + 0x58]
movzx rdx, byte [rdx + 3]
mov byte [rax + rcx], dl
mov rax, qword [rbp + 0xa0]
add dword [rax], 5
lea rcx, [rbp + 0x58]
mov rdx, qword [0x004482e0]
call fcn.00415bd0
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x004482e0]
call fcn.00415bd0
lea rsp, [rbp + 0x60]
pop rbp
ret