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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov qword [rsp + 0x130], 0xfffffffffffffffe
mov rax, qword [0x1402aa808]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov dword [rsp + 0x98], 0
call fcn.140018340
add rax, 0x158
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.14000c890
nop
mov qword [rsp + 0xa0], 0
jmp 0x14004f95f
mov rax, qword [rsp + 0xa0]
inc rax
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x78]
call fcn.140011510
cmp qword [rsp + 0xa0], rax
jae 0x14004fc28
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x78]
call fcn.140010b80
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140010440
nop
lea rcx, [rsp + 0xa8]
call fcn.140003530
lea rdx, [0x140207bd8]
mov rcx, rax
call fcn.1401acf04
test eax, eax
jne 0x14004fab1
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x78]
call fcn.140010b80
add rax, 0x78
mov rcx, rax
call fcn.140003530
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.140018590
nop
lea rcx, [rsp + 0xd0]
call fcn.14002fd40
test rax, rax
je 0x14004fa9f
lea rcx, [rsp + 0xd0]
call fcn.140001dc0
test eax, eax
jle 0x14004fa9f
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.140001da0
mov rcx, qword [rsp + 0x160]
add rcx, 0x138
mov rdx, rax
call fcn.14004fe40
mov rcx, qword [rsp + 0x160]
mov dword [rcx + 0x238], eax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x78]
call fcn.140010b80
add rax, 0x28
mov rcx, rax
call fcn.140003530
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400033c0
nop
mov rax, qword [rsp + 0x160]
add rax, 0x218
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.1400130c0
nop
lea rcx, [rsp + 0x28]
call fcn.140003430
nop
lea rcx, [rsp + 0xd0]
call fcn.140001d50
jmp 0x14004fc16
xor r8d, r8d
lea rdx, [0x140207c78]
lea rcx, [rsp + 0xa8]
call fcn.1400035a0
test rax, rax
jne 0x14004faf4
cmp dword [rsp + 0x98], 0
je 0x14004fae9
lea rcx, [rsp + 0xa8]
call fcn.140003430
jmp 0x14004f94c
mov dword [rsp + 0x98], 1
lea rax, [rsp + 0x100]
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0xa8]
call fcn.140003530
mov rdx, rax
mov rcx, qword [rsp + 0x128]
call fcn.1400033c0
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x140], rax
call fcn.140018340
add rax, 0x158
mov rdx, qword [rsp + 0x140]
mov rcx, rax
call fcn.14000c5f0
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.1400033c0
nop
lea rcx, [rsp + 0xd8]
call fcn.140003530
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004fb91
mov rax, qword [rsp + 0x160]
cmp dword [rax + 0x23c], 0
je 0x14004fc08
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x78]
call fcn.140010b80
add rax, 0x78
mov rcx, rax
call fcn.140003530
mov rcx, qword [rsp + 0x160]
add rcx, 0x138
mov rdx, rax
call fcn.14004fe40
lea rcx, [rsp + 0xd8]
call fcn.140003530
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400033c0
nop
mov rax, qword [rsp + 0x160]
add rax, 0x218
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400130c0
nop
lea rcx, [rsp + 0x50]
call fcn.140003430
nop
lea rcx, [rsp + 0xd8]
call fcn.140003430
nop
lea rcx, [rsp + 0xa8]
call fcn.140003430
jmp 0x14004f94c
mov rax, qword [rsp + 0x160]
add rax, 0x138
xor edx, edx
mov rcx, rax
call fcn.140038d60
nop
lea rcx, [rsp + 0x78]
call fcn.1400114e0
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.1401ab2d0
add rsp, 0x158
ret