Function at 0x180043750
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 [0x1800f7050]
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 0x1800437a0
mov eax, 0x80070057
jmp 0x180043a88
mov rdi, qword [rcx + 0x70]
mov rax, qword [rdi + 8]
cmp byte [rax + 0x29], 0
jne 0x1800437c7
nop
cmp dword [rax + 0x18], edx
jae 0x1800437bb
mov rax, qword [rax + 0x10]
jmp 0x1800437c1
mov rdi, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], 0
je 0x1800437b0
mov qword [rsp + 0x70], rdi
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x68], rax
mov rbx, qword [rcx + 0x70]
test rax, rax
je 0x1800437e3
cmp rax, rax
je 0x1800437e8
call fcn.18006265c
cmp rdi, rbx
je 0x1800437f9
cmp ebp, dword [rdi + 0x18]
jb 0x1800437f9
lea rcx, [rsp + 0x68]
jmp 0x180043810
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 0x180043837
cmp rdi, qword [r13 + 0x40]
je 0x18004383c
call fcn.18006265c
mov rbx, qword [rsp + 0x60]
cmp rbx, r12
jne 0x1800439fc
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.180002c70
nop
lea r8d, [r12 + 1]
lea rdx, [0x1800dca00]
lea rcx, [rsp + 0xa0]
call fcn.180002610
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 0x1800438dc
cmp qword [rsp + 0xc0], 8
jb 0x1800438d2
mov rcx, qword [rsp + 0xa8]
call fcn.1800620e0
mov eax, 0x80004005
jmp 0x180043a88
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.180002610
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 0x180043976
call fcn.1800030e0
mov edi, eax
cmp qword [rsp + 0xc0], 8
jb 0x18004396f
mov rcx, qword [rsp + 0xa8]
call fcn.1800620e0
mov eax, edi
jmp 0x180043a88
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x88]
lea rcx, [r13 + 0x40]
call fcn.180044260
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x48]
lea rcx, [r13 + 0x40]
call fcn.180044800
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 0x1800439d3
mov rcx, qword [rsp + 0xa8]
call fcn.1800620e0
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 0x1800439ff
xor r12d, r12d
test rdi, rdi
jne 0x180043a0e
call fcn.18006265c
mov r11, r12
jmp 0x180043a11
mov r11, qword [rdi]
cmp rbx, qword [r11 + 0x30]
jne 0x180043a1c
call fcn.18006265c
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 0x180043a3a
call fcn.1800030e0
jmp 0x180043a88
mov dword [rsp + 0x40], r12d
test rdi, rdi
jne 0x180043a4e
call fcn.18006265c
mov rdx, r12
jmp 0x180043a51
mov rdx, qword [rdi]
cmp rbx, qword [rdx + 0x30]
jne 0x180043a5c
call fcn.18006265c
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 0x180043a86
call fcn.1800030e0
jmp 0x180043a88
xor eax, eax
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.180062100
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret