Function at 0x1401b3c90
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r13
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xd8
mov rax, rdx
mov rbx, rcx
xor r15d, r15d
lea rdx, [rbp + 0x6b]
mov rcx, rax
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rbx + 0x20]
mov esi, eax
mov dword [rbp - 0x55], esi
test rcx, rcx
je 0x1401b3ce7
mov rax, qword [rcx]
mov r8d, esi
xor edx, edx
call qword [rax + reloc.SHELL32.dll_ILFindChild]
mov edi, eax
mov edx, 0x20000
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp - 0x61], rax
mov r13, rax
test rax, rax
je 0x1401b3fca
mov edx, 0x2052a
mov qword [rsp + 0xc8], r14
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r14, rax
test rax, rax
je 0x1401b3f9e
mov edx, dword [rbx + 0x28]
lea rax, str.1.2.3
mov dword [rsp + 0x38], 0x58
lea rcx, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov r9d, 0xfffffff1
mov dword [rsp + 0x28], r15d
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
lea r8d, [r9 + 0x17]
mov qword [rbp - 9], r15
mov dword [rsp + 0x20], 8
call fcn.14022c990
test eax, eax
jne 0x1401b3f7a
mov qword [rsp + 0xd0], r12
xor r8d, r8d
xor edx, edx
mov qword [rbp - 0x39], r14
xor ecx, ecx
mov dword [rbp - 0x31], 0x2052a
mov r12d, r15d
call fcn.14022e110
mov dword [rbp + 0x67], eax
nop dword [rax]
xor eax, eax
lea r9, [rbp - 0x59]
mov ecx, 0x20000
mov dword [rbp - 0x59], eax
sub esi, r12d
mov qword [rsp + 0x20], rax
cmp esi, ecx
mov rdx, r13
cmova esi, ecx
mov rcx, qword [rbp + 0x6f]
mov r8d, esi
call sym.ErrorReportClient.exe_SfReadFile
mov r13d, eax
mov dword [rbp - 0x41], esi
mov rax, qword [rbp - 0x61]
mov qword [rbp - 0x49], rax
test r13d, r13d
je 0x1401b3e94
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1401b3e28
mov rdx, qword [rcx]
call qword [rdx + 0x38]
mov edi, eax
cmp eax, 0x8004e00c
je 0x1401b3ecd
mov rcx, qword [rbx + 0x20]
mov edx, r12d
mov rax, qword [rcx]
call qword [rax + 0x30]
mov edi, eax
test eax, eax
js 0x1401b3ecd
mov rax, qword [rbp - 0x61]
mov ecx, dword [rbp + 0x67]
mov r8d, esi
add r12d, dword [rbp - 0x59]
mov rdx, rax
call fcn.14022e110
xor edx, edx
mov dword [rbp + 0x67], eax
lea rcx, [rbp - 0x49]
call fcn.14022b870
test eax, eax
jne 0x1401b3eb2
mov eax, dword [rbp - 0x31]
cmp eax, 0x2052a
jae 0x1401b3e94
mov rcx, qword [rbx + 8]
lea r9, [rbp - 0x69]
mov r8d, 0x2052a
mov qword [rsp + 0x20], 0
sub r8d, eax
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r13d, eax
test eax, eax
je 0x1401b3e94
mov eax, dword [rbp - 0x69]
add dword [rbx + 0x18], eax
add r15d, eax
mov dword [rbp - 0x31], 0x2052a
mov qword [rbp - 0x39], r14
mov esi, dword [rbp - 0x55]
cmp r12d, esi
jae 0x1401b3ecd
test r13d, r13d
je 0x1401b3f6e
test edi, edi
js 0x1401b3ecd
mov r13, qword [rbp - 0x61]
jmp 0x1401b3db0
cmp eax, 0xfffffffc
jne 0x1401b3ebe
mov edi, 0x8007000e
jmp 0x1401b3ecd
mov edi, 0x8004e03c
cmp eax, 0xfffffffb
je 0x1401b3ecd
mov edi, 0x8004e009
test r13d, r13d
je 0x1401b3f6e
nop word [rax + rax]
mov edx, 4
lea rcx, [rbp - 0x49]
call fcn.14022b870
mov esi, eax
cmp eax, 1
ja 0x1401b3f38
mov rcx, qword [rbx + 8]
lea r9, [rbp - 0x69]
mov r8d, 0x2052a
mov qword [rsp + 0x20], 0
sub r8d, dword [rbp - 0x31]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401b3f31
mov eax, dword [rbp - 0x69]
add dword [rbx + 0x18], eax
add r15d, eax
mov dword [rbp - 0x31], 0x2052a
mov qword [rbp - 0x39], r14
cmp esi, 1
jne 0x1401b3ee0
jmp 0x1401b3f3d
mov edi, 0x8004e009
lea rcx, [rbp - 0x49]
call fcn.14022c190
test edi, edi
js 0x1401b3f6e
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1401b3f5e
mov rax, qword [rcx]
mov edx, dword [rbp - 0x55]
call qword [rax + 0x30]
mov edi, eax
mov rax, qword [rbp + 0x77]
mov rcx, qword [rbp + 0x7f]
mov dword [rax], r15d
mov eax, dword [rbp + 0x67]
mov dword [rcx], eax
mov r13, qword [rbp - 0x61]
mov r12, qword [rsp + 0xd0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r14, qword [rsp + 0xc8]
mov eax, edi
add rsp, 0xd8
pop r15
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret