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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov r12, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rsi, [rsp + 0x58]
mov qword [rsi], 0
call fcn.14007da9c
mov r15, rax
mov rcx, rax
mov rdx, rsi
call fcn.14007d48c
mov rsi, rax
xor r13d, r13d
cmp rax, 0xffffffffffffffff
je 0x14007dc82
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rbx
mov rcx, r14
call fcn.140064eee
lea rdi, [rsp + 0x70]
mov rbp, qword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
mov ebx, ecx
mov r8, qword [r14 + 0x10]
cmp r8, rbx
jbe 0x14007ddb2
sub r8d, ebx
mov rdx, rbx
add rdx, qword [r14]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov r9, rdi
call rbp
mov ecx, dword [rsp + 0x70]
add ecx, ebx
test eax, eax
jne 0x14007dc45
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov qword [rdi], 0
mov dword [rbx], 0
xor ebp, ebp
mov rcx, qword [rsp + 0x58]
call fcn.140012312
mov rcx, r15
call fcn.140012312
cmp rsi, 0xffffffffffffffff
je 0x14007dcb2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x14007dcbf
mov rcx, r13
call fcn.140064df8
test rbp, rbp
jne 0x14007dfbf
cmp qword [rdi], 0
jne 0x14007dfbf
mov qword [rdi], 0
mov dword [rbx], 0
cmp qword [r14 + 0x10], 0x40000
ja 0x14007dfbf
lea rcx, [0x1400bc288]
mov rdx, rcx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x14007dfbf
mov r13, rax
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, str.PageantRequest_08x
mov edx, eax
call fcn.14006496f
mov r15, rax
xor esi, esi
call fcn.14007e7dc
mov edx, 0
test al, al
je 0x14007de99
call fcn.14007e984
test rax, rax
je 0x14007de95
mov rdi, rax
mov edx, 0x28
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
je 0x14007de95
mov rsi, rax
mov rcx, rax
mov edx, 1
call qword [0x1400dc008]
test eax, eax
je 0x14007de8c
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call qword [0x1400dc010]
test eax, eax
je 0x14007de8c
mov dword [rsp + 0x58], 0x18
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x60], rsi
lea rdx, [rsp + 0x58]
jmp 0x14007de99
test r12, r12
je 0x14007de12
xor r13d, r13d
mov ecx, 1
mov edx, 0x20
xor r8d, r8d
call fcn.140012298
mov rbp, rax
lea rdx, [0x14007e030]
mov rcx, rsi
mov r8, rax
xor r9d, r9d
call fcn.140078190
mov qword [rbp], rax
call fcn.140064df1
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], r12
mov rax, qword [rsp + 0x4e0]
mov qword [rbp + 0x18], rax
xor esi, esi
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
jmp 0x14007dc91
call fcn.140064df1
mov r13, rax
lea rdi, [rsp + 0x70]
lea rbx, [rsp + 0x54]
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8d, 0x400
mov r9, rbx
call r12
test eax, eax
je 0x14007dc78
mov r8d, dword [rsp + 0x54]
mov rcx, r13
mov rdx, rdi
call fcn.14007dfe6
test eax, eax
je 0x14007de2b
mov ebp, eax
cmp eax, 0xffffffff
je 0x14007dc78
mov rcx, r13
call fcn.140064e2a
mov rdi, qword [rsp + 0x40]
mov qword [rdi], rax
mov rbx, qword [rsp + 0x38]
mov dword [rbx], ebp
xor r13d, r13d
jmp 0x14007dc8f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
xor edx, edx
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x40000
mov rcx, 0xffffffffffffffff
mov r8d, 4
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
inc rax
cmp rax, 1
ja 0x14007ded5
mov rcx, r15
call fcn.140012312
jmp 0x14007dfbf
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
mov rcx, r14
call fcn.140064eee
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
mov rcx, r12
call fcn.140085310
mov eax, 0x804e50ba
lea rbx, [rsp + 0x70]
mov qword [rbx], rax
mov rcx, r15
call fcn.1400943f0
inc eax
mov dword [rbx + 8], eax
mov qword [rbx + 0x10], r15
mov rcx, r13
mov edx, 0x4a
xor r8d, r8d
mov r9, rbx
call qword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x14007df95
mov ebx, dword [r12]
shl rbx, 0x20
bswap rbx
lea eax, [rbx - 1]
cmp eax, 0x3fffb
ja 0x14007df95
add rbx, 4
mov edx, 1
mov rcx, rbx
xor r8d, r8d
call fcn.140012298
mov rsi, rax
mov rcx, rax
mov rdx, r12
mov r8, rbx
call fcn.140085310
mov rax, qword [rsp + 0x40]
mov qword [rax], rsi
mov rax, qword [rsp + 0x38]
mov dword [rax], ebx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call fcn.140012312
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14007dfbf
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400841b0
mov rax, rbp
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret