Function at 0x140062a48
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 [0x1400c72a8]
lea r13, [0x1400c72a8]
mov r14d, dword [rbp + 0x68]
cmp rcx, r13
je 0x140062aae
test byte [rcx + 0x44], 0x80
je 0x140062aae
mov rcx, qword [rcx + 0x38]
mov edx, 0x1b
mov dword [rax - 0x60], r14d
mov dword [rax - 0x68], r9d
mov r9d, r8d
call fcn.140071ed4
test r15, r15
je 0x14006308f
cmp dword [r15], 0x6060
jne 0x14006308f
lea rbx, [0x1400bc1e0]
cmp esi, 1
je 0x140062b18
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 [0x1400c72a8]
cmp rax, r13
je 0x14006308a
test byte [rax + 0x44], 0x20
je 0x140063054
lea edx, [rdi - 0x5d]
mov dword [rsp + 0x20], esi
mov rcx, qword [rax + 0x38]
mov r9d, edi
mov r8, rbx
call fcn.1400245dc
jmp 0x14006304d
mov esi, 0x18
cmp r14d, esi
jae 0x140062b58
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 [0x1400c72a8]
cmp rax, r13
je 0x14006308a
test byte [rax + 0x44], 0x20
je 0x140063054
lea edx, [rsi + 5]
jmp 0x140062b00
mov rsi, qword [rbp + 0x60]
test rsi, rsi
jne 0x140062ba3
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 [0x1400c72a8]
cmp rax, r13
je 0x14006308a
test byte [rax + 0x44], 0x20
je 0x140063054
mov rcx, qword [rax + 0x38]
lea edx, [rsi + 0x1e]
mov r9d, edi
mov r8, rbx
call fcn.14001c1f8
jmp 0x14006304d
or qword [rsi + 8], 0xffffffffffffffff
mov eax, 1
mov dword [rsi], eax
mov dword [rsi + 0x10], eax
mov rax, qword [0x1400c9120]
cmp qword [r15 + 8], rax
jne 0x140062c5a
mov rcx, qword [0x1400c72a8]
lea rbx, [0x1400bc1e0]
cmp rcx, r13
je 0x140062bf7
test byte [rcx + 0x44], 0x80
je 0x140062bf7
mov rcx, qword [rcx + 0x38]
mov edx, 0x20
mov r9d, edi
mov r8, rbx
call fcn.14001c1f8
mov rax, qword [0x1400c9120]
movabs r10, 0x96f5aeea5c50d270
mov rcx, qword [r15 + 0x10]
mov edx, edi
mov rax, qword [rax + 0x2a8]
call qword [0x1400a83f0]
mov edi, eax
mov rax, qword [0x1400c72a8]
cmp rax, r13
je 0x140062c53
test byte [rax + 0x44], 0x80
je 0x140062c53
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
mov edx, 0x21
mov r9d, edi
mov dword [rsp + 0x20], eax
mov r8, rbx
mov rcx, qword [rcx + 0x38]
call fcn.1400245dc
mov eax, edi
jmp 0x1400630d0
cmp qword [r15 + 0x38], 0xffffffffffffffff
jne 0x140062c96
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 [0x1400c72a8]
cmp rcx, r13
je 0x1400630ce
test byte [rcx + 0x44], 0x20
je 0x1400630ce
lea edx, [rbx + 0x1c]
jmp 0x1400630b7
mov ecx, 0x40000
call sym.spoolsv.exe_PrvDllAllocSplMem
xor r9d, r9d
mov r13, rax
test rax, rax
jne 0x140062ced
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 [0x1400c72a8]
lea r13, [0x1400c72a8]
cmp rax, r13
je 0x14006308a
test byte [rax + 0x44], 0x20
je 0x140063054
lea edx, [rdi + 0x1b]
mov dword [rsp + 0x20], 0x40000
jmp 0x140062b04
mov rcx, qword [0x1400c72a8]
lea rdx, [0x1400c72a8]
cmp rcx, rdx
je 0x140062d21
test byte [rcx + 0x44], 0x80
je 0x140062d21
mov rcx, qword [rcx + 0x38]
mov edx, 0x24
mov r8, rbx
call fcn.14001c1cc
mov rcx, qword [0x1400c72a8]
xor r9d, r9d
cmp edi, 0x40000
jae 0x140062d36
mov r14d, edi
test edi, edi
je 0x140062f9b
jmp 0x140062d3c
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 0x140062f94
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140062dac
test byte [rcx + 0x44], 0x80
je 0x140062dac
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.140071ed4
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
xor r9d, r9d
mov r8d, dword [rbp + 0x40]
test r8d, r8d
je 0x140062f5b
cmp edi, r8d
jb 0x140062f35
cmp rcx, rax
je 0x140062dff
test byte [rcx + 0x44], 0x80
je 0x140062dff
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.140071ed4
mov r8d, dword [rbp + 0x40]
lea rax, [0x1400c72a8]
mov rcx, qword [0x1400c72a8]
xor r9d, r9d
sub edi, r8d
cmp rcx, rax
je 0x140062e2c
test byte [rcx + 0x44], 0x80
je 0x140062e2c
mov rcx, qword [rcx + 0x38]
mov edx, 0x29
mov r8, rbx
call fcn.14001c1cc
mov r8d, dword [rbp + 0x40]
xor r9d, r9d
mov rcx, qword [0x1400c72a8]
mov r14d, r9d
test r8d, r8d
je 0x140062ec0
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 [0x1400a83f0]
xor r9d, r9d
test eax, eax
je 0x140062ef3
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140062eaf
test byte [rcx + 0x44], 0x80
je 0x140062eaf
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.140071ed4
mov rcx, qword [0x1400c72a8]
xor r9d, r9d
add r14d, dword [rbp - 0x10]
mov r8d, dword [rbp + 0x40]
cmp r14d, r8d
jb 0x140062e38
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140062d21
test byte [rcx + 0x44], 0x80
je 0x140062d21
mov rcx, qword [rcx + 0x38]
mov edx, 0x2c
mov r9d, r14d
mov r8, rbx
call fcn.14001c1f8
jmp 0x140062d17
mov rax, qword [0x1400c72a8]
lea rdx, [0x1400c72a8]
cmp rax, rdx
je 0x140062f77
test byte [rax + 0x44], 0x20
je 0x140062f77
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
mov edx, 0x2a
mov r9d, eax
mov r8, rbx
mov rcx, qword [rcx + 0x38]
call fcn.14001c1f8
jmp 0x140062f77
cmp rcx, rax
je 0x140062f77
test byte [rcx + 0x44], 0x20
je 0x140062f77
mov rcx, qword [rcx + 0x38]
mov edx, 0x28
mov dword [rsp + 0x20], r8d
mov r9d, edi
mov r8, rbx
call fcn.1400245dc
jmp 0x140062f77
cmp rcx, rax
je 0x140062f77
test byte [rcx + 0x44], 0x20
je 0x140062f77
mov rcx, qword [rcx + 0x38]
mov edx, 0x26
mov r8, rbx
call fcn.14001c1cc
mov rcx, qword [0x1400c9130]
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 0x140063046
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140062fbe
test byte [rcx + 0x44], 0x80
je 0x140062fbe
mov rcx, qword [rcx + 0x38]
mov edx, 0x2d
mov r8, rbx
call fcn.14001c1cc
mov rcx, qword [0x1400c9130]
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 0x140063046
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 0x140063037
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, [0x1400c72a8]
mov rax, qword [0x1400c72a8]
cmp rax, r13
je 0x14006308a
test byte [rax + 0x44], 0x80
je 0x14006308a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
mov edx, 0x2e
mov r9d, r12d
mov dword [rsp + 0x20], eax
mov r8, rbx
mov rcx, qword [rcx + 0x38]
call fcn.1400245dc
mov eax, r12d
jmp 0x1400630d0
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 [0x1400c72a8]
cmp rcx, r13
je 0x1400630ce
test byte [rcx + 0x44], 0x20
je 0x1400630ce
lea edx, [rbx + 0x16]
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400bc1e0]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
call fcn.1400245dc
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