Function at 0x140019bf0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, rdx
mov rdi, rcx
xor esi, esi
lea rdx, [rbp - 0x41]
and qword [rbp - 0x41], rsi
xor ebx, ebx
and qword [rbp - 0x29], rsi
mov rcx, rax
mov r12, r8
mov qword [rbp - 0x21], rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
je 0x140019e28
lea rdx, [rbp - 0x29]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
je 0x140019e28
mov rax, qword [rbp - 0x29]
cmp qword [rbp - 0x41], rax
jne 0x140019e28
and dword [rbp - 0x49], ebx
lea r8d, [rsi + 0x20]
and qword [rbp - 0x31], rbx
lea rcx, [rbp - 0x11]
and qword [rbp - 0x39], rbx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
test rdi, rdi
je 0x140019e28
mov rax, qword [rdi + 0x180]
mov r13, qword [rdi + 0x188]
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140019e28
test r13, r13
je 0x140019e28
lea rax, [rbp + 0x7f]
mov rcx, rdi
lea r9, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x31]
lea esi, [rbx + 1]
call 0x14000a1e8
test eax, eax
je 0x140019e28
cmp qword [rbp - 0x31], rbx
je 0x140019e28
cmp qword [rbp - 0x39], rbx
je 0x140019e28
mov rax, qword [rbp - 0x41]
test rax, rax
je 0x140019e28
mov ecx, dword [rbp - 0x49]
lea r9, [rbp + 0x7f]
mov edi, dword [rbp - 0x49]
cmp rcx, rax
mov rdx, qword [rbp - 0x31]
mov rcx, qword [rbp + 0x6f]
cmovg edi, eax
and dword [rbp + 0x7f], 0
xor esi, esi
and qword [rbp + 0xf], rsi
mov rax, rbx
and qword [rbp + 0x17], rsi
mov r8d, edi
shr rax, 0x20
mov dword [rbp + 0x23], eax
mov rax, qword [rbp - 0x19]
mov qword [rbp + 0x27], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x1f], ebx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x140019d68
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
jne 0x140019e0c
mov eax, dword [rbp - 0x1d]
lea r9, [rbp + 0x7f]
mov rdx, qword [rbp - 0x39]
mov r8d, edi
and qword [rbp - 0x11], rsi
mov rcx, r12
and qword [rbp - 9], rsi
mov dword [rbp + 3], eax
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov dword [rbp - 1], ebx
mov qword [rbp + 7], r13
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x140019db7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
jne 0x140019e0c
mov rcx, qword [rbp + 0x6f]
lea r8, [rbp + 0x7f]
mov r9d, 1
lea rdx, [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
nop dword [rax + rax]
mov r9d, 1
lea r8, [rbp + 0x7f]
lea rdx, [rbp - 0x11]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
mov r8d, edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
mov eax, 1
cmove esi, eax
mov rax, qword [rbp - 0x41]
mov ecx, edi
add rbx, rcx
sub rax, rcx
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x41], rax
test esi, esi
jne 0x140019cf1
mov rbx, qword [rsp + 0xe0]
mov eax, esi
add rsp, 0xb0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret