Function at 0x1400a4cb0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x7c], 0
je 0x1400a4d0b
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x7c], 0
jne 0x1400a4cfa
mov dword [rsp + 0x78], 1
jmp 0x1400a4d02
mov dword [rsp + 0x78], 0
mov eax, dword [rsp + 0x78]
jmp 0x1400a507d
xor eax, eax
test eax, eax
jne 0x1400a4cd4
cmp dword [rsp + 0xb8], 0
ja 0x1400a4d40
cmp dword [rsp + 0xb8], 0
jbe 0x1400a4d2f
mov dword [rsp + 0x7c], 1
jmp 0x1400a4d37
mov dword [rsp + 0x7c], 0
mov eax, dword [rsp + 0x7c]
jmp 0x1400a507d
xor eax, eax
test eax, eax
jne 0x1400a4d11
cmp dword [rsp + 0xb8], 0x10
jb 0x1400a4d7e
cmp dword [rsp + 0xb8], 0x10
jae 0x1400a4d67
mov dword [rsp + 0x80], 1
jmp 0x1400a4d72
mov dword [rsp + 0x80], 0
mov eax, dword [rsp + 0x80]
jmp 0x1400a507d
xor eax, eax
test eax, eax
jne 0x1400a4d46
cmp qword [rsp + 0xb0], 0
jne 0x1400a4dbe
cmp qword [rsp + 0xb0], 0
je 0x1400a4da7
mov dword [rsp + 0x84], 1
jmp 0x1400a4db2
mov dword [rsp + 0x84], 0
mov eax, dword [rsp + 0x84]
jmp 0x1400a507d
xor eax, eax
test eax, eax
jne 0x1400a4d84
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x48]
call fcn.1400a55f0
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r11, rax
mov rax, qword [rsp + 0xa0]
mov qword [rax + 0x38], r11
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x38], 0xffffffffffffffff
jne 0x1400a4e6c
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x38], 0xffffffffffffffff
je 0x1400a4e43
mov dword [rsp + 0x88], 1
jmp 0x1400a4e4e
mov dword [rsp + 0x88], 0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x48]
call fcn.1400a5640
mov eax, dword [rsp + 0x58]
jmp 0x1400a507d
xor eax, eax
test eax, eax
jne 0x1400a4e18
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400a4eca
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0xa0]
mov qword [r11 + 0x38], 0xffffffffffffffff
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x48]
call fcn.1400a5640
mov eax, dword [rsp + 0x5c]
jmp 0x1400a507d
mov rcx, qword [rsp + 0xa0]
mov eax, dword [rsp + 0x40]
mov dword [rcx + 0x50], eax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r11, rax
mov rax, qword [rsp + 0xa0]
mov qword [rax + 0x40], r11
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x40], 0
jne 0x1400a4f62
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0xa0]
mov qword [r11 + 0x38], 0xffffffffffffffff
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x48]
call fcn.1400a5640
mov eax, dword [rsp + 0x60]
jmp 0x1400a507d
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r11, rax
mov rax, qword [rsp + 0xa0]
mov qword [rax + 0x48], r11
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x48], 0
jne 0x1400a5009
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0xa0]
mov qword [r11 + 0x38], 0xffffffffffffffff
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0xa0]
mov qword [r11 + 0x40], 0
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x48]
call fcn.1400a5640
mov eax, dword [rsp + 0x64]
jmp 0x1400a507d
mov r9d, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x68
mov r8, qword [rsp + 0xb0]
mov edx, 0x10
call fcn.1400ad128
mov r11, qword [rsp + 0xa0]
mov eax, dword [rsp + 0xb8]
mov dword [r11 + 0x78], eax
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x64], 0
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x7c], 1
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x7c]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x48]
call fcn.1400a5640
mov eax, dword [rsp + 0x68]
add rsp, 0x98
ret