Function at 0x140009b68
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r12d, r12d
xor r13d, r13d
or qword [rbp - 8], 0xffffffffffffffff
mov esi, r9d
mov dword [rbp + 0x40], r12d
mov edi, r8d
mov r15, rcx
mov rcx, qword [0x1400b52f8]
lea rdx, [0x1400b52f8]
mov r14d, dword [rbp + 0x68]
cmp rcx, rdx
je 0x140009bbd
test byte [rcx + 0x44], 0x80
jne 0x140029f16
test r15, r15
je 0x14002a4e1
cmp dword [r15], 0x6060
jne 0x14002a4e1
lea rbx, [0x1400a9d58]
cmp esi, 1
jne 0x140029f3c
mov esi, 0x18
cmp r14d, esi
jb 0x140029faf
mov rsi, qword [rbp + 0x60]
test rsi, rsi
je 0x140029feb
or qword [rsi + 8], 0xffffffffffffffff
mov eax, 1
mov dword [rsi], eax
mov dword [rsi + 0x10], eax
mov rax, qword [0x1400b7258]
cmp qword [r15 + 8], rax
jne 0x14002a075
mov rcx, qword [0x1400b52f8]
lea rbx, [0x1400a9d58]
cmp rcx, rdx
je 0x140009c3b
test byte [rcx + 0x44], 0x80
jne 0x14002a024
mov rcx, qword [r15 + 0x10]
mov edx, edi
mov rax, qword [rax + 0x2a8]
call qword [0x1400978a8]
mov edi, eax
mov rax, qword [0x1400b52f8]
lea r14, [0x1400b52f8]
cmp rax, r14
je 0x140009c6d
test byte [rax + 0x44], 0x80
jne 0x14002a044
mov eax, edi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rcx + 0x38]
mov edx, 0x1b
mov dword [rsp + 0x28], r14d
mov r9d, edi
mov dword [rsp + 0x20], esi
call fcn.14006618c
lea rdx, [0x1400b52f8]
jmp 0x140009bbd
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 rcx, qword [0x1400b52f8]
lea r14, [0x1400b52f8]
cmp rcx, r14
je 0x14002a4d0
test byte [rcx + 0x44], 0x20
je 0x14002a49a
lea edx, [rdi - 0x5d]
jmp 0x140029f7a
mov edx, 0x1d
mov rcx, qword [rcx + 0x38]
mov r9d, edi
mov r8, rbx
mov dword [rsp + 0x20], esi
call fcn.140034794
jmp 0x140029fa3
mov rcx, qword [rcx + 0x38]
mov edx, 0x1e
mov r9d, edi
mov r8, rbx
call fcn.14002d778
mov rcx, qword [0x1400b52f8]
jmp 0x14002a49a
mov edi, 0x7a
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 rcx, qword [0x1400b52f8]
lea r14, [0x1400b52f8]
cmp rcx, r14
je 0x14002a4d0
test byte [rcx + 0x44], 0x20
je 0x14002a49a
jmp 0x140029f75
mov edi, 0x57
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b52f8]
lea r14, [0x1400b52f8]
cmp rcx, r14
je 0x14002a4d0
test byte [rcx + 0x44], 0x20
je 0x14002a49a
jmp 0x140029f8f
mov rcx, qword [rcx + 0x38]
mov edx, 0x20
mov r9d, edi
mov r8, rbx
call fcn.14002d778
mov rax, qword [0x1400b7258]
jmp 0x140009c3b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b52f8]
mov edx, 0x21
mov r9d, edi
mov dword [rsp + 0x20], eax
mov r8, rbx
mov rcx, qword [rcx + 0x38]
call fcn.140034794
nop
jmp 0x140009c6d
cmp qword [r15 + 0x38], 0xffffffffffffffff
jne 0x14002a0b8
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 [0x1400b52f8]
lea r14, [0x1400b52f8]
cmp rcx, r14
je 0x14002a527
test byte [rcx + 0x44], 0x20
je 0x14002a527
lea edx, [rbx + 0x1c]
jmp 0x14002a510
mov ecx, 0x40000
call sym.spoolsv.exe_PrvDllAllocSplMem
mov r12, rax
test rax, rax
jne 0x14002a121
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 rcx, qword [0x1400b52f8]
lea r14, [0x1400b52f8]
cmp rcx, r14
je 0x14002a4d0
test byte [rcx + 0x44], 0x20
je 0x14002a119
mov rcx, qword [rcx + 0x38]
lea edx, [rdi + 0x1b]
mov r9d, edi
mov dword [rsp + 0x20], 0x40000
mov r8, rbx
call fcn.140034794
mov rcx, qword [0x1400b52f8]
mov r12d, r13d
jmp 0x14002a49a
mov rcx, qword [0x1400b52f8]
lea r14, [0x1400b52f8]
cmp rcx, r14
je 0x14002a168
test byte [rcx + 0x44], 0x80
je 0x14002a168
mov rcx, qword [rcx + 0x38]
mov edx, 0x24
mov r8, rbx
call fcn.14002d74c
jmp 0x14002a161
mov rcx, qword [rcx + 0x38]
mov edx, 0x2c
mov r9d, r14d
mov r8, rbx
call fcn.14002d778
mov rcx, qword [0x1400b52f8]
mov eax, 0x40000
cmp edi, eax
mov r14d, eax
cmovb r14d, edi
test r14d, r14d
je 0x14002a3aa
mov rcx, qword [r15 + 0x38]
lea r9, [rbp - 0x10]
and qword [rsp + 0x20], r13
mov r8d, r14d
mov rdx, r12
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x14002a3a3
mov rcx, qword [0x1400b52f8]
lea rax, [0x1400b52f8]
cmp rcx, rax
je 0x14002a1ea
test byte [rcx + 0x44], 0x80
je 0x14002a1ea
mov eax, dword [rbp - 0x10]
mov edx, 0x25
mov rcx, qword [rcx + 0x38]
mov r9d, edi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
call fcn.14006618c
mov rcx, qword [0x1400b52f8]
lea rax, [0x1400b52f8]
mov r8d, dword [rbp - 0x10]
test r8d, r8d
je 0x14002a37a
cmp edi, r8d
jb 0x14002a349
cmp rcx, rax
je 0x14002a23a
test byte [rcx + 0x44], 0x80
je 0x14002a23a
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.14006618c
mov r8d, dword [rbp - 0x10]
lea rax, [0x1400b52f8]
mov rcx, qword [0x1400b52f8]
sub edi, r8d
cmp rcx, rax
je 0x14002a264
test byte [rcx + 0x44], 0x80
je 0x14002a264
mov rcx, qword [rcx + 0x38]
mov edx, 0x29
mov r8, rbx
call fcn.14002d74c
mov r8d, dword [rbp - 0x10]
mov rcx, qword [0x1400b52f8]
xor r14d, r14d
test r8d, r8d
je 0x14002a2dd
mov rax, qword [r15 + 8]
lea r9, [rbp - 0xc]
mov rcx, qword [r15 + 0x10]
sub r8d, r14d
mov edx, r14d
add rdx, r12
mov rax, qword [rax + 0xc8]
call qword [0x1400978a8]
test eax, eax
je 0x14002a2fc
mov rcx, qword [0x1400b52f8]
lea rax, [0x1400b52f8]
cmp rcx, rax
je 0x14002a2d0
test byte [rcx + 0x44], 0x80
je 0x14002a2d0
mov eax, dword [rbp - 0x10]
mov edx, 0x2b
mov r9d, dword [rbp - 0xc]
mov rcx, qword [rcx + 0x38]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
call fcn.14006618c
mov rcx, qword [0x1400b52f8]
add r14d, dword [rbp - 0xc]
mov r8d, dword [rbp - 0x10]
cmp r14d, r8d
jb 0x14002a26c
lea rax, [0x1400b52f8]
cmp rcx, rax
je 0x14002a168
test byte [rcx + 0x44], 0x80
je 0x14002a168
jmp 0x14002a14d
mov rcx, qword [0x1400b52f8]
lea rax, [0x1400b52f8]
cmp rcx, rax
je 0x14002a450
test byte [rcx + 0x44], 0x20
je 0x14002a450
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b52f8]
mov edx, 0x2a
mov r9d, eax
mov r8, rbx
mov rcx, qword [rcx + 0x38]
call fcn.14002d778
jmp 0x14002a449
cmp rcx, rax
je 0x14002a450
test byte [rcx + 0x44], 0x20
je 0x14002a450
mov rcx, qword [rcx + 0x38]
mov edx, 0x28
mov dword [rsp + 0x20], r8d
mov r9d, edi
mov r8, rbx
call fcn.140034794
jmp 0x14002a449
cmp rcx, rax
je 0x14002a450
test byte [rcx + 0x44], 0x20
je 0x14002a450
mov rcx, qword [rcx + 0x38]
mov edx, 0x26
mov r8, rbx
call fcn.14002d74c
jmp 0x14002a449
mov rcx, qword [0x1400b52f8]
lea rax, [0x1400b52f8]
cmp rcx, rax
je 0x14002a3cd
test byte [rcx + 0x44], 0x80
je 0x14002a3cd
mov rcx, qword [rcx + 0x38]
mov edx, 0x2d
mov r8, rbx
call fcn.14002d74c
mov rcx, qword [0x1400b7220]
mov r8, r12
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
xor r12d, r12d
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x14002a4d8
mov r8, qword [rbp + 0x48]
lea edi, [r12 + 2]
mov rdx, qword [r15 + 0x38]
lea r14d, [r12 + 1]
mov dword [rsp + 0x30], edi
lea r9, [rbp - 8]
mov dword [rsp + 0x28], r14d
mov rcx, rax
and dword [rsp + 0x20], r12d
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
nop dword [rax + rax]
test eax, eax
je 0x14002a46d
mov rax, qword [rbp - 8]
mov qword [rsi + 8], rax
mov dword [rsi], r14d
mov dword [rsi + 0x10], edi
mov dword [rbp + 0x40], r14d
mov rcx, qword [0x1400b52f8]
test r12, r12
je 0x14002a474
mov rcx, qword [0x1400b7220]
mov r8, r12
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [0x1400b52f8]
test r13, r13
je 0x14002a48f
mov rcx, r13
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x1400b52f8]
mov r12d, dword [rbp + 0x40]
lea r14, [0x1400b52f8]
cmp rcx, r14
je 0x14002a4d0
test byte [rcx + 0x44], 0x80
je 0x14002a4d0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b52f8]
mov edx, 0x2e
mov r9d, r12d
mov dword [rsp + 0x20], eax
mov r8, rbx
mov rcx, qword [rcx + 0x38]
call fcn.140034794
mov eax, dword [rbp + 0x40]
jmp 0x140009c6f
mov rcx, qword [0x1400b52f8]
jmp 0x14002a493
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 [0x1400b52f8]
lea rax, [0x1400b52f8]
cmp rcx, rax
je 0x14002a527
test byte [rcx + 0x44], 0x20
je 0x14002a527
lea edx, [rbx + 0x16]
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400a9d58]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
call fcn.140034794
xor eax, eax
jmp 0x140009c6f