Function at 0x180065380
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0xffffffffffffffff
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x60]
call fcn.180122cc0
mov r11d, eax
mov rax, qword [rsp + 0x70]
mov dword [rax], r11d
mov rax, qword [rsp + 0x70]
cmp dword [rax], 0
jne 0x1800654d6
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x180065443
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x70]
mov dword [rax], r11d
mov rax, qword [rsp + 0x70]
mov r9d, dword [rax]
mov rax, qword [rsp + 0x70]
mov r8d, dword [rax]
mov rdx, qword [rsp + 0x60]
lea rcx, [0x180001770]
call fcn.1800892c0
mov eax, 5
jmp 0x1800655e7
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r11d, eax
mov rax, qword [rsp + 0x68]
mov dword [rax], r11d
mov rax, qword [rsp + 0x68]
cmp dword [rax], 0xffffffff
jne 0x1800654b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov rax, qword [rsp + 0x70]
mov dword [rax], r11d
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x70]
mov r9d, dword [rax]
xor r8d, r8d
mov edx, dword [rsp + 0x40]
lea rcx, [0x1800016e0]
call fcn.1800892c0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 5
jmp 0x1800655e7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0x68]
movsxd rcx, dword [r11]
sub rcx, 0x2c
mov rax, qword [rsp + 0x68]
mov dword [rax], ecx
xor eax, eax
jmp 0x1800655e7
mov rcx, qword [rsp + 0x60]
call fcn.180122b70
mov r11d, eax
mov rax, qword [rsp + 0x70]
mov dword [rax], r11d
mov rax, qword [rsp + 0x70]
cmp dword [rax], 0
jne 0x1800655bc
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.180125460
mov r11d, eax
mov rax, qword [rsp + 0x70]
mov dword [rax], r11d
mov rax, qword [rsp + 0x70]
cmp dword [rax], 0
je 0x180065550
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x70]
mov r9d, dword [rax]
mov r8, qword [rsp + 0x60]
lea rdx, [rsp + 0x48]
lea rcx, [0x1800014a0]
call fcn.1800892c0
mov eax, 5
jmp 0x1800655e7
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
call fcn.1801265e0
mov r11d, eax
mov rax, qword [rsp + 0x70]
mov dword [rax], r11d
mov rax, qword [rsp + 0x70]
cmp dword [rax], 0
je 0x1800655ae
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x70]
mov r9d, dword [rax]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x48]
lea rcx, [0x1800013f0]
call fcn.1800892c0
lea rcx, [rsp + 0x48]
call fcn.180125b00
mov eax, 5
jmp 0x1800655e7
lea rcx, [rsp + 0x48]
call fcn.180125b00
xor eax, eax
jmp 0x1800655e7
mov rax, qword [rsp + 0x70]
mov dword [rax], 0x32
mov rax, qword [rsp + 0x70]
mov r8d, dword [rax]
mov rax, qword [rsp + 0x70]
mov edx, dword [rax]
lea rcx, [0x180001650]
call fcn.1800892c0
mov eax, 0x16
add rsp, 0x58
ret