Function at 0x4089fe
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0x244
lea ebp, [esp - 4]
mov eax, dword [0x48d044]
xor eax, ebp
mov dword [ebp + 0x244], eax
push 0x44
mov eax, 0x4670a9
call fcn.00450d5a
lea esi, [ebp + 0x250]
lea edi, [ebp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
and dword [ebp - 4], 0
test ebx, ebx
je 0x408d25
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x408d25
cmp dword [ebx], 0x30
jne 0x408d25
mov eax, 0x492004
lea esi, [ebp - 0x4c]
call fcn.00404438
mov byte [ebp - 4], 1
mov byte [ebp - 0x19], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00408d4f
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], 0xc
lea ecx, [ebp - 0x2c]
call fcn.00408899
mov dword [ebp - 0x14], eax
and dword [ebp - 0x18], 0
mov byte [ebp - 4], 3
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x408d1b
lea eax, [ebp - 0x24]
lea edi, [ebp - 0x18]
call fcn.00404351
push str.Settings
call fcn.0040ac4e
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.PCCSConfig.dat
call fcn.0040ac4e
lea eax, [ebp - 0x44]
push eax
call fcn.00404758
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x18]
mov edx, edi
lea ecx, [ebp - 0x44]
call fcn.00404a6d
mov dword [ebp - 0x14], eax
test eax, eax
jge 0x408c08
cmp eax, 0x8040000e
je 0x408aff
cmp eax, 0x80400009
jne 0x408b12
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x14], 0x80400004
jmp 0x408bea
lea esi, [ebp - 0x20]
call fcn.00408874
mov byte [ebp - 4], 5
push edi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
test eax, eax
je 0x408b38
mov edx, edi
lea ecx, [ebp - 0x44]
call fcn.00404a6d
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x408b5a
push edi
call esi
test eax, eax
je 0x408b56
push 0
push dword [ebp - 0x24]
call fcn.0044efa7
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x408b5a
mov byte [ebp - 0x19], 1
mov byte [ebp - 4], 4
lea esi, [ebp - 0x20]
call fcn.00408884
cmp dword [ebp - 0x14], 0
jge 0x408c08
cmp byte [ebp - 0x19], 0
je 0x408be4
xor esi, esi
mov word [ebp + 0x3c], si
push 0x206
push esi
lea eax, [ebp + 0x3e]
push eax
call fcn.0044c8f0
add esp, 0xc
lea eax, [ebp + 0x3c]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x14], eax
cmp eax, esi
jl 0x408bea
push str.PC_SuiteSettings
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 0x3c]
push eax
lea esi, [ebp - 0x18]
call fcn.0040b455
push str.PCCSConfig.dat
mov edi, esi
call fcn.0040ac4e
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.00404a6d
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x408c08
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x408cbf
cmp dword [ebp - 0x14], 0x80400004
jne 0x408cbf
lea eax, [ebp + 0x10]
push eax
call fcn.00404691
mov byte [ebp - 4], 6
lea eax, [ebx + 4]
lea edi, [ebp + 0x10]
call fcn.00404351
lea esi, [ebx + 8]
lea edi, [ebp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0x24], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 0x28], eax
lea eax, [ebx + 0x20]
lea edi, [ebp + 0x2c]
call fcn.00404351
lea eax, [ebx + 0x24]
lea edi, [ebp + 0x30]
call fcn.00404351
mov eax, dword [ebx + 0x28]
mov dword [ebp + 0x34], eax
test eax, eax
je 0x408c5c
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 0x38], eax
sub esp, 0x10
lea esi, [ebp]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp + 0x10]
call fcn.004053ce
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x408cb2
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x18]
call fcn.00404db5
mov dword [ebp - 0x14], eax
test eax, eax
jge 0x408cb2
lea esi, [ebp - 0x20]
call fcn.00408874
mov byte [ebp - 4], 7
lea eax, [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x18]
call fcn.00404db5
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 6
call fcn.00408884
mov byte [ebp - 4], 4
lea eax, [ebp + 0x10]
push eax
call fcn.004046d9
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.004047bd
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b6d3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.004043f6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x244]
xor ecx, ebp
call fcn.0044c8d7
add ebp, 0x248
leave
ret
mov eax, 0x80100026
jmp fcn.0040426a
mov eax, 0x80100013
jmp 0x408d20