Function at 0x140009c20
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rdi, rcx
xor ebp, ebp
cmp byte [rcx + 8], bpl
jne 0x140009d39
cmp qword [rcx + 0x20], rbp
je 0x140009fff
add rcx, 0x10
cmp qword [rcx + 0x18], 0x10
jb 0x140009c6b
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140009fff
xor sil, sil
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rdi + 0x38], eax
movsxd rcx, eax
cmp rcx, 0x1f
jb 0x140009d0f
cmp qword [rdi + 0x30], rbp
je 0x140009cca
mov rcx, rdi
call fcn.14000a340
mov eax, dword [rdi + 0x38]
movsxd rcx, eax
call fcn.1400145b4
mov qword [rdi + 0x30], rax
movsxd r8, dword [rdi + 0x38]
xor edx, edx
mov rcx, rax
call fcn.140199110
mov dword [rsp + 0x80], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x80]
mov r8d, dword [rdi + 0x38]
mov rdx, qword [rdi + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne sil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rdi + 8], sil
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x140009d39
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0xd0], rbp
lea r12, [rdi + 0xd8]
mov r15d, dword [rdi + 0x38]
mov r14, qword [rdi + 0x30]
test r14, r14
je 0x140009fff
mov qword [rdi + 0xa8], r14
mov dword [rdi + 0xb0], r15d
mov esi, ebp
mov byte [rdi + 0xbe], 1
lea r13d, [r15 - 4]
test r13d, r13d
jle 0x140009e68
nop word [rax + rax]
cmp byte [0x14027806a], bpl
jne 0x140009fff
cmp byte [0x14027806b], bpl
jne 0x140009fff
mov dword [rsp + 0x80], ebp
mov eax, dword [r14]
cmp eax, 0x4034b50
jne 0x140009dd7
mov eax, r15d
sub eax, esi
cmp eax, 0x1f
jb 0x140009ec6
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov r8d, esi
mov rdx, r14
lea rcx, [rdi + 0x78]
call fcn.140005e50
jmp 0x140009e50
cmp eax, 0x2014b50
jne 0x140009e1b
cmp byte [rdi + 0xbe], bpl
je 0x140009e8a
cmp dword [rdi + 0xb4], ebp
jne 0x140009df9
mov dword [rdi + 0xb4], esi
mov eax, dword [rdi + 0xb0]
sub eax, esi
cmp eax, 0x2f
jb 0x140009ecf
movzx ecx, word [r14 + 0x1e]
movzx eax, word [r14 + 0x1c]
add ecx, 0x2e
add ecx, eax
jmp 0x140009e57
cmp eax, 0x6054b50
je 0x140009ee1
mov eax, r15d
sub eax, esi
cmp eax, 0x1f
jb 0x140009e68
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov r8d, esi
mov rdx, r14
lea rcx, [rdi + 0x78]
call fcn.1400063f0
test al, al
jne 0x140009e8a
mov ecx, dword [rsp + 0x80]
movsxd rax, ecx
add r14, rax
add esi, ecx
cmp esi, r13d
jl 0x140009d80
cmp byte [rdi + 0xbe], bpl
je 0x140009e8a
cmp byte [rdi + 0xbc], bpl
jne 0x140009e81
mov byte [rdi + 0xbc], 1
mov word [rdi + 0xbd], 1
mov eax, dword [r12]
cmp eax, 2
je 0x140009fff
test eax, eax
jne 0x140009f2f
mov ecx, reloc.OLEAUT32.dll_VariantTimeToSystemTime
call fcn.140014564
mov qword [rsp + 0x80], rax
test rax, rax
je 0x140009ec1
mov rcx, rax
call fcn.1400027b0
mov rbp, rax
jmp 0x140009f56
mov byte [rdi + 0xa0], bpl
jmp 0x140009e68
mov word [rdi + 0xbc], 0x101
mov byte [rdi + 0xbe], bpl
jmp 0x140009e68
cmp byte [rdi + 0xbe], bpl
je 0x140009e8a
mov dword [rdi + 0xb8], esi
sub r15d, esi
cmp r15d, 0x16
jae 0x140009f14
mov byte [rdi + 0xbe], bpl
mov al, 1
mov byte [rdi + 0xbc], bpl
mov byte [rdi + 0xbd], al
jmp 0x140009e8a
mov byte [rdi + 0xa0], bpl
xor al, al
mov byte [rdi + 0xbc], bpl
mov byte [rdi + 0xbd], al
jmp 0x140009e8a
cmp eax, 1
jne 0x140009f5d
mov ecx, reloc.OLEAUT32.dll_VariantTimeToSystemTime
call fcn.140014564
mov qword [rsp + 0x80], rax
test rax, rax
je 0x140009f56
mov rcx, rax
call fcn.14000a620
mov rbp, rax
mov qword [rdi + 0xd0], rbp
mov rsi, qword [rdi + 0xd0]
test rsi, rsi
je 0x140009ffb
mov rdx, qword [rdi + 0x88]
cmp rdx, qword [rdi + 0x90]
je 0x140009f94
lea rcx, [rdi + 0x40]
mov r8, qword [rdi + 0x90]
call fcn.140006ce0
mov rsi, qword [rdi + 0xd0]
mov ebx, dword [r12]
lea rcx, [rsi + 8]
mov r8, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x40]
call fcn.140006ce0
mov dword [rsi + 0x98], ebx
mov rbx, qword [rsi + 0x20]
cmp rbx, qword [rsi + 0x28]
je 0x140009fde
nop dword [rax]
mov rcx, qword [rbx + 0x29]
test rcx, rcx
je 0x140009fd4
cmp byte [rbx + 0x28], 0
je 0x140009fd4
call fcn.1400145ac
add rbx, 0x31
cmp rbx, qword [rsi + 0x28]
jne 0x140009fc0
mov r8, qword [rsi + 0x28]
mov rdx, qword [rsi + 0x20]
call fcn.140004870
mov rax, qword [rsi + 0x20]
mov qword [rsi + 0x28], rax
mov rcx, rsi
call fcn.140008f20
mov al, 1
jmp 0x14000a001
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret