Function at 0x140048b30
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x270], rbx
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + reloc.OLEAUT32.dll_VARIANT_UserUnmarshal], rax
mov r15d, r8d
mov rsi, rdx
mov rdi, rcx
mov eax, dword [rcx + 0x90]
cmp eax, 2
jae 0x140048d19
xor edx, edx
mov r8d, VarBstrCmp
lea rcx, [rbp - 0x20]
call fcn.1400b52d0
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, VarBstrCmp
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140048bc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140048fc1
cmp dword [rsp + 0x30], 0x138
jne 0x140048e04
lea rax, [0x140102478]
mov qword [rsp + 0x40], rax
lea rax, [0x1401025f8]
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x78], eax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx - 0x80]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rcx, [rbp - 0x20]
call fcn.1400b7d68
mov r8, rax
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x34]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x70]
call fcn.140009a00
nop
test rax, rax
je 0x140048c6b
lea rbx, [rax + 8]
lea rax, [rsp + 0x48]
cmp rax, rbx
je 0x140048c9c
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140003130
mov rcx, qword [rsp + 0x58]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x58], rax
mov qword [rbx + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x60], rax
mov qword [rbx + 0x18], rcx
lea rcx, [rbp - 0x70]
call fcn.1400048d0
nop
lea rcx, [rdi + 8]
lea rax, [rsp + 0x48]
cmp rcx, rax
je 0x140048cc6
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
call fcn.140004680
nop
lea rcx, [rsp + 0x40]
call fcn.1400048d0
mov eax, dword [rbp + 0xe4]
mov dword [rdi + 0x50], eax
movzx eax, word [rbp + 0xe8]
mov word [rdi + 0x54], ax
mov eax, dword [rbp + 0xec]
mov dword [rdi + 0x58], eax
mov eax, dword [rbp + 0xf0]
mov dword [rdi + 0x5c], eax
mov eax, dword [rbp + 0xf4]
mov dword [rdi + 0x60], eax
movzx eax, word [rbp + 0xf8]
mov word [rdi + 0x64], ax
lea eax, [r15 + 0x138]
mov dword [rdi + 0x68], eax
jmp 0x140048fbf
xor ebx, ebx
lea r9, [rsp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
cmp eax, 4
jae 0x140048e7a
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 0x18]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140048bb9
cmp dword [rsp + 0x30], 0x18
jne 0x140048e04
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x50], eax
movzx eax, word [rsp + 0x48]
mov word [rdi + 0x54], ax
mov eax, dword [rsp + 0x4a]
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x4e]
mov dword [rdi + 0x5c], eax
mov eax, dword [rsp + 0x52]
mov dword [rdi + 0x60], eax
movzx eax, word [rsp + 0x56]
mov word [rdi + 0x64], ax
mov ecx, dword [rsp + 0x40]
call fcn.1400b321c
mov r14, rax
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call fcn.1400b52d0
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x40]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140048dec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, 1
mov rcx, r14
call fcn.1400b3214
mov eax, ebx
jmp 0x140048fc1
mov rax, qword [rsp + 0x40]
cmp dword [rsp + 0x30], eax
je 0x140048e0e
mov edx, 1
mov rcx, r14
call fcn.1400b3214
mov eax, 0x103
jmp 0x140048fc1
mov r8d, eax
shr r8, 1
lea rax, [0x140102478]
mov qword [rbp - 0x70], rax
lea rax, [0x1401025f8]
mov qword [rbp - 0x30], rax
lea rdx, [0x1400fc414]
test r14, r14
cmovne rdx, r14
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x34]
lea rcx, [rbp - 0x70]
call fcn.140006df0
nop
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.1400043b0
nop
lea rcx, [rbp - 0x70]
call fcn.1400048d0
mov edx, 1
mov rcx, r14
call fcn.1400b3214
mov ecx, dword [rsp + 0x40]
add ecx, 0x18
jmp 0x140048fb9
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea r8d, [rax + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140048bb9
cmp dword [rsp + 0x30], 0x30
jne 0x140048e04
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x50], eax
movzx eax, word [rsp + 0x48]
mov word [rdi + 0x54], ax
mov eax, dword [rsp + 0x4a]
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x4e]
mov dword [rdi + 0x5c], eax
mov eax, dword [rsp + 0x52]
mov dword [rdi + 0x60], eax
movzx eax, word [rsp + 0x56]
mov word [rdi + 0x64], ax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x6c], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x74], rax
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x7c], rax
mov ecx, dword [rsp + 0x40]
call fcn.1400b321c
mov r14, rax
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call fcn.1400b52d0
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x40]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140048dd0
mov rax, qword [rsp + 0x40]
cmp dword [rsp + 0x30], eax
jne 0x140048df7
mov r8d, eax
shr r8, 1
lea rax, [0x140102478]
mov qword [rbp - 0x70], rax
lea rax, [0x1401025f8]
mov qword [rbp - 0x30], rax
lea rdx, [0x1400fc414]
test r14, r14
cmovne rdx, r14
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x34]
lea rcx, [rbp - 0x70]
call fcn.140006df0
nop
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.1400043b0
nop
lea rcx, [rbp - 0x70]
call fcn.1400048d0
mov edx, 1
mov rcx, r14
call fcn.1400b3214
mov ecx, dword [rsp + 0x40]
add ecx, 0x30
add ecx, r15d
mov dword [rdi + 0x68], ecx
xor eax, eax
mov rcx, qword [rbp + reloc.OLEAUT32.dll_VARIANT_UserUnmarshal]
xor rcx, rsp
call fcn.1400b31f0
mov rbx, qword [rsp + 0x270]
add rsp, 0x230
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret