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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov rax, qword [0x1400a3758]
xor rax, rsp
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x148]
xorps xmm0, xmm0
mov ebx, dword [rbp + 0x188]
mov rsi, r8
mov r12, qword [rbp + 0x150]
mov r15, rcx
mov r13, qword [rbp + 0x168]
mov rdi, qword [rbp + 0x180]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x160]
mov qword [rbp], rax
mov rax, qword [rbp + 0x170]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x178]
mov qword [rbp + 0x18], rax
xor eax, eax
mov r14d, eax
mov qword [rbp - 0x10], r9
mov qword [rbp - 8], r8
mov qword [rbp - 0x28], rdx
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x58], 0x14
movups xmmword [rbp + 0x48], xmm0
call fcn.140006a80
test rdi, rdi
je 0x140006496
mov qword [rdi], r14
mov rdx, qword [rbp - 0x28]
mov dword [rbp + 0xa0], 0x6078065b
mov dword [rbp + 0xa4], 0x4b138f22
mov dword [rbp + 0xa8], 0x765b9bbd
mov rax, qword [rdx]
mov dword [rbp + 0xac], 0x86f37627
cmp rax, qword [rbp + 0xa0]
jne 0x140006618
mov rax, qword [rdx + 8]
cmp rax, qword [rbp + 0xa8]
jne 0x140006618
lea rax, [rbp + 0x48]
mov dword [rbp + 0x78], 0x28
mov ecx, 0x18
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x98], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rbp + 0x7c], 1
call fcn.14004bd50
mov rbx, rax
test rax, rax
je 0x140006a6c
mov rcx, rsi
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x140006541
test rsi, rsi
jne 0x140006a6c
mov rcx, qword [rbx]
xor eax, eax
mov r14, qword [rbp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov edx, 0x80000000
mov dword [rsp + 0x28], eax
lea r8d, [rax + 7]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400065d1
lea rdx, [rbp + 0xa0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [rbp + 0xa0]
call fcn.140059d40
mov r8d, dword [rbp + 0xa0]
lea r9, [rbp - 0x18]
mov rdx, rax
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400065ec
mov rcx, rsi
call fcn.140059d2c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x60]
mov ebx, eax
call fcn.1400053c0
test ebx, ebx
je 0x14000660c
jmp 0x140006a47
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0xa0]
lea rcx, [rsp + 0x60]
mov qword [r14 + 8], rsi
mov dword [r14], eax
call fcn.1400053c0
mov ebx, dword [rsp + 0x54]
lea r14, [rbp + 0x78]
mov rdx, qword [rbp - 0x28]
movzx ecx, byte [rbp + 0x140]
xor eax, eax
mov qword [rbp - 0x40], rax
xorps xmm0, xmm0
xor r8d, r8d
mov qword [rbp + 0x58], 0x20
movzx eax, cl
mov qword [rbp + 0x60], r15
neg al
movups xmmword [rbp - 0x80], xmm0
sbb eax, eax
mov dword [rbp - 0x78], 2
and eax, 0x40
mov dword [rbp - 0x30], eax
test cl, cl
mov dword [rbp - 0x74], eax
mov eax, 0x1000
cmovne eax, r8d
mov dword [rsp + 0x60], eax
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x70], 0x58
mov qword [rsp + 0x78], r14
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x70], 1
movups xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x48], eax
lea rax, [rbp + 0x58]
mov qword [rbp - 0x68], rax
movups xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x60], 1
movdqu xmmword [rbp + 0x68], xmm0
cmp ebx, 0xffffffff
je 0x1400066c4
lea rax, [rbp + 0x28]
mov dword [rbp + 0x44], r8d
mov qword [rbp - 0x40], rax
movdqu xmmword [rbp + 0x34], xmm0
mov dword [rbp + 0x28], 0x20
mov dword [rbp + 0x30], 1
mov dword [rbp + 0x2c], ebx
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [0x1400a45f0]
mov ebx, eax
mov sil, 1
test eax, eax
je 0x1400069b8
add eax, 0x7ff4feff
cmp eax, 0xb
ja 0x1400066f6
mov ecx, 0x901
bt ecx, eax
jb 0x1400069b8
cmp ebx, 0x80096010
je 0x1400069b8
test r12, r12
je 0x1400067c4
lea r8, [rsp + 0x70]
mov dword [rbp - 0x60], 2
lea rdx, [0x1400a1010]
xor ecx, ecx
call qword [0x1400a45f0]
mov eax, dword [rbp - 0x30]
lea r8, [rsp + 0x70]
cmp dword [rsp + 0x54], 0xffffffff
xorps xmm0, xmm0
mov rdx, qword [rbp - 0x28]
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x74], eax
lea rax, [rbp + 0x58]
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x68], rax
mov eax, dword [rsp + 0x60]
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x78], r14
mov r14d, 0
movups xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x48], eax
lea rax, [rbp + 0x28]
cmove rax, r14
mov dword [rsp + 0x70], 0x58
movups xmmword [rbp - 0x60], xmm0
xor ecx, ecx
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x78], 2
mov dword [rbp - 0x70], 1
mov dword [rbp - 0x60], 1
call qword [0x1400a45f0]
test eax, eax
jne 0x1400067c7
test rdi, rdi
je 0x1400069ac
mov rcx, r15
call fcn.140059d48
cmp ebx, 0xc000a000
mov qword [rdi], rax
cmovne ebx, r14d
jmp 0x1400069c8
xor r14d, r14d
cmp qword [0x1400a4630], 0
je 0x140006829
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r15
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140006829
xor r9d, r9d
lea r8, [rbp + 0xb0]
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [0x1400a4628]
mov rcx, r14
test eax, eax
jne 0x140006846
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test r12, r12
je 0x140006834
mov dword [r12], eax
test r13, r13
je 0x140006a19
mov dword [r13], eax
jmp 0x140006a19
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x70]
mov dword [rbp - 0x60], 2
lea rdx, [0x1400a1010]
xor ecx, ecx
call qword [0x1400a45f0]
mov rcx, qword [rbp - 0x10]
mov byte [rsp + 0x50], 0
test rcx, rcx
je 0x1400068bf
movzx r8d, byte [rbp + 0x140]
lea rax, [rsp + 0x50]
mov rcx, qword [rcx]
lea r9, [rbp + 0xb0]
mov qword [rsp + 0x40], rax
mov rdx, r15
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
call fcn.140005ef0
movzx esi, byte [rsp + 0x50]
jmp 0x140006904
mov rax, qword [rbp - 8]
test rax, rax
je 0x140006934
mov ecx, dword [rsp + 0x54]
lea r8, [rbp + 0xb0]
mov r9d, dword [rsp + 0x58]
movzx edx, byte [rbp + 0x140]
mov dword [rsp + 0x38], ecx
mov rcx, r15
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.140006150
mov byte [rsp + 0x50], sil
mov r14d, eax
test eax, eax
je 0x1400069a9
test sil, sil
je 0x140006934
lea r8, [rsp + 0x70]
mov dword [rbp - 0x60], 2
lea rdx, [0x1400a1010]
xor ecx, ecx
call qword [0x1400a45f0]
mov byte [rsp + 0x50], 0
xor r8d, r8d
lea rcx, [rbp - 0x20]
xor edx, edx
call qword [0x1400a4630]
movzx r8d, byte [rbp + 0x140]
lea rax, [rsp + 0x50]
mov rcx, qword [rbp - 0x20]
lea r9, [rbp + 0xb0]
mov qword [rsp + 0x40], rax
mov rdx, r15
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
call fcn.140005ef0
mov rcx, qword [rbp - 0x20]
mov r14d, eax
test rcx, rcx
je 0x14000699b
xor edx, edx
call qword [0x1400a4608]
movzx esi, byte [rsp + 0x50]
test r14d, r14d
jne 0x140006829
xor r14d, r14d
cmp ebx, 0xc000a000
cmovne ebx, r14d
jmp 0x1400069c8
test rdi, rdi
je 0x1400069c8
mov rcx, r15
call fcn.140059d48
mov qword [rdi], rax
test r12, r12
je 0x1400069f1
mov rax, qword [rbp]
mov r9, r12
mov r8, qword [rbp + 0x10]
xor edx, edx
mov rcx, qword [rbp - 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x20], rax
call fcn.140005cb0
test r13, r13
je 0x140006a19
mov rax, qword [rbp + 0x18]
mov r9, r13
mov rcx, qword [rbp - 0x58]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov dl, 1
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140005cb0
test sil, sil
je 0x140006a39
lea r8, [rsp + 0x70]
mov dword [rbp - 0x60], 2
lea rdx, [0x1400a1010]
xor ecx, ecx
call qword [0x1400a45f0]
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140006a47
call fcn.140059d2c
mov eax, ebx
mov rcx, qword [rbp + 0xc8]
xor rcx, rsp
call fcn.14004bd30
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x8007000e
call fcn.14004dd40
int3