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

Disassembly:
push ebp
sub esp, 0x218
lea ebp, [esp - 4]
mov eax, dword [0x48d044]
xor eax, ebp
mov dword [ebp + 0x218], eax
push 0x60
mov eax, 0x466fe9
call fcn.00450d5a
lea esi, [ebp + 0x224]
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 eax, dword [ebp + 0x234]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x238]
mov dword [ebp - 0x34], eax
and dword [ebp - 4], 0
mov eax, 0x492004
lea esi, [ebp - 0x50]
call fcn.00404438
mov byte [ebp - 4], 1
mov byte [ebp - 0x19], 0
lea eax, [ebp - 0x44]
push eax
call fcn.00408d4f
mov byte [ebp - 4], 2
mov dword [ebp - 0x44], 0xc
lea ecx, [ebp - 0x44]
call fcn.00408899
mov dword [ebp - 0x14], eax
and dword [ebp - 0x20], 0
mov byte [ebp - 4], 3
push dword [ebp - 0x3c]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
call ebx
test eax, eax
je 0x409406
lea eax, [ebp - 0x3c]
lea edi, [ebp - 0x20]
call fcn.00404351
push str.Settings
call fcn.0040ac4e
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.PCCSConfig.dat
call fcn.0040ac4e
lea eax, [ebp - 0x68]
push eax
call fcn.00404758
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x20]
mov edx, edi
lea ecx, [ebp - 0x68]
call fcn.00404a6d
mov dword [ebp - 0x14], eax
test eax, eax
jge 0x409236
cmp eax, 0x8040000e
je 0x40915b
cmp eax, 0x80400009
jne 0x40916e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x14], 0x80400004
jmp 0x409236
lea esi, [ebp - 0x48]
call fcn.00408874
mov byte [ebp - 4], 5
push edi
call ebx
test eax, eax
je 0x40918e
mov edx, edi
lea ecx, [ebp - 0x68]
call fcn.00404a6d
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4091b0
push edi
call ebx
test eax, eax
je 0x4091ac
push 0
push dword [ebp - 0x3c]
call fcn.0044efa7
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x4091b0
mov byte [ebp - 0x19], 1
mov byte [ebp - 4], 4
lea esi, [ebp - 0x48]
call fcn.00408884
cmp dword [ebp - 0x14], 0
jge 0x409236
cmp byte [ebp - 0x19], 0
je 0x409236
xor esi, esi
mov word [ebp + 0x10], si
push 0x206
push esi
lea eax, [ebp + 0x12]
push eax
call fcn.0044c8f0
add esp, 0xc
lea eax, [ebp + 0x10]
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 0x409236
push str.PC_SuiteSettings
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 0x10]
push eax
lea esi, [ebp - 0x20]
call fcn.0040b455
push str.PCCSConfig.dat
mov edi, esi
call fcn.0040ac4e
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x68]
call fcn.00404a6d
mov dword [ebp - 0x14], eax
lea esi, [ebp - 0x50]
call fcn.00404331
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
jl 0x4093aa
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 6
lea esi, [ebp - 0x30]
call fcn.00405a9d
mov eax, esi
push 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 ecx, [ebp - 0x68]
call fcn.004051f9
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x40939e
cmp dword [ebp - 0x34], ebx
je 0x409391
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x409391
xor esi, esi
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x30]
call fcn.00403561
cmp esi, eax
mov eax, dword [ebp - 0x38]
jae 0x409389
cmp esi, dword [eax]
jae 0x40939e
lea edi, [ebp - 0x30]
call fcn.004034f5
imul esi, esi, 0x30
mov ecx, dword [ebp - 0x34]
lea ebx, [esi + ecx]
lea edi, [ebx + 4]
mov eax, dword [eax]
call fcn.00404351
mov esi, dword [ebp - 0x18]
lea edi, [ebp - 0x30]
call fcn.004034f5
mov esi, dword [eax]
add esi, 4
lea edi, [ebx + 8]
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 esi, dword [ebp - 0x18]
lea edi, [ebp - 0x30]
call fcn.004034f5
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov dword [ebx + 0x18], eax
call fcn.004034f5
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebx + 0x1c], eax
call fcn.004034f5
mov eax, dword [eax]
add eax, 0x1c
lea edi, [ebx + 0x20]
call fcn.00404351
lea edi, [ebp - 0x30]
call fcn.004034f5
mov eax, dword [eax]
add eax, 0x20
lea edi, [ebx + 0x24]
call fcn.00404351
lea edi, [ebp - 0x30]
call fcn.004034f5
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x28], eax
call fcn.004034f5
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x2c], eax
call fcn.004034f5
mov eax, dword [eax]
and dword [eax + 0x24], 0
call fcn.004034f5
mov eax, dword [eax]
and dword [eax + 0x28], 0
call fcn.004034f5
mov esi, dword [eax]
test esi, esi
je 0x40937e
push esi
call fcn.004046d9
push esi
call fcn.0044c741
pop ecx
inc dword [ebp - 0x18]
mov esi, dword [ebp - 0x18]
jmp 0x40929f
cmp esi, dword [eax]
jae 0x40939e
mov dword [eax], esi
jmp 0x40939e
lea eax, [ebp - 0x30]
call fcn.00403561
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
mov byte [ebp - 4], 4
lea esi, [ebp - 0x30]
call fcn.00437d55
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.004047bd
mov byte [ebp - 4], 2
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
push eax
call fcn.0040b6d3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
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 + 0x218]
xor ecx, ebp
call fcn.0044c8d7
add ebp, 0x21c
leave
ret
mov eax, 0x80100026
jmp fcn.0040426a