Function at 0x140022604
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [0x14007b108]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov rax, qword [rbp + 0x660]
xor edi, edi
mov r12, qword [rbp + 0x688]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0x668]
or r13, 0xffffffffffffffff
mov qword [rsp + 0x50], r8
mov r9, r8
mov qword [rbp - 0x50], rax
mov r15, rdx
mov qword [rsp + 0x58], rcx
mov r8, rcx
mov qword [rsp + 0x68], rdi
mov esi, edi
mov dword [rsp + 0x48], edi
mov r14d, edi
mov qword [rsp + 0x60], rdi
mov ebx, edi
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
test r12, r12
je 0x14002269f
mov qword [r12], rdi
test r9, r9
je 0x1400229b0
mov ecx, dword [rdx + 8]
sub ecx, 1
je 0x1400226c1
cmp ecx, 1
jne 0x1400229b0
mov rcx, qword [rdx]
jmp 0x140022745
cmp dword [rdx + 0x18], edi
jne 0x140022741
mov rcx, r8
call fcn.1400075c0
mov r8, rax
lea rcx, [rbp - 0x30]
mov edx, 0x30c
call fcn.1400035ec
test eax, eax
jns 0x1400226eb
movzx esi, ax
jmp 0x1400229ea
lea rcx, [rbp - 0x30]
call fcn.14000cbe8
test eax, eax
js 0x1400226e3
lea rcx, [rbp - 0x30]
call fcn.140018d88
mov qword [r15 + 0x20], rax
test rax, rax
jne 0x140022712
lea esi, [rax + 0xe]
jmp 0x1400229ea
mov rcx, qword [r15]
mov r8, rax
call fcn.140022c5c
test eax, eax
jne 0x140022734
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
jmp 0x1400229ea
mov r9, qword [rsp + 0x50]
mov dword [r15 + 0x18], 1
mov rcx, qword [r15 + 0x20]
mov rdx, qword [r9 + 0x28]
call fcn.140048584
mov r15, rax
mov r14, rax
test rax, rax
je 0x1400229ab
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.14000becc
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x14002278c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x140022721
lea esi, [rax + 0x1f]
jmp 0x1400229ea
mov dword [rsp + 0x28], 0x48000000
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, rax
call fcn.14001f1f0
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140022721
cmp dword [0x14007ba38], edi
lea rdx, [rsp + 0x50]
mov rcx, rax
je 0x1400227d3
call fcn.14000d9b8
jmp 0x1400227df
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x1400227f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
jmp 0x1400229d1
mov r10, qword [rsp + 0x58]
test r10, r10
je 0x140022adf
mov r8, qword [r10 + 0x180]
mov rdx, qword [r10 + 0x188]
test r8, r8
je 0x140022adf
test rdx, rdx
je 0x140022adf
mov ecx, dword [0x14007b99c]
xor r9d, r9d
mov rax, qword [0x14007b998]
mov dword [rbp - 0x7c], ecx
mov dword [rbp - 0x5c], ecx
mov rcx, r10
mov qword [rbp - 0x78], r8
lea r8, [rsp + 0x48]
mov qword [rbp - 0x58], rdx
lea rdx, [rsp + 0x60]
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x60], eax
mov qword [rsp + 0x20], rdi
call fcn.140007b84
test eax, eax
je 0x140022adf
cmp qword [rsp + 0x60], rdi
je 0x140022adf
cmp dword [rsp + 0x48], edi
je 0x140022adf
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1400229ab
mov r14d, dword [rsp + 0x48]
mov rcx, rax
shr rcx, 0x20
test ecx, ecx
jne 0x1400228a1
cmp r14d, eax
cmova r14d, eax
mov rdx, qword [rsp + 0x60]
lea r9, [rsp + 0x70]
mov r8d, r14d
mov dword [rsp + 0x20], edi
mov rcx, r13
call fcn.14001f03c
test eax, eax
je 0x140022ac9
mov eax, r14d
mov qword [rbp - 0x40], rax
cmp dword [rbp + 0x670], edi
je 0x1400228ed
mov rcx, qword [rsp + 0x58]
add rbx, rax
mov rdx, rbx
call fcn.14000e890
test r12, r12
je 0x1400228ea
add qword [r12], rbx
mov rbx, rdi
mov r8, qword [rsp + 0x60]
lea rax, [rbp - 0x70]
mov rdx, qword [rsp + 0x50]
mov r9d, r14d
mov rcx, qword [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x48]
call qword [0x14006c9d0]
mov r14d, eax
test eax, eax
js 0x140022a7e
mov rdx, qword [rbp - 0x40]
cmp dword [rbp + 0x670], edi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
lea rax, [rdx + rbx]
mov qword [rbp - 0x70], rdi
cmove rax, rbx
mov qword [rbp - 0x68], rdi
mov rbx, rax
mov eax, dword [rbp - 0x80]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp - 0x7c]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x40]
add rax, rdx
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x40]
shr rax, 0x20
mov dword [rbp - 0x7c], eax
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp - 0x5c]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x40]
add rax, rdx
mov dword [rbp - 0x80], ecx
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x40]
shr rax, 0x20
mov dword [rbp - 0x5c], eax
mov rax, qword [rsp + 0x50]
sub rax, rdx
mov dword [rbp - 0x60], ecx
mov qword [rsp + 0x50], rax
jne 0x14002288a
mov r14, r15
mov r8, qword [rsp + 0x58]
cmp dword [rbp + 0x670], edi
je 0x1400229d1
test rbx, rbx
je 0x1400229d1
mov rdx, rbx
mov rcx, r8
call fcn.14000e890
test r12, r12
je 0x1400229d1
add qword [r12], rbx
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400229ea
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140022a14
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test r14, r14
je 0x140022a39
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test esi, esi
je 0x140022a4d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test esi, esi
sete dil
mov eax, edi
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.140068870
mov rbx, qword [rsp + 0x758]
add rsp, 0x700
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, r14d
bt r14d, 0x1c
jae 0x140022ab1
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
cmp eax, 0x13d
jne 0x140022aa0
mov esi, r14d
jmp 0x140022ad7
mov ecx, r14d
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
jmp 0x140022ad5
and ecx, 0x1fff0000
movzx eax, r14w
cmp ecx, 0x70000
mov esi, r14d
cmove esi, eax
jmp 0x140022ad7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov r14, r15
jmp 0x1400229d1
mov esi, 0x139f
jmp 0x1400229d1