Function at 0x140003f78
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 [0x140248800]
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.1400069a4
mov r14d, 2
lea rcx, [rsp + 0x20]
mov edx, r14d
call fcn.14018f748
test eax, eax
je 0x140003fdf
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.1400069a4
mov edx, r14d
lea rcx, [rsp + 0x20]
call fcn.14018f748
test eax, eax
je 0x140004011
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.1400069a4
mov edx, r14d
lea rcx, [rsp + 0x20]
call fcn.14018f748
test eax, eax
je 0x140004043
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.1400069a4
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14018f748
test eax, eax
je 0x140004074
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.1400069a4
mov edx, r14d
lea rcx, [rsp + 0x20]
call fcn.14018f748
test eax, eax
jne 0x1400040bf
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.1400069a4
mov edx, r14d
lea rcx, [rsp + 0x20]
call fcn.14018f748
test eax, eax
jne 0x14000410a
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.1400069a4
mov edx, r14d
lea rcx, [rsp + 0x20]
call fcn.14018f748
test eax, eax
jne 0x140004155
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.1400069a4
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14018f748
test eax, eax
jne 0x14000419a
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 0x140004218
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 0x1400041d8
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 0x1400041f5
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.140187c20
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop r14
pop rdi
pop rbp
ret
or ecx, 0xffffffff
call fcn.14018f6c0
int3