Function at 0x1400623c8
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 0x14006242e
test byte [rcx + 0x44], 0x80
je 0x14006242e
mov rcx, qword [rcx + 0x38]
mov edx, 0x1b
mov dword [rax - 0x60], r14d
mov dword [rax - 0x68], r9d
mov r9d, r8d
call fcn.140071854
test r15, r15
je 0x140062a0f
cmp dword [r15], 0x6060
jne 0x140062a0f
lea rbx, [0x1400bc0c0]
cmp esi, 1
je 0x140062498
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 0x140062a0a
test byte [rax + 0x44], 0x20
je 0x1400629d4
lea edx, [rdi - 0x5d]
mov dword [rsp + 0x20], esi
mov rcx, qword [rax + 0x38]
mov r9d, edi
mov r8, rbx
call fcn.14001e6fc
jmp 0x1400629cd
mov esi, 0x18
cmp r14d, esi
jae 0x1400624d8
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 0x140062a0a
test byte [rax + 0x44], 0x20
je 0x1400629d4
lea edx, [rsi + 5]
jmp 0x140062480
mov rsi, qword [rbp + 0x60]
test rsi, rsi
jne 0x140062523
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 0x140062a0a
test byte [rax + 0x44], 0x20
je 0x1400629d4
mov rcx, qword [rax + 0x38]
lea edx, [rsi + 0x1e]
mov r9d, edi
mov r8, rbx
call fcn.140016318
jmp 0x1400629cd
or qword [rsi + 8], 0xffffffffffffffff
mov eax, 1
mov dword [rsi], eax
mov dword [rsi + 0x10], eax
mov rax, qword [0x1400c9068]
cmp qword [r15 + 8], rax
jne 0x1400625da
mov rcx, qword [0x1400c72a8]
lea rbx, [0x1400bc0c0]
cmp rcx, r13
je 0x140062577
test byte [rcx + 0x44], 0x80
je 0x140062577
mov rcx, qword [rcx + 0x38]
mov edx, 0x20
mov r9d, edi
mov r8, rbx
call fcn.140016318
mov rax, qword [0x1400c9068]
movabs r10, 0x96f5aeea5c50d270
mov rcx, qword [r15 + 0x10]
mov edx, edi
mov rax, qword [rax + 0x2a8]
call qword [0x1400a8400]
mov edi, eax
mov rax, qword [0x1400c72a8]
cmp rax, r13
je 0x1400625d3
test byte [rax + 0x44], 0x80
je 0x1400625d3
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.14001e6fc
mov eax, edi
jmp 0x140062a50
cmp qword [r15 + 0x38], 0xffffffffffffffff
jne 0x140062616
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 0x140062a4e
test byte [rcx + 0x44], 0x20
je 0x140062a4e
lea edx, [rbx + 0x1c]
jmp 0x140062a37
mov ecx, 0x40000
call sym.spoolsv.exe_PrvDllAllocSplMem
xor r9d, r9d
mov r13, rax
test rax, rax
jne 0x14006266d
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 0x140062a0a
test byte [rax + 0x44], 0x20
je 0x1400629d4
lea edx, [rdi + 0x1b]
mov dword [rsp + 0x20], 0x40000
jmp 0x140062484
mov rcx, qword [0x1400c72a8]
lea rdx, [0x1400c72a8]
cmp rcx, rdx
je 0x1400626a1
test byte [rcx + 0x44], 0x80
je 0x1400626a1
mov rcx, qword [rcx + 0x38]
mov edx, 0x24
mov r8, rbx
call fcn.1400162ec
mov rcx, qword [0x1400c72a8]
xor r9d, r9d
cmp edi, 0x40000
jae 0x1400626b6
mov r14d, edi
test edi, edi
je 0x14006291b
jmp 0x1400626bc
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 0x140062914
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x14006272c
test byte [rcx + 0x44], 0x80
je 0x14006272c
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.140071854
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
xor r9d, r9d
mov r8d, dword [rbp + 0x40]
test r8d, r8d
je 0x1400628db
cmp edi, r8d
jb 0x1400628b5
cmp rcx, rax
je 0x14006277f
test byte [rcx + 0x44], 0x80
je 0x14006277f
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.140071854
mov r8d, dword [rbp + 0x40]
lea rax, [0x1400c72a8]
mov rcx, qword [0x1400c72a8]
xor r9d, r9d
sub edi, r8d
cmp rcx, rax
je 0x1400627ac
test byte [rcx + 0x44], 0x80
je 0x1400627ac
mov rcx, qword [rcx + 0x38]
mov edx, 0x29
mov r8, rbx
call fcn.1400162ec
mov r8d, dword [rbp + 0x40]
xor r9d, r9d
mov rcx, qword [0x1400c72a8]
mov r14d, r9d
test r8d, r8d
je 0x140062840
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 [0x1400a8400]
xor r9d, r9d
test eax, eax
je 0x140062873
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x14006282f
test byte [rcx + 0x44], 0x80
je 0x14006282f
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.140071854
mov rcx, qword [0x1400c72a8]
xor r9d, r9d
add r14d, dword [rbp - 0x10]
mov r8d, dword [rbp + 0x40]
cmp r14d, r8d
jb 0x1400627b8
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x1400626a1
test byte [rcx + 0x44], 0x80
je 0x1400626a1
mov rcx, qword [rcx + 0x38]
mov edx, 0x2c
mov r9d, r14d
mov r8, rbx
call fcn.140016318
jmp 0x140062697
mov rax, qword [0x1400c72a8]
lea rdx, [0x1400c72a8]
cmp rax, rdx
je 0x1400628f7
test byte [rax + 0x44], 0x20
je 0x1400628f7
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.140016318
jmp 0x1400628f7
cmp rcx, rax
je 0x1400628f7
test byte [rcx + 0x44], 0x20
je 0x1400628f7
mov rcx, qword [rcx + 0x38]
mov edx, 0x28
mov dword [rsp + 0x20], r8d
mov r9d, edi
mov r8, rbx
call fcn.14001e6fc
jmp 0x1400628f7
cmp rcx, rax
je 0x1400628f7
test byte [rcx + 0x44], 0x20
je 0x1400628f7
mov rcx, qword [rcx + 0x38]
mov edx, 0x26
mov r8, rbx
call fcn.1400162ec
mov rcx, qword [0x1400c9078]
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 0x1400629c6
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x14006293e
test byte [rcx + 0x44], 0x80
je 0x14006293e
mov rcx, qword [rcx + 0x38]
mov edx, 0x2d
mov r8, rbx
call fcn.1400162ec
mov rcx, qword [0x1400c9078]
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 0x1400629c6
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 0x1400629b7
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 0x140062a0a
test byte [rax + 0x44], 0x80
je 0x140062a0a
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.14001e6fc
mov eax, r12d
jmp 0x140062a50
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 0x140062a4e
test byte [rcx + 0x44], 0x20
je 0x140062a4e
lea edx, [rbx + 0x16]
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400bc0c0]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
call fcn.14001e6fc
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