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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c8d7
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x453144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, 0x44c208
test eax, eax
mov dword [0x4543d0], 1
cmovne esi, eax
call fcn.004018e0
mov ecx, eax
test ecx, ecx
je 0x410bce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
push esi
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 0
call fcn.0040c950
test al, al
jne 0x4109b3
push esi
lea ecx, [ebp - 0x458]
call fcn.0040c7b0
mov eax, dword [ebp - 0x458]
mov dword [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x410b0c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00419520
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push 0x43e630
push eax
call esi
push 0x43f290
lea eax, [ebp - 0x218]
push eax
call esi
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x20a
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.00419520
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x42c], 0
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410a80
sub ecx, edx
lea eax, [ebp - 0x424]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x43c]
call fcn.00402d30
push 0
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x454]
push eax
call fcn.00410670
add esp, 0xc
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 4
call fcn.00402960
cmp dword [ebp - 0x440], 8
lea eax, [ebp - 0x454]
cmovae eax, dword [ebp - 0x454]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x458]
push str._s_s.log
push eax
call fcn.004032f0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x454]
call fcn.00402960
push 0x43f2ac
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.0040c610
add esp, 0xc
push dword [ebp - 0x45c]
mov byte [ebp - 4], 5
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [0x4543cc]
test eax, eax
push dword [0x4530cc]
mov edx, 0xf
cmovne ecx, edx
mov dword [0x4543cc], ecx
mov ecx, 0x4543d4
call fcn.004112f0
lea eax, [ebp - 0x458]
mov ecx, 0x4543d4
push eax
call fcn.004111d0
mov edx, dword [ebp - 0x45c]
or esi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410b92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x458]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x410bb4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415060
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401660
int3