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

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x18011e040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xor ebx, ebx
lea rdx, [0x180149878]
cmp qword [0x180149890], 0xf
cmova rdx, qword [0x180149878]
lea rcx, [rsp + 0x48]
call fcn.18000ed50
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x18000f0f4
mov ecx, dword [0x180146028]
cmp dword [0x1801485b8], ecx
cmovg ecx, dword [0x1801485b8]
cmp ecx, 0xfffffffe
jl 0x18000f27b
lea r9, str.CreateModDirectory:_can_not_create_mod_directory
lea r8d, [rbx + 0x4d]
lea rdx, str.C:UsersTOTOMAN2_source_reposNewColussus_Qols_ModFileOpFileOp.cpp
lea ecx, [rbx - 2]
call fcn.1800a9f80
jmp 0x18000f30d
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 1
jb 0x18000f333
lea r9, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova r9, qword [rsp + 0x48]
mov qword [rsp + 0x30], 1
lea rax, [0x1800f7098]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x88]
call fcn.180009810
nop
lea rdx, [0x180146b88]
cmp qword [0x180146ba0], 0xf
cmova rdx, qword [0x180146b88]
mov r8, qword [0x180146b98]
lea rcx, [rsp + 0x88]
call fcn.180007c30
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rsp + 0x68]
lea rbx, [0x1801460d8]
mov rcx, rbx
call fcn.180009710
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x18000f1e7
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f1e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000f1e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800aca84
nop
lea rcx, [rsp + 0x88]
call fcn.180002fe0
mov rcx, rbx
cmp qword [0x1801460f0], 0xf
cmova rcx, qword [0x1801460d8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x18000f2c6
mov rcx, rbx
cmp qword [0x1801460f0], 0xf
cmova rcx, qword [0x1801460d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [0x180146028]
test eax, eax
jne 0x18000f282
cmp dword [0x1801485b8], ecx
cmovg ecx, dword [0x1801485b8]
cmp ecx, 0xfffffffe
jl 0x18000f27b
cmp qword [0x1801460f0], 0xf
cmova rbx, qword [0x1801460d8]
mov qword [rsp + 0x20], rbx
lea r9, str.CreateModDirectory:_failed_to_create_mod_directory:__s
lea r8d, [rax + 0x57]
lea rdx, str.C:UsersTOTOMAN2_source_reposNewColussus_Qols_ModFileOpFileOp.cpp
lea ecx, [rax - 2]
call fcn.1800a9f80
xor bl, bl
jmp 0x18000f30d
mov eax, ecx
mov edx, dword [0x1801485b8]
cmp edx, ecx
cmovg eax, edx
test eax, eax
js 0x18000f2d2
mov rax, rbx
cmp qword [0x1801460f0], 0xf
cmova rax, qword [0x1801460d8]
mov qword [rsp + 0x20], rax
lea r9, str.CreateModDirectory:_succes_creating_mod_directory:__s
mov r8d, 0x5b
lea rdx, str.C:UsersTOTOMAN2_source_reposNewColussus_Qols_ModFileOpFileOp.cpp
xor ecx, ecx
call fcn.1800a9f80
mov ecx, dword [0x180146028]
mov edx, dword [0x1801485b8]
cmp edx, ecx
cmovg ecx, edx
test ecx, ecx
js 0x18000f30b
cmp qword [0x1801460f0], 0xf
cmova rbx, qword [0x1801460d8]
mov qword [rsp + 0x20], rbx
lea r9, str.CreateModDirectory:_not_creating_directory__s_cause_it_already_exists.
mov r8d, 0x5f
lea rdx, str.C:UsersTOTOMAN2_source_reposNewColussus_Qols_ModFileOpFileOp.cpp
xor ecx, ecx
call fcn.1800a9f80
mov bl, 1
lea rcx, [rsp + 0x48]
call fcn.180002fe0
movzx eax, bl
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1800ac6b0
add rsp, 0xb0
pop rbx
ret
call fcn.180002d30
nop
int3