Function at 0x140010e4c
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 [0x14006c080]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov rax, qword [rbp + 0x660]
xor edi, edi
mov r13, qword [rbp + 0x688]
mov r15, rdx
or qword [rsp + 0x60], 0xffffffffffffffff
mov r12, rcx
mov qword [rbp - 0x48], rax
lea rcx, [rsp + 0x70]
mov rax, qword [rbp + 0x668]
lea ebx, [rdi + 0x20]
mov qword [rsp + 0x48], r8
xor edx, edx
mov r8d, ebx
mov qword [rbp - 0x50], rax
mov esi, edi
mov qword [rsp + 0x68], rdi
mov r14d, edi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x58], rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, ebx
lea rcx, [rbp - 0x70]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov ebx, edi
test r13, r13
je 0x140010eea
mov qword [r13], rdi
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140011227
mov ecx, dword [r15 + 8]
sub ecx, 1
je 0x140010f12
cmp ecx, 1
jne 0x140011227
mov rcx, qword [r15]
jmp 0x140010fc2
cmp dword [r15 + 0x18], edi
jne 0x140010fbe
mov r8, rdi
test r12, r12
je 0x140010f4e
cmp dword [r12], 0xfeedf001
jne 0x140010f33
mov rax, r12
jmp 0x140010f42
cmp dword [r12], 0xfeedf002
jne 0x140010f4e
mov rax, qword [r12 + 8]
test rax, rax
je 0x140010f4e
mov r8, qword [rax + 0x218]
mov edx, 0x30c
lea rcx, [rbp - 0x30]
call fcn.140003908
test eax, eax
jns 0x140010f68
movzx esi, ax
jmp 0x140011263
lea rcx, [rbp - 0x30]
call fcn.140009a10
test eax, eax
js 0x140010f60
lea rcx, [rbp - 0x30]
call fcn.14000ac64
mov qword [r15 + 0x20], rax
test rax, rax
jne 0x140010f8f
lea esi, [rax + 0xe]
jmp 0x140011263
mov rcx, qword [r15]
mov r8, rax
call fcn.1400114dc
test eax, eax
jne 0x140010fb1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
jmp 0x140011263
mov rdx, qword [rsp + 0x48]
mov dword [r15 + 0x18], 1
mov rcx, qword [r15 + 0x20]
mov rdx, qword [rdx + 0x28]
call fcn.1400256bc
mov r15, rax
mov r14, rax
test rax, rax
je 0x140011227
xor r8d, r8d
xor edx, edx
mov rcx, rax
call 0x1400090d4
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140011009
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x140010f9e
lea esi, [rax + 0x1f]
jmp 0x140011263
mov dword [rsp + 0x28], 0x48000000
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, rax
call fcn.140006568
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x140010f9e
cmp dword [0x14006c880], edi
lea rdx, [rsp + 0x48]
mov rcx, rax
je 0x140011052
call fcn.140004354
jmp 0x14001105e
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x140011075
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
jmp 0x140011248
test r12, r12
je 0x140011357
mov r8, qword [r12 + 0x180]
mov rdx, qword [r12 + 0x188]
test r8, r8
je 0x140011357
test rdx, rdx
je 0x140011357
mov ecx, dword [0x14006c89c]
xor r9d, r9d
mov rax, qword [0x14006c898]
mov dword [rbp - 0x7c], ecx
mov dword [rbp - 0x5c], ecx
mov rcx, r12
mov qword [rbp - 0x78], r8
lea r8, [rsp + 0x50]
mov qword [rbp - 0x58], rdx
lea rdx, [rsp + 0x58]
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x60], eax
mov qword [rsp + 0x20], rdi
call 0x14000a1e8
test eax, eax
je 0x140011357
cmp qword [rsp + 0x58], rdi
je 0x140011357
cmp dword [rsp + 0x50], edi
je 0x140011357
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140011227
mov r14d, dword [rsp + 0x50]
mov rcx, rax
shr rcx, 0x20
test ecx, ecx
jne 0x14001111d
cmp r14d, eax
cmova r14d, eax
mov rdx, qword [rsp + 0x58]
lea r9, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov r8d, r14d
mov dword [rsp + 0x20], edi
call fcn.1400063b8
test eax, eax
je 0x140011341
mov eax, r14d
mov qword [rbp - 0x40], rax
cmp dword [rbp + 0x670], edi
je 0x140011169
add rbx, rax
mov rcx, r12
mov rdx, rbx
call fcn.140004e8c
test r13, r13
je 0x140011166
add qword [r13], rbx
mov rbx, rdi
mov r8, qword [rsp + 0x58]
lea rax, [rbp - 0x70]
mov rdx, qword [rsp + 0x48]
mov r9d, r14d
mov rcx, qword [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x48]
call qword [0x14005b848]
mov r14d, eax
test eax, eax
js 0x1400112f6
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 + 0x48]
sub rax, rdx
mov dword [rbp - 0x60], ecx
mov qword [rsp + 0x48], rax
jne 0x140011106
mov r14, r15
cmp dword [rbp + 0x670], edi
je 0x140011248
test rbx, rbx
je 0x140011248
mov rdx, rbx
mov rcx, r12
call fcn.140004e8c
test r13, r13
je 0x140011248
add qword [r13], rbx
mov rcx, qword [rsp + 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140011263
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14001128d
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test r14, r14
je 0x1400112b2
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test esi, esi
je 0x1400112c6
mov ecx, esi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test esi, esi
sete dil
mov eax, edi
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.1400582e0
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 0x140011329
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
cmp eax, 0x13d
jne 0x140011318
mov esi, r14d
jmp 0x14001134f
mov ecx, r14d
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
jmp 0x14001134d
and ecx, 0x1fff0000
movzx eax, r14w
cmp ecx, 0x70000
mov esi, r14d
cmove esi, eax
jmp 0x14001134f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov r14, r15
jmp 0x140011248
mov esi, 0x139f
jmp 0x140011248