Function at 0x1401071a8
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
mov eax, 0x80
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15d, r8d
mov r14, rcx
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
movzx r13d, r8w
mov dword [rbp - 0x40], esi
test rdx, rdx
jne 0x140107204
mov edi, 0x80004003
jmp 0x140107419
cmp r13d, 4
jae 0x140107222
mov eax, r15d
and eax, 0xffff0000
mov ecx, 0x7f0000
or eax, ecx
cmp eax, ecx
mov eax, 1
je 0x140107224
mov eax, esi
test eax, eax
jne 0x140107232
mov edi, 0x80070057
jmp 0x140107419
mov eax, r15d
and eax, 0x10000
neg eax
sbb r9d, r9d
and r9d, 0x4000100
add r9d, 0x2000
mov ecx, r15d
shr ecx, 0x12
not ecx
and ecx, 1
mov r8d, ecx
or r8d, 4
bt r15d, 0x15
cmovae r8d, ecx
mov edi, r8d
or edi, 2
bt r15d, 0x16
cmovae edi, r8d
mov r12d, r9d
bts r12d, 0x1e
cmp r13d, 2
cmove r12d, r9d
lea rcx, [rbp - 0x30]
call fcn.14000ae4c
lea r10, [0x1402d4c50]
mov eax, dword [r10 + r13*8 + 4]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, edi
mov edx, dword [r10 + r13*8]
call fcn.1400c5098
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140107345
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x140107319
test edi, edi
je 0x140107319
lea r10, [0x1402d4c50]
mov eax, dword [r10 + r13*8 + 4]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
or edi, 2
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, edi
mov edx, dword [r10 + r13*8]
call fcn.1400c5098
mov rbx, rax
mov dword [rbp - 0x40], 1
cmp rbx, 0xffffffffffffffff
jne 0x140107345
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jne 0x1401073cb
mov edi, 0x8000ffff
jmp 0x1401073da
lea rdx, [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14010736e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jne 0x1401073cb
mov rax, qword [rbp - 0x38]
test rax, rax
jns 0x14010737e
mov edi, 0x8000ffff
jmp 0x1401073cb
mov edi, esi
test r13d, r13d
setne sil
mov dword [r14 + 0x30], esi
shr r12d, 0x1e
mov dword [r14 + 0x34], r12d
mov ecx, dword [rbp - 0x40]
mov dword [r14 + 0x38], ecx
mov qword [r14 + 0x98], rax
mov rax, qword [r14 + 0x28]
mov qword [r14 + 0x28], rbx
mov rbx, rax
bt r15d, 0x11
jb 0x1401073bb
mov byte [r14 + 0x90], 1
lea rcx, [r14 + 0xa0]
lea rdx, [rbp - 0x30]
call fcn.14000ac98
cmp rbx, 0xffffffffffffffff
je 0x1401073da
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x18]
cmp rax, 8
jb 0x140107419
mov rcx, qword [rbp - 0x30]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x140107413
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140107413
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14024c6d0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret