Function at 0x140003f28
Capabilities:
Check mutex on windows
Create directory
Delete directory
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x1402477f8]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov r8, qword [rcx]
mov rdi, rdx
mov rbx, rcx
lea rdx, str._sdepotcache
lea rcx, [rsp + 0x20]
call fcn.140006988
mov r14d, 2
lea rcx, [rsp + 0x20]
mov edx, r14d
call fcn.14018f718
test eax, eax
je 0x140003f8f
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r8, qword [rbx]
lea rdx, str._s_appcache
lea rcx, [rsp + 0x20]
call fcn.140006988
mov edx, r14d
lea rcx, [rsp + 0x20]
call fcn.14018f718
test eax, eax
je 0x140003fc1
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r8, qword [rbx]
lea rdx, str._slogs
lea rcx, [rsp + 0x20]
call fcn.140006988
mov edx, r14d
lea rcx, [rsp + 0x20]
call fcn.14018f718
test eax, eax
je 0x140003ff3
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r8, qword [rdi]
lea rdx, str._s_steamActive
lea rcx, [rsp + 0x20]
call fcn.140006988
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14018f718
test eax, eax
je 0x140004024
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r8, qword [rbx]
lea rdx, str._sUser32.dll
lea rcx, [rsp + 0x20]
call fcn.140006988
mov edx, r14d
lea rcx, [rsp + 0x20]
call fcn.14018f718
test eax, eax
jne 0x14000406f
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x80
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8, qword [rbx]
lea rdx, str._s_version.dll
lea rcx, [rsp + 0x20]
call fcn.140006988
mov edx, r14d
lea rcx, [rsp + 0x20]
call fcn.14018f718
test eax, eax
jne 0x1400040ba
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x80
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8, qword [rbx]
lea rdx, str._shid.dll
lea rcx, [rsp + 0x20]
call fcn.140006988
mov edx, r14d
lea rcx, [rsp + 0x20]
call fcn.14018f718
test eax, eax
jne 0x140004105
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x80
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8, qword [rbx]
lea rdx, str._sMyTemp
lea rcx, [rsp + 0x20]
call fcn.140006988
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14018f718
test eax, eax
jne 0x14000414a
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea r8, str.CryptoWork
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400041c8
mov rdx, qword [rbx]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140004188
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rdi]
mov eax, ebx
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400041a5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140187c00
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop r14
pop rdi
pop rbp
ret
or ecx, 0xffffffff
call fcn.14018f690
int3