Function at 0x180004490
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1800f0938]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rcx
mov rbp, qword [rcx + 0x18]
xor r12d, r12d
mov rbx, r12
test rbp, rbp
je 0x180004622
cmp rbx, qword [rdi + 0x18]
jbe 0x1800044df
call fcn.18009a780
cmp qword [rdi + 0x20], 8
jb 0x1800044ec
mov rax, qword [rdi + 8]
jmp 0x1800044f0
lea rax, [rdi + 8]
cmp word [rax + rbx*2], 0x2f
je 0x18000451e
cmp rbx, qword [rdi + 0x18]
jbe 0x180004502
call fcn.18009a780
cmp qword [rdi + 0x20], 8
jb 0x18000450f
mov rax, qword [rdi + 8]
jmp 0x180004513
lea rax, [rdi + 8]
cmp word [rax + rbx*2], 0x5c
jne 0x180004615
mov r9, rbx
xor r8d, r8d
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.180002ed0
nop
cmp qword [rsp + 0x40], 0
jne 0x180004555
cmp qword [rsp + 0x48], 8
jb 0x180004615
mov rcx, qword [rsp + 0x30]
call fcn.180098980
jmp 0x180004615
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1800030f0
nop
mov edx, 0x24
lea rcx, [rsp + 0x50]
call fcn.180015170
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800045c0
cmp qword [rsp + 0x70], 8
jb 0x180004603
mov rcx, qword [rsp + 0x58]
call fcn.180098980
jmp 0x180004603
cmp qword [rsp + 0x70], 8
jb 0x1800045d2
mov rcx, qword [rsp + 0x58]
call fcn.180098980
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180004603
cmp qword [rsp + 0x48], 8
jb 0x180004615
mov rcx, qword [rsp + 0x30]
call fcn.180098980
jmp 0x180004615
cmp qword [rsp + 0x48], 8
jb 0x180004615
mov rcx, qword [rsp + 0x30]
call fcn.180098980
add rbx, 1
cmp rbx, rbp
jb 0x1800044d4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.1800030f0
nop
mov edx, 0x24
lea rcx, [rsp + 0x28]
call fcn.180015170
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18000468b
cmp qword [rsp + 0x48], 8
jb 0x1800046be
mov rcx, qword [rsp + 0x30]
call fcn.180098980
jmp 0x1800046be
cmp qword [rsp + 0x48], 8
jb 0x18000469d
mov rcx, qword [rsp + 0x30]
call fcn.180098980
cmp qword [rdi + 0x20], 8
jb 0x1800046aa
mov rcx, qword [rdi + 8]
jmp 0x1800046ae
lea rcx, [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x180004741
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.1800030f0
nop
mov edx, 0x24
lea rcx, [rsp + 0x28]
call fcn.180015170
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18000472d
test al, 0x10
je 0x18000472d
cmp qword [rsp + 0x48], 8
jb 0x180004729
mov rcx, qword [rsp + 0x30]
call fcn.180098980
mov al, 1
jmp 0x180004741
cmp qword [rsp + 0x48], 8
jb 0x18000473f
mov rcx, qword [rsp + 0x30]
call fcn.180098980
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180099050
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret