Function at 0x1400044a0
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 [0x1402497f8]
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.140007920
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140190788
test eax, eax
je 0x140004505
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.140007920
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140190788
test eax, eax
je 0x140004539
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.140007920
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140190788
test eax, eax
je 0x14000456d
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.140007920
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140190788
test eax, eax
je 0x14000459e
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.140007920
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140190788
test eax, eax
jne 0x1400045eb
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.140007920
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140190788
test eax, eax
jne 0x140004638
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.140007920
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140190788
test eax, eax
jne 0x140004685
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.140007920
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140190788
test eax, eax
jne 0x1400046ca
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 0x140004747
mov rdx, qword [rbx]
mov ebx, 0xffffffff
mov eax, ebx
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004709
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 0x140004723
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.140188c70
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.140190700
int3