Function at 0x140028f00
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4c0
mov qword [rsp + 0x1d8], 0xfffffffffffffffe
mov byte [rsp + 0x40], 0
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x44], 0
jmp 0x140028f45
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
movsxd rax, dword [rsp + 0x44]
mov qword [rsp + 0x90], rax
lea rcx, [0x14004f740]
call fcn.1400266f0
mov rcx, qword [rsp + 0x90]
cmp rcx, rax
jae 0x140029322
movsxd rax, dword [rsp + 0x44]
mov rdx, rax
lea rcx, [0x14004f740]
call fcn.140025d00
mov rcx, rax
call fcn.140016750
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140029242
movsxd rax, dword [rsp + 0x44]
mov rdx, rax
lea rcx, [0x14004f740]
call fcn.140025d00
mov qword [rsp + 0xa0], rax
lea rcx, [0x140044ecc]
call fcn.1403b01bf
nop
mov qword [rsp + 0x98], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.140016a90
cmp rax, 0xffffffffffffffff
je 0x140029114
movsxd rax, dword [rsp + 0x44]
mov rdx, rax
lea rcx, [0x14004f740]
call fcn.140025d00
mov qword [rsp + 0xd8], rax
lea rcx, [0x140044ed8]
call fcn.1403b01bf
nop
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x220]
call fcn.140010d20
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rax
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x200]
call fcn.14001fad0
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xe0], rax
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x1e0]
call fcn.140028a00
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call fcn.140016750
mov r8d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [rsp + 0x1e0]
call fcn.140010dd0
nop
lea rcx, [rsp + 0x200]
call fcn.140010dd0
nop
lea rcx, [rsp + 0x220]
call fcn.140010dd0
jmp 0x140029233
movsxd rax, dword [rsp + 0x44]
mov rdx, rax
lea rcx, [0x14004f740]
call fcn.140025d00
mov qword [rsp + 0x120], rax
lea rcx, [0x140044a44]
call fcn.1403b01bf
nop
mov qword [rsp + 0x100], rax
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x280]
call fcn.140010d20
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x108], rax
mov r8, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x260]
call fcn.14001fad0
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x128], rax
mov r8, qword [rsp + 0x120]
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x240]
call fcn.140028a00
mov qword [rsp + 0x130], rax
mov rcx, qword [rsp + 0x130]
call fcn.140016750
mov r8d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rcx, [rsp + 0x240]
call fcn.140010dd0
nop
lea rcx, [rsp + 0x260]
call fcn.140010dd0
nop
lea rcx, [rsp + 0x280]
call fcn.140010dd0
mov eax, dword [rsp + 0x44]
dec eax
mov dword [rsp + 0x44], eax
jmp 0x14002931d
movsxd rax, dword [rsp + 0x44]
mov rdx, rax
lea rcx, [0x14004f740]
call fcn.140025d00
mov rcx, rax
call fcn.140016750
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x70], rax
movsxd rax, dword [rsp + 0x44]
mov rdx, rax
lea rcx, [0x14004f740]
call fcn.140025d00
add rax, 0x20
mov rcx, rax
call fcn.140016750
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call qword [0x1400351d8]
sub rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x14002930c
mov rax, qword [0x1400352a8]
mov qword [rsp + 0x140], rax
lea rcx, [0x140044ee8]
call fcn.1403b01bf
nop
mov qword [rsp + 0x138], rax
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x140]
call fcn.140012720
mov qword [rsp + 0x148], rax
lea rdx, [0x140013fa0]
mov rcx, qword [rsp + 0x148]
call qword [0x140035288]
mov byte [rsp + 0x40], 1
jmp 0x140028f3b
lea rdx, [rsp + 0x78]
lea rcx, [0x14004f758]
call fcn.140026650
jmp 0x140028f3b
mov dword [rsp + 0x4c], 0
jmp 0x140029336
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
movsxd rax, dword [rsp + 0x4c]
mov qword [rsp + 0x150], rax
lea rcx, [0x14004f740]
call fcn.1400266f0
mov rcx, qword [rsp + 0x150]
cmp rcx, rax
jae 0x140029489
lea rax, [rsp + 0x3b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x4c]
mov rdx, rax
lea rcx, [0x14004f740]
call fcn.140025d00
mov rcx, rax
call fcn.140016750
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8d, 0x104
lea rdx, [rsp + 0x3b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movsxd rax, dword [rsp + 0x4c]
mov rdx, rax
lea rcx, [0x14004f740]
call fcn.140025d00
mov rcx, rax
call fcn.14002c030
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x140029427
movsxd rax, dword [rsp + 0x4c]
mov rdx, rax
lea rcx, [0x14004f758]
call fcn.140025d80
mov rax, qword [rax]
add rax, qword [rsp + 0x80]
mov qword [rsp + 0x158], rax
movsxd rax, dword [rsp + 0x4c]
mov rdx, rax
lea rcx, [0x14004f758]
call fcn.140025d80
mov rcx, qword [rsp + 0x158]
mov qword [rax], rcx
jmp 0x140029484
mov rax, qword [0x1400352a8]
mov qword [rsp + 0x168], rax
lea rcx, [0x140044ef8]
call fcn.1403b01bf
nop
mov qword [rsp + 0x160], rax
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x168]
call fcn.140012720
mov qword [rsp + 0x170], rax
lea rdx, [0x140013fa0]
mov rcx, qword [rsp + 0x170]
call qword [0x140035288]
mov byte [rsp + 0x40], 1
jmp 0x140029489
jmp 0x14002932c
mov dword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x4d0]
call fcn.140016750
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
mov edx, 0x120089
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x140029546
mov dword [rsp + 0x68], 0
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov ecx, eax
call fcn.14002c3dc
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov qword [0x14004f720], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [0x14004f720]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [0x14004f720], 0
je 0x140029709
mov rax, qword [0x14004f718]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x1400296b1
mov dword [rsp + 0x50], 0
jmp 0x140029586
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x50]
mov qword [rsp + 0x180], rax
lea rcx, [0x14004f728]
call fcn.140026770
mov rcx, qword [rsp + 0x180]
cmp rcx, rax
jae 0x14002962a
movsxd rax, dword [rsp + 0x50]
mov rdx, rax
lea rcx, [0x14004f728]
call fcn.140025d80
mov rax, qword [rax]
mov rcx, qword [0x14004f720]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
sub rax, qword [0x14004f040]
mov qword [rsp + 0x190], rax
movsxd rax, dword [rsp + 0x50]
mov rdx, rax
lea rcx, [0x14004f728]
call fcn.140025d80
mov rax, qword [rax]
mov rcx, qword [0x14004f720]
mov rdx, qword [rsp + 0x190]
mov qword [rcx + rax], rdx
jmp 0x14002957c
mov dword [rsp + 0x54], 0
jmp 0x14002963e
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
movsxd rax, dword [rsp + 0x54]
mov qword [rsp + 0x198], rax
lea rcx, [0x14004f770]
call fcn.140026770
mov rcx, qword [rsp + 0x198]
cmp rcx, rax
jae 0x1400296af
movsxd rax, dword [rsp + 0x54]
mov rdx, rax
lea rcx, [0x14004f758]
call fcn.140025d80
mov rax, qword [rax]
mov qword [rsp + 0x1a0], rax
movsxd rax, dword [rsp + 0x54]
mov rdx, rax
lea rcx, [0x14004f770]
call fcn.140025d80
mov rax, qword [rax]
mov rcx, qword [0x14004f720]
mov rdx, qword [rsp + 0x1a0]
mov qword [rcx + rax], rdx
jmp 0x140029634
jmp 0x140029707
mov rax, qword [0x1400352a8]
mov qword [rsp + 0x1b0], rax
lea rcx, [0x140044f08]
call fcn.1403b01bf
nop
mov qword [rsp + 0x1a8], rax
mov rdx, qword [rsp + 0x1a8]
mov rcx, qword [rsp + 0x1b0]
call fcn.140012720
mov qword [rsp + 0x1b8], rax
lea rdx, [0x140013fa0]
mov rcx, qword [rsp + 0x1b8]
call qword [0x140035288]
jmp 0x14002975f
mov rax, qword [0x1400352a8]
mov qword [rsp + 0x1c8], rax
lea rcx, [0x140044f18]
call fcn.1403b01bf
nop
mov qword [rsp + 0x1c0], rax
mov rdx, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1c8]
call fcn.140012720
mov qword [rsp + 0x1d0], rax
lea rdx, [0x140013fa0]
mov rcx, qword [rsp + 0x1d0]
call qword [0x140035288]
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x48], al
mov rcx, qword [rsp + 0x4d0]
call fcn.140010dd0
movzx eax, byte [rsp + 0x48]
add rsp, 0x4c0
pop rdi
ret