Function at 0x18003f1e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r15, r9
mov rbp, r8
mov edi, edx
mov r14, rcx
test r8, r8
jne 0x18003f227
mov eax, 0x80070057
jmp 0x18003f456
mov rax, qword [rcx + 0x38]
mov rcx, qword [rax + 8]
mov rbx, rax
cmp byte [rcx + 0x19], 0
jne 0x18003f24f
cmp dword [rcx + 0x20], edi
jae 0x18003f243
mov rcx, qword [rcx + 0x10]
jmp 0x18003f249
mov rbx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x18003f238
cmp rbx, rax
je 0x18003f259
cmp edi, dword [rbx + 0x20]
jae 0x18003f25c
mov rbx, rax
xor r12d, r12d
cmp rbx, rax
jne 0x18003f40e
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], r12
mov word [rsp + 0x78], r12w
lea rdx, [r14 + 0x18]
or rbx, 0xffffffffffffffff
mov r9, rbx
xor r8d, r8d
lea rcx, [rsp + 0x78]
call fcn.180004110
nop
lea r8d, [r12 + 1]
lea rdx, [0x1800d95d8]
lea rcx, [rsp + 0x78]
call fcn.180005bd0
mov rax, qword [r14]
lea r9, [rsp + 0x48]
lea r8d, [r12 + 3]
mov edx, edi
mov rcx, r14
call qword [rax + 0x38]
cmp word [rsp + 0x48], 8
je 0x18003f2e5
mov ebx, 0x80004005
jmp 0x18003f35f
mov rdx, qword [rsp + 0x50]
cmp word [rdx], 0
jne 0x18003f2f5
mov rbx, r12
jmp 0x18003f2ff
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x18003f2f5
mov r8, rbx
lea rcx, [rsp + 0x78]
call fcn.180005bd0
lea rcx, [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rcx, qword [rsp + 0x78]
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]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18003f370
call fcn.180002050
mov ebx, eax
lea rcx, [rsp + 0x78]
call fcn.180004c10
mov eax, ebx
jmp 0x18003f456
mov ecx, gethostbyname
call fcn.180072954
mov rdx, rax
test rax, rax
je 0x18003f389
mov rcx, qword [r14 + 0x38]
mov qword [rax], rcx
add rax, 8
je 0x18003f396
mov rcx, qword [r14 + 0x38]
mov qword [rax], rcx
lea rcx, [rdx + 0x10]
test rcx, rcx
je 0x18003f3a6
mov rax, qword [r14 + 0x38]
mov qword [rcx], rax
mov word [rdx + 0x18], 0
lea r9, [rdx + 0x20]
test r9, r9
je 0x18003f3bc
mov dword [r9], edi
mov qword [r9 + 8], rbx
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
lea rcx, [r14 + 0x38]
call fcn.18003ff50
mov rax, qword [r14 + 0x38]
mov rcx, qword [rax + 8]
mov rbx, rax
cmp byte [rcx + 0x19], 0
jne 0x18003f3f7
cmp dword [rcx + 0x20], edi
jae 0x18003f3eb
mov rcx, qword [rcx + 0x10]
jmp 0x18003f3f1
mov rbx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x18003f3e0
cmp rbx, rax
je 0x18003f401
cmp edi, dword [rbx + 0x20]
jae 0x18003f404
mov rbx, rax
lea rcx, [rsp + 0x78]
call fcn.180004c10
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18003f42c
call fcn.180002050
jmp 0x18003f456
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x100]
mov rdx, rbp
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003f425
xor eax, eax
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.180072920
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret