Function at 0x180018ff0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x1800b7040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xor ebx, ebx
lea rdx, str.MetroExodus.exe
cmp qword [0x1800defb8], 0xf
cmova rdx, qword [str.MetroExodus.exe]
lea rcx, [rsp + 0x88]
call fcn.180018cd0
nop
mov rcx, qword [rsp + 0x98]
test rcx, rcx
jne 0x18001907a
mov ecx, dword [0x1800dee9c]
cmp dword [0x1800e0508], ecx
cmovg ecx, dword [0x1800e0508]
cmp ecx, 0xfffffffe
jl 0x180019245
lea r9, str.CreateModDirectory:_can_not_create_mod_directory
lea r8d, [rbx + 0x3b]
lea rdx, str.C:UsersTOTOMAN2_source_reposMetroExodus_EE_QolsModFileOpFileOp.cpp
lea ecx, [rbx - 2]
call fcn.180060b60
jmp 0x1800192d7
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 1
jb 0x180019339
lea r9, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0xf
cmova r9, qword [rsp + 0x88]
mov qword [rsp + 0x30], 1
lea rax, [0x18007fc98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x68]
call fcn.180012600
nop
lea rdx, [0x1800e0d90]
cmp qword [0x1800e0da8], 0xf
cmova rdx, qword [0x1800e0d90]
mov r8, qword [0x1800e0da0]
lea rcx, [rsp + 0x68]
call fcn.180012200
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [0x1800deef8]
cmp rdx, 0xf
jbe 0x18001915f
mov rcx, qword [0x1800deee0]
inc rdx
cmp rdx, 0x1000
jb 0x180019150
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800191ab
mov rcx, r8
call fcn.1800772e4
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [0x1800deee0], xmm0
movups xmmword [0x1800deef0], xmm1
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x1800191b7
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800191b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800191b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1800772e4
lea rbx, [0x1800deee0]
mov rcx, rbx
cmp qword [0x1800deef8], 0xf
cmova rcx, qword [0x1800deee0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x180019290
mov rcx, rbx
cmp qword [0x1800deef8], 0xf
cmova rcx, qword [0x1800deee0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [0x1800dee9c]
test eax, eax
jne 0x18001924c
cmp dword [0x1800e0508], ecx
cmovg ecx, dword [0x1800e0508]
cmp ecx, 0xfffffffe
jl 0x180019245
cmp qword [0x1800deef8], 0xf
cmova rbx, qword [0x1800deee0]
mov qword [rsp + 0x20], rbx
lea r9, str.CreateModDirectory:_failed_to_create_mod_directory:__s
lea r8d, [rax + 0x45]
lea rdx, str.C:UsersTOTOMAN2_source_reposMetroExodus_EE_QolsModFileOpFileOp.cpp
lea ecx, [rax - 2]
call fcn.180060b60
xor bl, bl
jmp 0x1800192d7
mov eax, ecx
mov edx, dword [0x1800e0508]
cmp edx, ecx
cmovg eax, edx
test eax, eax
js 0x18001929c
mov rax, rbx
cmp qword [0x1800deef8], 0xf
cmova rax, qword [0x1800deee0]
mov qword [rsp + 0x20], rax
lea r9, str.CreateModDirectory:_succes_creating_mod_directory:__s
mov r8d, 0x49
lea rdx, str.C:UsersTOTOMAN2_source_reposMetroExodus_EE_QolsModFileOpFileOp.cpp
xor ecx, ecx
call fcn.180060b60
mov ecx, dword [0x1800dee9c]
mov edx, dword [0x1800e0508]
cmp edx, ecx
cmovg ecx, edx
test ecx, ecx
js 0x1800192d5
cmp qword [0x1800deef8], 0xf
cmova rbx, qword [0x1800deee0]
mov qword [rsp + 0x20], rbx
lea r9, str.CreateModDirectory:_not_creating_directory__s_cause_it_already_exists.
mov r8d, 0x4d
lea rdx, str.C:UsersTOTOMAN2_source_reposMetroExodus_EE_QolsModFileOpFileOp.cpp
xor ecx, ecx
call fcn.180060b60
mov bl, 1
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0xf
jbe 0x18001931d
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180019318
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180019318
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800772e4
movzx eax, bl
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.180076f10
add rsp, 0xb0
pop rbx
ret
call fcn.18000e7d0
nop
int3