Function at 0x140063620
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor edx, edx
mov esi, r9d
or qword [rbp - 8], 0xffffffffffffffff
mov r12d, edx
mov edi, r8d
mov r15, rcx
mov rcx, qword [0x1400c82a8]
lea r13, [0x1400c82a8]
mov r14d, dword [rbp + 0x68]
cmp rcx, r13
je 0x140063686
test byte [rcx + 0x44], 0x80
je 0x140063686
mov rcx, qword [rcx + 0x38]
mov edx, 0x1b
mov dword [rax - 0x60], r14d
mov dword [rax - 0x68], r9d
mov r9d, r8d
call fcn.140072aa4
test r15, r15
je 0x140063c67
cmp dword [r15], 0x6060
jne 0x140063c67
lea rbx, [0x1400bd1d0]
cmp esi, 1
je 0x1400636f0
mov edi, 0x7c
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x1400c82a8]
cmp rax, r13
je 0x140063c62
test byte [rax + 0x44], 0x20
je 0x140063c2c
lea edx, [rdi - 0x5d]
mov dword [rsp + 0x20], esi
mov rcx, qword [rax + 0x38]
mov r9d, edi
mov r8, rbx
call fcn.14001f06c
jmp 0x140063c25
mov esi, 0x18
cmp r14d, esi
jae 0x140063730
lea edi, [rsi + 0x62]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [rbp + 0x70]
mov dword [rax], esi
mov rax, qword [0x1400c82a8]
cmp rax, r13
je 0x140063c62
test byte [rax + 0x44], 0x20
je 0x140063c2c
lea edx, [rsi + 5]
jmp 0x1400636d8
mov rsi, qword [rbp + 0x60]
test rsi, rsi
jne 0x14006377b
lea edi, [rsi + 0x57]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x1400c82a8]
cmp rax, r13
je 0x140063c62
test byte [rax + 0x44], 0x20
je 0x140063c2c
mov rcx, qword [rax + 0x38]
lea edx, [rsi + 0x1e]
mov r9d, edi
mov r8, rbx
call fcn.140016c88
jmp 0x140063c25
or qword [rsi + 8], 0xffffffffffffffff
mov eax, 1
mov dword [rsi], eax
mov dword [rsi + 0x10], eax
mov rax, qword [0x1400ca100]
cmp qword [r15 + 8], rax
jne 0x140063832
mov rcx, qword [0x1400c82a8]
lea rbx, [0x1400bd1d0]
cmp rcx, r13
je 0x1400637cf
test byte [rcx + 0x44], 0x80
je 0x1400637cf
mov rcx, qword [rcx + 0x38]
mov edx, 0x20
mov r9d, edi
mov r8, rbx
call fcn.140016c88
mov rax, qword [0x1400ca100]
movabs r10, 0x96f5aeea5c50d270
mov rcx, qword [r15 + 0x10]
mov edx, edi
mov rax, qword [rax + 0x2a8]
call qword [0x1400a9400]
mov edi, eax
mov rax, qword [0x1400c82a8]
cmp rax, r13
je 0x14006382b
test byte [rax + 0x44], 0x80
je 0x14006382b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
mov edx, 0x21
mov r9d, edi
mov dword [rsp + 0x20], eax
mov r8, rbx
mov rcx, qword [rcx + 0x38]
call fcn.14001f06c
mov eax, edi
jmp 0x140063ca8
cmp qword [r15 + 0x38], 0xffffffffffffffff
jne 0x14006386e
mov ebx, 6
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
cmp rcx, r13
je 0x140063ca6
test byte [rcx + 0x44], 0x20
je 0x140063ca6
lea edx, [rbx + 0x1c]
jmp 0x140063c8f
mov ecx, 0x40000
call sym.spoolsv.exe_PrvDllAllocSplMem
xor r9d, r9d
mov r13, rax
test rax, rax
jne 0x1400638c5
lea edi, [rax + 8]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x1400c82a8]
lea r13, [0x1400c82a8]
cmp rax, r13
je 0x140063c62
test byte [rax + 0x44], 0x20
je 0x140063c2c
lea edx, [rdi + 0x1b]
mov dword [rsp + 0x20], 0x40000
jmp 0x1400636dc
mov rcx, qword [0x1400c82a8]
lea rdx, [0x1400c82a8]
cmp rcx, rdx
je 0x1400638f9
test byte [rcx + 0x44], 0x80
je 0x1400638f9
mov rcx, qword [rcx + 0x38]
mov edx, 0x24
mov r8, rbx
call fcn.140016c5c
mov rcx, qword [0x1400c82a8]
xor r9d, r9d
cmp edi, 0x40000
jae 0x14006390e
mov r14d, edi
test edi, edi
je 0x140063b73
jmp 0x140063914
mov r14d, 0x40000
mov rcx, qword [r15 + 0x38]
mov r8d, r14d
mov qword [rsp + 0x20], r9
mov rdx, r13
lea r9, [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
xor r9d, r9d
test eax, eax
je 0x140063b6c
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x140063984
test byte [rcx + 0x44], 0x80
je 0x140063984
mov eax, dword [rbp + 0x40]
lea edx, [r9 + 0x25]
mov rcx, qword [rcx + 0x38]
mov r9d, edi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
call fcn.140072aa4
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
xor r9d, r9d
mov r8d, dword [rbp + 0x40]
test r8d, r8d
je 0x140063b33
cmp edi, r8d
jb 0x140063b0d
cmp rcx, rax
je 0x1400639d7
test byte [rcx + 0x44], 0x80
je 0x1400639d7
mov rcx, qword [rcx + 0x38]
mov r9d, edi
mov dword [rsp + 0x28], r8d
sub r9d, r8d
mov edx, 0x27
mov dword [rsp + 0x20], edi
call fcn.140072aa4
mov r8d, dword [rbp + 0x40]
lea rax, [0x1400c82a8]
mov rcx, qword [0x1400c82a8]
xor r9d, r9d
sub edi, r8d
cmp rcx, rax
je 0x140063a04
test byte [rcx + 0x44], 0x80
je 0x140063a04
mov rcx, qword [rcx + 0x38]
mov edx, 0x29
mov r8, rbx
call fcn.140016c5c
mov r8d, dword [rbp + 0x40]
xor r9d, r9d
mov rcx, qword [0x1400c82a8]
mov r14d, r9d
test r8d, r8d
je 0x140063a98
mov rax, qword [r15 + 8]
sub r8d, r14d
mov edx, r14d
add rdx, r13
movabs r10, 0xce998fb610d75970
mov rcx, qword [r15 + 0x10]
lea r9, [rbp - 0x10]
mov rax, qword [rax + 0xc8]
call qword [0x1400a9400]
xor r9d, r9d
test eax, eax
je 0x140063acb
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x140063a87
test byte [rcx + 0x44], 0x80
je 0x140063a87
mov eax, dword [rbp + 0x40]
lea edx, [r9 + 0x2b]
mov r9d, dword [rbp - 0x10]
mov rcx, qword [rcx + 0x38]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
call fcn.140072aa4
mov rcx, qword [0x1400c82a8]
xor r9d, r9d
add r14d, dword [rbp - 0x10]
mov r8d, dword [rbp + 0x40]
cmp r14d, r8d
jb 0x140063a10
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x1400638f9
test byte [rcx + 0x44], 0x80
je 0x1400638f9
mov rcx, qword [rcx + 0x38]
mov edx, 0x2c
mov r9d, r14d
mov r8, rbx
call fcn.140016c88
jmp 0x1400638ef
mov rax, qword [0x1400c82a8]
lea rdx, [0x1400c82a8]
cmp rax, rdx
je 0x140063b4f
test byte [rax + 0x44], 0x20
je 0x140063b4f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
mov edx, 0x2a
mov r9d, eax
mov r8, rbx
mov rcx, qword [rcx + 0x38]
call fcn.140016c88
jmp 0x140063b4f
cmp rcx, rax
je 0x140063b4f
test byte [rcx + 0x44], 0x20
je 0x140063b4f
mov rcx, qword [rcx + 0x38]
mov edx, 0x28
mov dword [rsp + 0x20], r8d
mov r9d, edi
mov r8, rbx
call fcn.14001f06c
jmp 0x140063b4f
cmp rcx, rax
je 0x140063b4f
test byte [rcx + 0x44], 0x20
je 0x140063b4f
mov rcx, qword [rcx + 0x38]
mov edx, 0x26
mov r8, rbx
call fcn.140016c5c
mov rcx, qword [0x1400ca110]
mov r8, r13
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140063c1e
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x140063b96
test byte [rcx + 0x44], 0x80
je 0x140063b96
mov rcx, qword [rcx + 0x38]
mov edx, 0x2d
mov r8, rbx
call fcn.140016c5c
mov rcx, qword [0x1400ca110]
mov r8, r13
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
xor r14d, r14d
mov rdi, rax
test rax, rax
je 0x140063c1e
mov r8, qword [rbp + 0x48]
lea r13d, [r14 + 2]
mov rdx, qword [r15 + 0x38]
lea r9, [rbp - 8]
mov dword [rsp + 0x30], r13d
mov rcx, rax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r14d
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
nop dword [rax + rax]
test eax, eax
je 0x140063c0f
mov rax, qword [rbp - 8]
lea ecx, [r14 + 1]
mov dword [rsi], ecx
mov r12d, ecx
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], r13d
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
lea r13, [0x1400c82a8]
mov rax, qword [0x1400c82a8]
cmp rax, r13
je 0x140063c62
test byte [rax + 0x44], 0x80
je 0x140063c62
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
mov edx, 0x2e
mov r9d, r12d
mov dword [rsp + 0x20], eax
mov r8, rbx
mov rcx, qword [rcx + 0x38]
call fcn.14001f06c
mov eax, r12d
jmp 0x140063ca8
mov ebx, 6
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
cmp rcx, r13
je 0x140063ca6
test byte [rcx + 0x44], 0x20
je 0x140063ca6
lea edx, [rbx + 0x16]
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400bd1d0]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
call fcn.14001f06c
xor eax, eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret