Function at 0x1400494b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x488
mov rax, qword [0x140068040]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov dword [rsp + 0x30], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x10], 0
mov edx, 0x104
lea rcx, [rsp + 0x108]
call fcn.140004de0
nop
lea rax, [rsp + 0x108]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
sar rax, 1
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x90], rax
xor eax, eax
imul rax, rax, 2
mov rcx, qword [rsp + 0x90]
add rax, qword [rcx]
mov qword [rsp + 0x98], rax
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400495c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400495e9
lea rdx, str.Could_not_get_path_to_loader.
lea rcx, [rsp + 0x178]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0x178]
call fcn.1400263a8
lea rax, [rsp + 0x108]
mov qword [rsp + 0xa8], rax
xor eax, eax
imul rax, rax, 2
mov rcx, qword [rsp + 0xa8]
add rax, qword [rcx]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x498]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rcx, rax
call fcn.1400065d0
nop
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x38]
cmp word [rax + rcx*2], 0
jne 0x140049646
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xc0], rax
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x498]
call fcn.140005480
nop
mov rax, qword [rsp + 0x498]
mov qword [rsp + 0x170], rax
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov r8, 0xffffffffffffffff
lea rdx, [0x14005eaf8]
mov rcx, qword [rsp + 0x498]
call fcn.140002b20
inc rax
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xc8]
xor r8d, r8d
mov rdx, qword [rsp + 0x498]
lea rcx, [rsp + 0x1e0]
call fcn.140003b30
mov qword [rsp + 0x120], rax
mov eax, dword [rsp + 0x30]
or eax, 2
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x498], rax
jne 0x140049723
jmp 0x14004976a
mov rax, qword [rsp + 0x498]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x80], 0
mov rcx, qword [rsp + 0x498]
call fcn.140003430
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x498]
call fcn.140003740
and dword [rsp + 0x30], 0xfffffffd
lea rcx, [rsp + 0x1e0]
call fcn.140003430
nop
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x138], rax
mov rdx, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x498]
call fcn.140002de0
mov rcx, qword [rsp + 0x498]
call fcn.140002c00
xor r9d, r9d
lea r8, [rsp + 0x260]
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x1400497f4
lea rdx, str.Could_not_get_full_path_to_module.
lea rcx, [rsp + 0x190]
call fcn.140001890
lea rdx, [0x140066590]
lea rcx, [rsp + 0x190]
call fcn.1400263a8
mov eax, 2
imul rax, rax, 0
lea rax, [rsp + rax + 0x260]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov rcx, rax
call fcn.1400065d0
nop
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x40]
cmp word [rax + rcx*2], 0
jne 0x140049841
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xe0], rax
mov r8, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x1c0]
call fcn.140005480
nop
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x498], rax
jne 0x1400498a0
jmp 0x1400498e8
mov rax, qword [rsp + 0x498]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x148], rax
mov dword [rsp + 0x84], 0
mov rcx, qword [rsp + 0x498]
call fcn.140003430
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x498]
call fcn.140003740
nop
lea rcx, [rsp + 0x1c0]
call fcn.140003430
nop
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x150], rax
mov rcx, qword [rsp + 0x498]
call fcn.140002c00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140049a24
mov rdx, qword [rsp + 0x498]
lea rcx, [rsp + 0x200]
call fcn.14004a9c0
nop
lea r8, [rsp + 0x200]
lea rdx, str.Could_not_find_module._Path:_
lea rcx, [rsp + 0x240]
call fcn.140004ab0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
lea r8, [0x14005eb24]
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x220]
call fcn.140004bc0
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x1a8]
call fcn.140001850
lea rdx, [0x140066590]
lea rcx, [rsp + 0x1a8]
call fcn.1400263a8
nop
lea rcx, [rsp + 0x220]
call fcn.140003ca0
lea rax, [rsp + 0x220]
mov qword [rsp + 0x158], rax
lea rcx, [rsp + 0x240]
call fcn.140003ca0
lea rax, [rsp + 0x240]
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0x200]
call fcn.140003ca0
lea rax, [rsp + 0x200]
mov qword [rsp + 0x168], rax
lea rcx, [rsp + 0x108]
call fcn.140003210
mov rax, qword [rsp + 0x498]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140024720
add rsp, 0x488
ret