Function at 0x1400016d0
Capabilities:
Allocate or change rwx memory
Get common file path
Get file size
Read file on windows

Disassembly:
sub rsp, 0x1b8
mov qword [rsp + 0x1a8], rcx
mov qword [rsp + 0x1a0], 0
lea rcx, [rsp + 0x90]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rsp + 0x90]
mov edx, 0x104
lea r8, str._ntdll.dll
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
test byte [0x14000a010], 1
je 0x14000185c
mov byte [0x14000a010], 0
lea rcx, [rsp + 0x90]
mov edx, 0x80000000
mov r8d, 1
xor eax, eax
mov r9d, eax
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x78], rax
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x78], rax
jne 0x1400017bf
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x1b0], rax
jmp 0x1400019b3
mov dword [rsp + 0x74], 0
mov rcx, qword [rsp + 0x78]
xor eax, eax
mov edx, eax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0xffffffff
je 0x1400017e8
cmp dword [rsp + 0x70], 0
jne 0x1400017fd
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x1b0], rax
jmp 0x1400019b3
mov eax, dword [rsp + 0x70]
mov edx, eax
xor eax, eax
mov ecx, eax
mov r8d, 0x1000
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x1400100a0], rax
mov rcx, qword [rsp + 0x78]
mov rdx, qword [0x1400100a0]
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0x74]
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp qword [rsp + 0x78], 0
je 0x14000185a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000185c
mov rax, qword [0x1400100a0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x68]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
add rax, 0x108
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
sub rax, rcx
mov qword [rsp + 0x48], rax
mov word [rsp + 0x46], 0
movzx eax, word [rsp + 0x46]
mov rcx, qword [rsp + 0x60]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x14000196e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
movzx edx, word [rsp + 0x46]
imul rdx, rdx, 0x28
add rcx, rdx
mov ecx, dword [rcx + 0xc]
cmp rax, rcx
jb 0x140001959
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
movzx edx, word [rsp + 0x46]
imul rdx, rdx, 0x28
add rcx, rdx
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x58]
movzx r8d, word [rsp + 0x46]
imul r8, r8, 0x28
add rdx, r8
add ecx, dword [rdx + 0x10]
mov ecx, ecx
cmp rax, rcx
ja 0x140001959
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
movzx edx, word [rsp + 0x46]
imul rdx, rdx, 0x28
add rcx, rdx
mov ecx, dword [rcx + 0xc]
sub rax, rcx
mov rcx, qword [rsp + 0x58]
movzx edx, word [rsp + 0x46]
imul rdx, rdx, 0x28
add rcx, rdx
mov ecx, dword [rcx + 0x14]
add rax, rcx
mov qword [rsp + 0x50], rax
jmp 0x14000196e
jmp 0x14000195b
mov ax, word [rsp + 0x46]
add ax, 1
mov word [rsp + 0x46], ax
jmp 0x1400018b6
mov rax, qword [0x1400100a0]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x1a0], rax
mov rdx, qword [rsp + 0x1a8]
mov r8, qword [rsp + 0x1a0]
mov r9, qword [rsp + 0x50]
lea rcx, str.funcation_name:__s__address:_Ix__Offset:_Ix_n
call sym.printf_char_const__::_
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
add rsp, 0x1b8
ret