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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x18050e060]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
xor eax, eax
mov r13, qword [0x18050fe98]
mov rdi, qword [0x18050fe90]
cmp rdi, r13
je 0x18005e24a
nop
mov rdx, rdi
lea rcx, [rbp - 0x31]
call fcn.1800475d0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18005e1b9
mov rdx, qword [rbx]
lea rcx, [rbp - 0x31]
mov r15, qword [rbp - 0x19]
cmp r15, 0x10
setae r12b
mov rsi, qword [rbp - 0x31]
cmovae rcx, rsi
mov r8, qword [rbp - 0x21]
cmp r8, qword [rbx + 0x10]
jne 0x18005e1e9
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18005e1e9
mov r14b, 1
jmp 0x18005e1ec
xor r14b, r14b
test r12b, r12b
je 0x18005e222
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x18005e21a
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005e52e
mov rcx, rsi
call fcn.180101e04
test r14b, r14b
jne 0x18005e234
add rdi, 0x38
cmp rdi, r13
jne 0x18005e1a0
mov r13, qword [0x18050fe98]
xor eax, eax
cmp rdi, r13
je 0x18005e24a
mov rax, rdi
jmp 0x18005e53d
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
movdqa xmm1, xmmword [0x1804f9d90]
movdqu xmmword [rbp - 1], xmm1
mov byte [rbp - 0x11], 0
movdqu xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rax
lea rax, [rbp - 0x11]
cmp rax, rbx
je 0x18005e28e
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18005e281
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x11]
call fcn.18005f320
lea r15, [0x180510418]
mov rcx, r15
cmp qword [0x180510430], 0x10
cmovae rcx, qword [0x180510418]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18005e4ac
shr eax, 4
test al, 1
je 0x18005e4ac
mov r12, qword [0x180510428]
mov r13, qword [rbx + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r12
cmp rax, r13
jb 0x18005e570
cmp qword [0x180510430], 0x10
cmovae r15, qword [0x180510418]
cmp qword [rbx + 0x18], 0x10
jb 0x18005e300
mov rbx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
lea rax, [r12 + r13]
mov esi, reloc.WS2_32.dll_ntohs
lea r14, [rbp - 0x51]
lea rdi, [rsi - 0x10]
cmp rax, rsi
jbe 0x18005e3a0
mov rsi, rax
or rsi, 0xf
cmp rsi, rcx
jbe 0x18005e336
mov rsi, rcx
jmp 0x18005e342
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmp rsi, rcx
cmovb rsi, rcx
mov rcx, rsi
add rcx, 1
cmovb rcx, rdi
cmp rcx, 0x1000
jb 0x18005e386
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18005e56a
mov rcx, rax
call fcn.1801021fc
test rax, rax
je 0x18005e4a0
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
lea rax, [r12 + r13]
jmp 0x18005e39c
test rcx, rcx
je 0x18005e399
call fcn.1801021fc
mov r14, rax
lea rax, [r12 + r13]
jmp 0x18005e39c
xor r14d, r14d
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rsi
mov r8, r12
mov rdx, r15
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [r14 + r12]
mov r8, r13
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rax, [r12 + r13]
mov byte [r14 + rax], 0
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0x10
cmovae rdx, qword [rbp - 0x51]
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
nop dword [rax + rax]
inc rdi
cmp byte [rdx + rdi], 0
jne 0x18005e3f0
mov r8, rdi
lea rcx, [rbp - 0x31]
call fcn.18004bd00
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x18005e457
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005e452
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005e452
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180101e04
lea rcx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0x10
cmovae rcx, qword [rbp - 0x51]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x18005e4ac
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005e4a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005e4a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180101e04
mov rax, qword [0x18050fe98]
cmp rax, qword [0x18050fea0]
je 0x18005e4dc
lea rdx, [rbp - 0x11]
mov rcx, rax
call fcn.1800605d0
mov rax, qword [0x18050fe98]
add rax, 0x38
mov qword [0x18050fe98], rax
jmp 0x18005e4ef
lea r8, [rbp - 0x11]
mov rdx, rax
call fcn.18005fd00
mov rax, qword [0x18050fe98]
lea rbx, [rax - 0x38]
lea rcx, [rbp + 0xf]
call fcn.18005f480
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x18005e53a
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005e535
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005e535
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180101e04
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1801017e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.180031960
nop
call fcn.180031980
int3