Function at 0x180058440
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe8
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r15, r9
mov r14, r8
mov r12d, edx
mov rbp, rcx
mov dword [rsp + 0x40], edx
test r8, r8
jne 0x180058491
mov eax, 0x80070057
jmp 0x1800586f8
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
add rcx, 0x40
call fcn.180059470
mov r13, qword [rbp + 0x70]
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x1800584b8
cmp rdi, qword [rbp + 0x40]
je 0x1800584bd
call fcn.180076fcc
mov rbx, qword [rsp + 0x50]
cmp rbx, r13
jne 0x18005866c
lea rdx, [rbp + 0x18]
mov qword [rsp + 0xc8], 7
xor r13d, r13d
mov qword [rsp + 0xc0], r13
mov word [rsp + 0xb0], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0xa8]
call fcn.180002db0
nop
lea r8d, [r13 + 1]
lea rdx, [0x1800f4360]
lea rcx, [rsp + 0xa8]
call fcn.180002750
mov rax, qword [rbp]
lea r9, [rsp + 0x70]
lea r8d, [r13 + 3]
mov edx, r12d
mov rcx, rbp
call qword [rax + 0x38]
cmp word [rsp + 0x70], 8
je 0x18005855c
cmp qword [rsp + 0xc8], 8
jb 0x180058552
mov rcx, qword [rsp + 0xb0]
call fcn.180076a50
mov eax, 0x80004005
jmp 0x1800586f8
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x78]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0xa8]
call fcn.180002750
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
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 0x1800585f6
call fcn.180003220
mov edi, eax
cmp qword [rsp + 0xc8], 8
jb 0x1800585ef
mov rcx, qword [rsp + 0xb0]
call fcn.180076a50
mov eax, edi
jmp 0x1800586f8
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x90]
lea rcx, [rbp + 0x40]
call fcn.180058ed0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x40]
call fcn.180059470
lea rdx, [rsp + 0x48]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
cmp qword [rsp + 0xc8], 8
jb 0x180058660
mov rcx, qword [rsp + 0xb0]
call fcn.180076a50
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
jmp 0x18005866f
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
jmp 0x18005866f
xor r13d, r13d
test rdi, rdi
jne 0x18005867e
call fcn.180076fcc
mov r11, r13
jmp 0x180058681
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x30]
jne 0x18005868c
call fcn.180076fcc
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 0x1800586aa
call fcn.180003220
jmp 0x1800586f8
mov dword [rsp + 0x58], r13d
test rdi, rdi
jne 0x1800586be
call fcn.180076fcc
mov rdx, r13
jmp 0x1800586c1
mov rdx, qword [rdi]
cmp rbx, qword [rdx + 0x30]
jne 0x1800586cc
call fcn.180076fcc
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x150]
mov rdx, r14
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800586f6
call fcn.180003220
jmp 0x1800586f8
xor eax, eax
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.180076a70
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret