Function at 0x608bb0
Capabilities:
Check if file exists
Create directory
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x7c197c
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x454], eax
push ebx
push esi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x464]
mov dword fs:[0], eax
mov eax, dword [esp + 0x474]
xor ebx, ebx
mov dword [0x8a0258], 1
cmp eax, ebx
jne 0x608c05
mov eax, 0x830150
push eax
lea ecx, [esp + 0x10]
call fcn.004068d0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x46c], ebx
cmp dword [eax - 0xc], ebx
jne 0x608d92
push 0x206
lea edx, [esp + 0x52]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x58], cx
call fcn.007202b0
add esp, 0xc
push ebx
push 0x1a
lea eax, [esp + 0x54]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x8095cc
lea ecx, [esp + 0x50]
push ecx
call esi
push 0x830300
lea edx, [esp + 0x50]
push edx
call esi
push ebx
lea eax, [esp + 0x50]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x208
lea edx, [esp + 0x25a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x260], cx
call fcn.007202b0
add esp, 0xc
push 0x104
lea eax, [esp + 0x258]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
lea eax, [esp + 0x254]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x608cd0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x258]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404850
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x478], 1
call fcn.0060d000
add esp, 0xc
mov esi, 8
mov byte [esp + 0x46c], 3
cmp dword [esp + 0x2c], esi
jb 0x608d2c
mov edx, dword [esp + 0x18]
push edx
call fcn.00704960
add esp, 4
xor eax, eax
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x48], esi
jae 0x608d4d
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x14]
push str._s_s.log
push edx
call fcn.0040e430
add esp, 0x10
mov byte [esp + 0x46c], bl
cmp dword [esp + 0x48], esi
jb 0x608d7f
mov eax, dword [esp + 0x34]
push eax
call fcn.00704960
add esp, 4
xor ecx, ecx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
push 0x8095c4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00403a70
add esp, 0xc
mov ecx, dword [esp + 0x10]
push ecx
mov byte [esp + 0x470], 4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x608dca
mov dword [0x88c7f4], 0xf
mov edx, dword [0x88c7fc]
push edx
mov ecx, 0x8a0260
call fcn.00667360
lea eax, [esp + 0xc]
push eax
mov ecx, 0x8a0260
call fcn.006673d0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x46c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x608e11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x46c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x608e3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x454]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x464
ret