Function at 0x17b3f20
Capabilities:
Check if file exists
Create directory
Get file attributes
Get thread local storage value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbx, rcx
xor r14d, r14d
mov qword [rax - 0x80], r14
mov rax, qword [0x039f1180]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17b3f6d
lea r12, [rax + 0x20]
jmp 0x17b3f70
mov r12, r14
mov qword [rsp + 0x38], r12
mov rcx, qword [r12 + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VarBstrFromCy]
mov r13, rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
call fcn.0116d180
nop
lea rax, [0x01165c20]
mov qword [rsp + 0x68], rax
lea rdi, [0x01000000]
lea rax, [rdi + 0x4f0d0]
mov qword [rsp + 0x50], rax
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r14
lea r15, [0x0104ef20]
mov qword [rsp + 0x50], r15
lea rsi, [0x0109b930]
mov qword [rsp + 0x68], rsi
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.0116cfa0
xor edx, edx
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x180]
nop
mov edx, dword [reloc.OLEAUT32.dll_VariantInit]
and edx, 7
lea rax, [rdx + rdx*2]
movzx ecx, byte [rdi + rax*2 + 0x173e9d]
movzx eax, byte [rdi + rax*2 + 0x173e9c]
add eax, ecx
cdqe
movabs r8, 0x7fffffffffffffff
mov rcx, r8
sub rcx, rax
shr rcx, 1
sub rcx, 1
cmp rcx, 0x104
jge 0x17b4094
lea r8, [0x017b4520]
mov edx, 0x325
lea rcx, [0x01580c10]
call fcn.017eea00
mov edi, eax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x68], rsi
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [r12 + 0x30]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + 0x78]
mov eax, edi
jmp 0x17b44f6
lea rax, [rdx + rdx*2]
movzx ecx, byte [rdi + rax*2 + 0x173e9d]
movzx eax, byte [rdi + rax*2 + 0x173e9c]
add ecx, eax
movsxd rdi, ecx
add rdi, 0x20a
mov rcx, qword [r12 + 0x30]
cmp rdi, r8
jae 0x17b44b3
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + SafeArrayCopy]
mov r11, rax
test rax, rax
je 0x17b44b3
mov rax, qword [r12 + 0x28]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], rdi
lea rcx, [rsp + 0xc8]
call fcn.0116a950
nop
mov r9, qword [r12 + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0xc8]
call fcn.0118a2d0
mov edi, eax
test eax, eax
jns 0x17b415c
lea rcx, [rsp + 0xc8]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x68], rsi
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [r12 + 0x30]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + 0x78]
mov eax, edi
jmp 0x17b44f6
mov r9, qword [rbx]
test r9, r9
je 0x17b417b
movzx eax, byte [r9 - 5]
test al, 0x40
jne 0x17b4176
test al, 0x20
jne 0x17b4176
mov rbx, r9
jmp 0x17b417e
mov rbx, qword [r9]
jmp 0x17b417e
mov rbx, r14
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rbp, [rcx - 1]
lea rax, [rbx + rcx*2 - 4]
cmp rax, rbx
jbe 0x17b41b3
nop
nop
sub rbp, 1
cmp word [rax], 0x5c
je 0x17b41b3
sub rax, 2
cmp rax, rbx
ja 0x17b41a0
cmp rax, rbx
jne 0x17b41f1
lea rcx, [rsp + 0xc8]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x68], rsi
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [r12 + 0x30]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + 0x78]
mov eax, r14d
jmp 0x17b44f6
cmp word [rbx], 0x5c
jne 0x17b42c7
test r9, r9
je 0x17b4212
movzx eax, byte [r9 - 5]
test al, 0x40
jne 0x17b420d
test al, 0x20
je 0x17b4215
mov r9, qword [r9]
jmp 0x17b4215
mov r9, r14
mov edi, 4
mov r8, rdi
lea rdx, [0x0156e9f8]
mov rcx, r9
call qword [sym.imp.MSVCR80.dll_wcsncmp]
test eax, eax
je 0x17b425f
mov edi, 2
movzx eax, word [rbx + 4]
test ax, ax
je 0x17b425f
nop
cmp ax, 0x5c
je 0x17b425b
cmp ax, 0x2f
je 0x17b425b
add rdi, 1
mov ax, word [rbx + rdi*2]
test ax, ax
jne 0x17b4240
jmp 0x17b425f
add rdi, 1
movzx eax, word [rbx + rdi*2]
test ax, ax
je 0x17b4281
cmp ax, 0x5c
je 0x17b4281
cmp ax, 0x2f
je 0x17b4281
add rdi, 1
mov ax, word [rbx + rdi*2]
test ax, ax
jne 0x17b4268
cmp word [rbx + rdi*2], 0
jne 0x17b42c1
lea rcx, [rsp + 0xc8]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x68], rsi
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [r12 + 0x30]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + 0x78]
mov eax, r14d
jmp 0x17b44f6
add rdi, 1
jmp 0x17b42cc
mov edi, 3
cmp rdi, rbp
jg 0x17b447d
movzx eax, word [rbx + rdi*2]
cmp ax, 0x5c
je 0x17b42e9
cmp ax, 0x2f
jne 0x17b43ec
mov dword [rsp + 0x20], 7
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0xc8]
call fcn.0118a560
mov esi, eax
test eax, eax
cmovns esi, r14d
test esi, esi
js 0x17b4441
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x17b4335
movzx eax, byte [rcx - 5]
test al, 0x40
jne 0x17b4330
test al, 0x20
je 0x17b4338
mov rcx, qword [rcx]
jmp 0x17b4338
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x17b434f
test al, 0x10
je 0x17b434f
mov esi, r14d
jmp 0x17b43e8
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x17b436d
movzx eax, byte [rcx - 5]
test al, 0x40
jne 0x17b4368
test al, 0x20
je 0x17b4370
mov rcx, qword [rcx]
jmp 0x17b4370
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x17b43e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x03e490f8], eax
cmp eax, 0xb7
je 0x17b43e5
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc1010000
call fcn.0124e580
mov r8, qword [rsp + 0xc8]
test r8, r8
je 0x17b43ca
movzx eax, byte [r8 - 5]
test al, 0x40
jne 0x17b43c5
test al, 0x20
je 0x17b43cd
mov r8, qword [r8]
jmp 0x17b43cd
mov r8, r14
xor r9d, r9d
lea rdx, [0x01580c90]
mov ecx, 0xc102000c
call fcn.017ee830
mov esi, eax
jmp 0x17b43e8
mov esi, r14d
test esi, esi
js 0x17b4402
add rdi, 1
cmp rdi, rbp
jle 0x17b42d5
lea rsi, [0x0109b930]
jmp 0x17b447d
lea rcx, [rsp + 0xc8]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r15
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [r12 + 0x30]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + 0x78]
mov eax, esi
jmp 0x17b44f6
lea rcx, [rsp + 0xc8]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r15
lea rax, [0x0109b930]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [r12 + 0x30]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + 0x78]
mov eax, esi
jmp 0x17b44f6
lea rcx, [rsp + 0xc8]
call fcn.0116a920
nop
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x68], rsi
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [r12 + 0x30]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + 0x78]
mov eax, r14d
jmp 0x17b44f6
mov qword [rsp + 0x20], 0x1000000f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov ecx, 0xc1030001
call fcn.0124e580
mov edi, eax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x68], rsi
lea rcx, [rsp + 0x50]
call fcn.0116d120
nop
mov rcx, qword [r12 + 0x30]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + 0x78]
mov eax, edi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret