Function at 0x1400064b8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r13d, r13d
mov ebx, r9d
and qword [rbp - 0x20], r13
mov r15d, r8d
or qword [rbp - 0x10], 0xffffffffffffffff
mov rdi, rcx
mov dword [rbp - 0x2c], r13d
mov rcx, qword [0x1400a92b0]
lea rdx, [0x1400a92b0]
mov r14d, dword [rbp + 0x68]
cmp rcx, rdx
je 0x140006513
test byte [rcx + 0x1c], 0x80
jne 0x14002eee8
test rdi, rdi
je 0x14002f45c
cmp dword [rdi], 0x6060
jne 0x14002f45c
lea rsi, [0x14009cef8]
cmp ebx, 1
jne 0x14002ef0e
mov ebx, 0x18
cmp r14d, ebx
jb 0x14002ef90
mov r12, qword [rbp + 0x60]
test r12, r12
je 0x14002efcb
or qword [r12 + 8], 0xffffffffffffffff
lea eax, [rbx - 0x17]
mov rbx, qword [0x1400aad38]
mov dword [r12], eax
mov dword [r12 + 0x10], eax
cmp qword [rdi + 8], rbx
jne 0x14002f049
mov rcx, qword [0x1400a92b0]
lea rsi, [0x14009cef8]
cmp rcx, rdx
je 0x140006593
test byte [rcx + 0x1c], 0x80
jne 0x14002effe
mov rbx, qword [rbx + 0x2a8]
mov rcx, rbx
call qword [0x1400719c8]
mov rcx, qword [rdi + 0x10]
mov edx, r15d
call rbx
mov ebx, eax
mov rax, qword [0x1400a92b0]
lea rdi, [0x1400a92b0]
cmp rax, rdi
je 0x1400065cb
test byte [rax + 0x1c], 0x80
jne 0x14002f01e
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rcx + 0x10]
mov edx, 0x1b
mov dword [rsp + 0x28], r14d
mov r9d, r8d
mov dword [rsp + 0x20], ebx
call fcn.1400609f4
lea rdx, [0x1400a92b0]
jmp 0x140006513
mov r14d, 0x7c
mov ecx, r14d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov rcx, qword [0x1400a92b0]
lea rdi, [0x1400a92b0]
cmp rcx, rdi
je 0x14002f379
test byte [rcx + 0x1c], 0x20
je 0x14002f349
lea edx, [r14 - 0x5d]
jmp 0x14002ef49
mov edx, 0x1d
mov dword [rsp + 0x20], ebx
mov r9d, r14d
jmp 0x14002ef62
mov edx, 0x23
mov dword [rsp + 0x20], 0x40000
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
mov r8, rsi
call fcn.140057a4c
jmp 0x14002ef84
mov rcx, qword [rcx + 0x10]
mov edx, 0x1e
mov r9d, ebx
mov r8, rsi
call fcn.14003d1e0
mov rcx, qword [0x1400a92b0]
jmp 0x14002f349
mov r14d, 0x7a
mov ecx, r14d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov rax, qword [rbp + 0x70]
mov dword [rax], ebx
mov rcx, qword [0x1400a92b0]
lea rdi, [0x1400a92b0]
cmp rcx, rdi
je 0x14002f379
test byte [rcx + 0x1c], 0x20
je 0x14002f349
jmp 0x14002ef44
mov ebx, 0x57
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov rcx, qword [0x1400a92b0]
lea rdi, [0x1400a92b0]
cmp rcx, rdi
je 0x14002f379
test byte [rcx + 0x1c], 0x20
je 0x14002f349
jmp 0x14002ef70
mov rcx, qword [rcx + 0x10]
mov edx, 0x20
mov r9d, r15d
mov r8, rsi
call fcn.14003d1e0
mov rbx, qword [0x1400aad38]
jmp 0x140006593
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x1400a92b0]
mov edx, 0x21
mov r9d, ebx
mov dword [rsp + 0x20], eax
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.140057a4c
nop
jmp 0x1400065cb
cmp qword [rdi + 0x38], 0xffffffffffffffff
jne 0x14002f086
mov ebx, 6
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov rcx, qword [0x1400a92b0]
lea rdi, [0x1400a92b0]
cmp rcx, rdi
je 0x14002f49c
test byte [rcx + 0x1c], 0x20
je 0x14002f49c
lea edx, [rbx + 0x1c]
jmp 0x14002f485
mov ecx, 0x40000
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rbp - 0x18], rax
mov r14, rax
test rax, rax
jne 0x14002f0cd
lea ebx, [rax + 8]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov rcx, qword [0x1400a92b0]
lea rdi, [0x1400a92b0]
cmp rcx, rdi
je 0x14002f379
test byte [rcx + 0x1c], 0x20
je 0x14002f349
jmp 0x14002ef52
mov rcx, qword [0x1400a92b0]
lea r13, [0x1400a92b0]
cmp rcx, r13
je 0x14002f122
test byte [rcx + 0x1c], 0x80
je 0x14002f122
mov rcx, qword [rcx + 0x10]
mov edx, 0x24
mov r8, rsi
call fcn.14003d1bc
mov rcx, qword [0x1400a92b0]
jmp 0x14002f122
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c
mov r9d, r13d
mov r8, rsi
call fcn.14003d1e0
mov rcx, qword [0x1400a92b0]
lea r13, [0x1400a92b0]
mov ebx, 0x40000
cmp r15d, ebx
cmovb ebx, r15d
test ebx, ebx
je 0x14002f3c9
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
and qword [rsp + 0x20], 0
mov r8d, ebx
mov rdx, r14
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
je 0x14002f3c2
mov rcx, qword [0x1400a92b0]
cmp rcx, r13
je 0x14002f18d
test byte [rcx + 0x1c], 0x80
je 0x14002f18d
mov eax, dword [rbp - 0x30]
mov edx, 0x25
mov rcx, qword [rcx + 0x10]
mov r9d, r15d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call fcn.1400609f4
mov rcx, qword [0x1400a92b0]
mov r14d, dword [rbp - 0x30]
test r14d, r14d
je 0x14002f3aa
cmp r15d, r14d
jb 0x14002f381
cmp rcx, r13
je 0x14002f1d7
test byte [rcx + 0x1c], 0x80
je 0x14002f1d7
mov rcx, qword [rcx + 0x10]
mov r9d, r15d
sub r9d, r14d
mov dword [rsp + 0x28], r14d
mov edx, 0x27
mov dword [rsp + 0x20], r15d
call fcn.1400609f4
mov rcx, qword [0x1400a92b0]
mov r14d, dword [rbp - 0x30]
sub r15d, r14d
cmp rcx, r13
je 0x14002f201
test byte [rcx + 0x1c], 0x80
je 0x14002f201
mov rcx, qword [rcx + 0x10]
mov edx, 0x29
mov r8, rsi
call fcn.14003d1bc
mov rcx, qword [0x1400a92b0]
mov r14d, dword [rbp - 0x30]
xor r13d, r13d
test r14d, r14d
je 0x14002f296
mov rax, qword [rdi + 8]
sub r14d, r13d
mov ebx, r13d
add rbx, qword [rbp - 0x18]
mov rdi, qword [rax + 0xc8]
mov rcx, rdi
call qword [0x1400719c8]
mov rcx, qword [rbp + 0x40]
lea r9, [rbp - 0x28]
mov r8d, r14d
mov rdx, rbx
mov rcx, qword [rcx + 0x10]
call rdi
test eax, eax
je 0x14002f2b9
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x14002f281
test byte [rcx + 0x1c], 0x80
je 0x14002f281
mov eax, dword [rbp - 0x30]
mov edx, 0x2b
mov r9d, dword [rbp - 0x28]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r13d
call fcn.1400609f4
mov rcx, qword [0x1400a92b0]
add r13d, dword [rbp - 0x28]
mov r14d, dword [rbp - 0x30]
mov rdi, qword [rbp + 0x40]
cmp r13d, r14d
jb 0x14002f20d
mov r14, qword [rbp - 0x18]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x14002f11b
test byte [rcx + 0x1c], 0x80
je 0x14002f11b
jmp 0x14002f100
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x14002f30d
test byte [rcx + 0x1c], 0x20
je 0x14002f30d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x1400a92b0]
mov edx, 0x2a
mov r9d, eax
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.14003d1e0
jmp 0x14002f306
mov rcx, qword [rcx + 0x10]
mov edx, 0x26
mov r8, rsi
call fcn.14003d1bc
mov rcx, qword [0x1400a92b0]
mov rbx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x14002f329
mov rcx, rax
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rcx, qword [0x1400a92b0]
test rbx, rbx
je 0x14002f33e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [0x1400a92b0]
mov r13d, dword [rbp - 0x2c]
lea rdi, [0x1400a92b0]
cmp rcx, rdi
je 0x14002f379
test byte [rcx + 0x1c], 0x80
je 0x14002f379
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x1400a92b0]
mov edx, 0x2e
mov r9d, r13d
mov dword [rsp + 0x20], eax
mov r8, rsi
mov rcx, qword [rcx + 0x10]
call fcn.140057a4c
mov eax, r13d
jmp 0x1400065cd
cmp rcx, r13
je 0x14002f30d
test byte [rcx + 0x1c], 0x20
je 0x14002f30d
mov rcx, qword [rcx + 0x10]
mov edx, 0x28
mov r9d, r15d
mov dword [rsp + 0x20], r14d
mov r8, rsi
call fcn.140057a4c
jmp 0x14002f306
cmp rcx, r13
je 0x14002f30d
test byte [rcx + 0x1c], 0x20
je 0x14002f30d
jmp 0x14002f2f5
mov rcx, qword [0x1400a92b0]
cmp rcx, r13
je 0x14002f3e5
test byte [rcx + 0x1c], 0x80
je 0x14002f3e5
mov rcx, qword [rcx + 0x10]
mov edx, 0x2d
mov r8, rsi
call fcn.14003d1bc
mov rcx, r14
call sym.spoolsv.exe_PrvDllFreeSplMem
and qword [rbp - 0x18], 0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rbx, rax
test rax, rax
je 0x14002f337
mov r8, qword [rbp + 0x48]
lea r9, [rbp - 0x10]
mov rdx, qword [rdi + 0x38]
mov r14d, 2
mov dword [rsp + 0x30], r14d
mov rcx, rax
lea r15d, [r14 - 1]
mov dword [rsp + 0x28], r15d
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
test eax, eax
je 0x14002f322
mov rax, qword [rbp - 0x10]
mov qword [r12 + 8], rax
mov dword [r12], r15d
mov dword [r12 + 0x10], r14d
mov rcx, qword [0x1400a92b0]
mov dword [rbp - 0x2c], r15d
jmp 0x14002f311
mov ebx, 6
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x14002f49c
test byte [rcx + 0x1c], 0x20
je 0x14002f49c
lea edx, [rbx + 0x16]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009cef8]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
call fcn.140057a4c
xor eax, eax
jmp 0x1400065cd