Function at 0x14000e8c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xf8
mov rax, qword [0x14004b0e8]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov r13, qword [rbp + 0x7f]
mov rax, r9
mov r12, qword [rbp + 0x77]
mov rdi, rcx
mov qword [rsp + 0x50], rax
mov ebx, r8d
test rdx, rdx
je 0x14000eccb
test rax, rax
je 0x14000eccb
mov eax, dword [rcx + 0x10]
cmp ebx, eax
ja 0x14000eccb
mov r15d, dword [rbp + 0x6f]
cmp r15d, eax
ja 0x14000eccb
mov rcx, qword [rcx + 0x18]
mov r8d, ebx
test ebx, ebx
je 0x14000e956
test rcx, rcx
jne 0x14000e951
call fcn.140027134
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140026f84
mov ebx, 0x1000
jmp 0x14000ecd0
call fcn.140022230
mov rax, qword [rdi + 0x18]
mov dword [rdi + 0x30], ebx
test rax, rax
je 0x14000eccb
xor r14d, r14d
cmp dword [rax + 4], 0xd0004
jne 0x14000e976
mov dword [rax + 8], r14d
mov rcx, qword [rdi + 0x40]
mov ebx, 0x1000
test rcx, rcx
jne 0x14000eabd
cmp qword [rdi + 0x38], r14
jne 0x14000eabd
mov edx, dword [rdi + 0x30]
mov esi, 0x80008003
mov eax, dword [rdi + 0x10]
cmp edx, eax
ja 0x14000ebe5
xorps xmm0, xmm0
mov dword [rsp + 0x40], eax
xor eax, eax
mov dword [rbp - 0x71], r14d
mov qword [rbp - 0x79], rax
mov rax, qword [rdi + 8]
movups xmmword [rbp - 0x6d], xmm0
mov dword [rbp - 0x61], DispGetParam
movups xmmword [rbp - 0x5d], xmm0
movups xmmword [rbp - 0x4d], xmm0
movups xmmword [rbp - 0x3d], xmm0
movups xmmword [rbp - 0x2d], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
mov rcx, qword [rax]
sub rcx, qword [0x140038290]
jne 0x14000e9f6
mov rcx, qword [rax + 8]
sub rcx, qword [0x140038298]
test rcx, rcx
mov dword [rbp - 0x41], edx
mov rcx, qword [rdi + 0x48]
lea r9, vtable.type_info.0
mov eax, r14d
mov dword [rsp + 0x20], r14d
setne al
lea r8, vtable.type_info.0
inc eax
xor edx, edx
mov dword [rbp - 0x51], eax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x39], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x31], rax
call fcn.140022f34
xor ecx, ecx
lea r9, vtable.type_info.0
mov dword [rsp + 0x20], ecx
lea r8, vtable.type_info.0
mov rcx, qword [rdi + 0x48]
xor edx, edx
mov r14, rax
call fcn.140022f34
test r14, r14
jne 0x14000ea80
test rax, rax
je 0x14000ebe5
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x71]
mov rcx, rax
call fcn.140004690
jmp 0x14000ea94
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x71]
mov rcx, r14
call fcn.140012910
test eax, eax
js 0x14000ebe5
cmp dword [rbp - 0x55], 1
jne 0x14000ebe5
mov eax, dword [rsp + 0x40]
cmp eax, dword [rdi + 0x10]
mov dword [rdi + 0x30], eax
mov eax, 0
cmovbe esi, eax
jmp 0x14000ebe5
mov eax, dword [rdi + 0x10]
mov esi, 0x80008003
cmp dword [rdi + 0x30], eax
ja 0x14000ebe5
cmp rcx, 0xffffffffffffffff
je 0x14000ebe5
mov rcx, qword [rdi + 0x38]
mov edx, 0x4e20
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
jne 0x14000ebe5
mov r8d, dword [rdi + 0x30]
lea r9, [rsp + 0x44]
mov rdx, qword [rdi + 0x18]
cmp eax, 0x80
mov rcx, qword [rdi + 0x40]
sete r14b
xor eax, eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000eb2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000eb4c
mov r8d, dword [rdi + 0x10]
lea r9, [rsp + 0x44]
mov rdx, qword [rdi + 0x18]
xor eax, eax
mov rcx, qword [rdi + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000ebcb
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x48f
sete cl
test ecx, ecx
je 0x14000ebdb
test r14d, r14d
je 0x14000ebdb
mov rcx, qword [rdi + 0x40]
xor eax, eax
xor r14d, r14d
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], r14d
mov esi, ebx
mov byte [rsp + 0x4c], al
cmp rcx, 0xffffffffffffffff
je 0x14000ebdb
mov r8, qword [rdi + 8]
test r8, r8
je 0x14000ebdb
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r9d, [r14 + 0x10]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 5
mov edx, 0x8000e004
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000ebdb
cmp dword [rsp + 0x40], 5
cmove esi, r14d
jmp 0x14000ebdb
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x30], eax
cmp eax, dword [rdi + 0x10]
ja 0x14000ebdb
xor eax, eax
mov esi, eax
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x14000ebf3
mov ebx, 0x80008003
jmp 0x14000ecd0
cmp dword [rdi + 0x30], 0x10
jb 0x14000ebe9
mov rsi, qword [rdi + 0x18]
test rsi, rsi
je 0x14000eccb
mov r14d, dword [rsi + 0xc]
mov eax, 0x84
add r14d, 0x10
cmp dword [rsi + 4], 0x2f
cmove r14d, eax
cmp r15d, r14d
jb 0x14000ebe9
mov r15d, r14d
test r14d, r14d
je 0x14000ec38
mov rcx, qword [rsp + 0x50]
mov r8d, r15d
mov rdx, rsi
call fcn.140022230
test r12, r12
je 0x14000ecc5
test r13, r13
je 0x14000ecc5
cmp dword [rsi], 0x40001
jbe 0x14000ec9e
cmp dword [rsi + 8], 0x80000000
jne 0x14000ec9e
lea rdx, [r14 + rsi]
test rdx, rdx
je 0x14000ec86
lfence
mov eax, dword [rdx]
add rdx, 4
mov r8d, eax
mov dword [r13], eax
test r8, r8
je 0x14000ecc5
mov rcx, r12
test rdx, rdx
jne 0x14000ecbd
xor edx, edx
call fcn.140021bb0
jmp 0x14000ec8c
xor eax, eax
mov dword [r13], eax
call fcn.140027134
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140026f84
jmp 0x14000ecd0
mov eax, dword [rdi + 0x30]
sub eax, r14d
mov dword [r13], eax
je 0x14000ecc5
mov r8d, eax
lea rdx, [r14 + rsi]
test eax, eax
je 0x14000ecc5
mov rcx, r12
test rdx, rdx
je 0x14000ec7d
lfence
call fcn.140022230
xor eax, eax
mov ebx, eax
jmp 0x14000ecd0
mov ebx, 0x1005
mov eax, ebx
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.14001fae0
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret