Function at 0x18002ebe0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd8
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov r15, r9
mov r14, r8
mov ebp, edx
mov r13, rcx
mov dword [rsp + 0x44], edx
test r8, r8
jne 0x18002ec30
mov eax, 0x80070057
jmp 0x18002ef18
mov rdi, qword [rcx + 0x70]
mov rax, qword [rdi + 8]
cmp byte [rax + 0x29], 0
jne 0x18002ec57
nop
cmp dword [rax + 0x18], edx
jae 0x18002ec4b
mov rax, qword [rax + 0x10]
jmp 0x18002ec51
mov rdi, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], 0
je 0x18002ec40
mov qword [rsp + 0x70], rdi
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x68], rax
mov rbx, qword [rcx + 0x70]
test rax, rax
je 0x18002ec73
cmp rax, rax
je 0x18002ec78
call fcn.18006aa4c
cmp rdi, rbx
je 0x18002ec89
cmp ebp, dword [rdi + 0x18]
jb 0x18002ec89
lea rcx, [rsp + 0x68]
jmp 0x18002eca0
mov rax, qword [r13 + 0x70]
mov qword [rsp + 0x50], rax
mov rax, qword [r13 + 0x40]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov r12, qword [r13 + 0x70]
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x18002ecc7
cmp rdi, qword [r13 + 0x40]
je 0x18002eccc
call fcn.18006aa4c
mov rbx, qword [rsp + 0x60]
cmp rbx, r12
jne 0x18002ee8c
lea rdx, [r13 + 0x18]
mov qword [rsp + 0xc0], 7
xor r12d, r12d
mov qword [rsp + 0xb8], r12
mov word [rsp + 0xa8], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0xa0]
call fcn.180002d10
nop
lea r8d, [r12 + 1]
lea rdx, [0x1800e2e48]
lea rcx, [rsp + 0xa0]
call fcn.1800026b0
mov rax, qword [r13]
lea r9, [rsp + 0x68]
lea r8d, [r12 + 3]
mov edx, ebp
mov rcx, r13
call qword [rax + 0x38]
cmp word [rsp + 0x68], 8
je 0x18002ed6c
cmp qword [rsp + 0xc0], 8
jb 0x18002ed62
mov rcx, qword [rsp + 0xa8]
call fcn.18006a4d4
mov eax, 0x80004005
jmp 0x18002ef18
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x70]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0xa0]
call fcn.1800026b0
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x18002ee06
call fcn.180003180
mov edi, eax
cmp qword [rsp + 0xc0], 8
jb 0x18002edff
mov rcx, qword [rsp + 0xa8]
call fcn.18006a4d4
mov eax, edi
jmp 0x18002ef18
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x88]
lea rcx, [r13 + 0x40]
call fcn.18002f6f0
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x48]
lea rcx, [r13 + 0x40]
call fcn.18002fc90
lea rdx, [rsp + 0x58]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
cmp qword [rsp + 0xc0], 8
jb 0x18002ee63
mov rcx, qword [rsp + 0xa8]
call fcn.18006a4d4
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r12
mov word [rsp + 0xa8], r12w
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
jmp 0x18002ee8f
xor r12d, r12d
test rdi, rdi
jne 0x18002ee9e
call fcn.18006aa4c
mov r11, r12
jmp 0x18002eea1
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x30]
jne 0x18002eeac
call fcn.18006aa4c
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18002eeca
call fcn.180003180
jmp 0x18002ef18
mov dword [rsp + 0x40], r12d
test rdi, rdi
jne 0x18002eede
call fcn.18006aa4c
mov rdx, r12
jmp 0x18002eee1
mov rdx, qword [rdi]
cmp rbx, qword [rdx + 0x30]
jne 0x18002eeec
call fcn.18006aa4c
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x140]
mov rdx, r14
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18002ef16
call fcn.180003180
jmp 0x18002ef18
xor eax, eax
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.18006a4f0
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret