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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x14024a7f8]
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.140007a10
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140190878
test eax, eax
je 0x1400044f5
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.140007a10
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140190878
test eax, eax
je 0x140004529
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.140007a10
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140190878
test eax, eax
je 0x14000455d
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.140007a10
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140190878
test eax, eax
je 0x14000458e
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.140007a10
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140190878
test eax, eax
jne 0x1400045db
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.140007a10
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140190878
test eax, eax
jne 0x140004628
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, [0x140217cb8]
lea rcx, [rsp + 0x20]
call fcn.140007a10
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140190878
test eax, eax
jne 0x140004675
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.140007a10
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140190878
test eax, eax
jne 0x1400046ba
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 0x140004737
mov rdx, qword [rbx]
mov ebx, 0xffffffff
mov eax, ebx
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400046f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140004713
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.140188d60
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 0xffffffff
call fcn.1401907f0
int3