Function at 0x40c0a0
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c03e
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4c7084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xa0], ebx
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x98]
call fcn.00408d30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x9c]
push eax
call fcn.0040ba60
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
push eax
call fcn.00409ab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.00408c20
push dword [ebp - 0x98]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
test edx, edx
jne 0x40c12f
xor ecx, ecx
jmp 0x40c143
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c134
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040a2a0
push 4
push str..log
mov ecx, edi
call fcn.004099e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.00408c20
lea ecx, [ebp - 0x9c]
call fcn.00408d30
mov dword [ebp - 4], 2
push 0x5c
push dword [edi]
call fcn.00463cb1
add esp, 8
test eax, eax
je 0x40c1d2
sub eax, dword [edi]
sar eax, 1
test eax, eax
jle 0x40c1d2
inc eax
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.0040eeb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x9c]
push eax
call fcn.00409ab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.00408c20
mov esi, dword [ebp - 0x9c]
jmp 0x40c304
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
cmp dword [eax - 0xc], 0
jle 0x40c1f2
push ecx
lea ecx, [ebp - 0x9c]
call fcn.00409ab0
mov esi, dword [ebp - 0x9c]
jmp 0x40c254
mov esi, dword [ebp - 0x9c]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40c222
push 0x104
lea ecx, [ebp - 0x9c]
call fcn.0040a230
mov esi, dword [ebp - 0x9c]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [esi - 8]
push esi
call fcn.0046af74
add esp, 8
test eax, eax
js 0x40c4b7
cmp eax, dword [esi - 8]
jg 0x40c4b7
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push 1
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040b880
mov byte [ebp - 4], 4
mov ecx, 0x4a6278
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c299
test dx, dx
je 0x40c295
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c299
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c273
xor eax, eax
jmp 0x40c29e
sbb eax, eax
or eax, 1
test eax, eax
setne bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.00408c20
test bl, bl
je 0x40c2ce
push 1
push 0x4a6278
lea ecx, [ebp - 0x9c]
call fcn.004099e0
mov esi, dword [ebp - 0x9c]
push edi
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x98]
call fcn.00408aa0
add esp, 4
mov byte [ebp - 4], 5
mov ecx, edi
push eax
call fcn.00409ab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.00408c20
mov ebx, dword [ebp - 0xa0]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40c318
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
je 0x40c32d
xor esi, esi
jmp 0x40c485
cmp dword [ebx], 0
je 0x40c40d
push 0x2e
push dword [edi]
call fcn.00463cb1
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c34d
or esi, 0xffffffff
jmp 0x40c351
sub esi, dword [edi]
sar esi, 1
push esi
push 0
lea eax, [ebp - 0x98]
mov ecx, edi
push eax
call fcn.0040eeb0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x98]
push 7
push str..normal
call fcn.004099e0
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b880
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x98]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004099e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa0]
call fcn.00408c20
push dword [ebp - 0x98]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c3ce
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str..logdat
mov edx, edi
lea ecx, [ebp - 0xa0]
call fcn.004089d0
add esp, 4
mov byte [ebp - 4], 8
mov ecx, edi
push eax
call fcn.00409ab0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa0]
call fcn.00408c20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.00408c20
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x90]
push 0xfde9
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x94]
push eax
call fcn.00409b20
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x94]
cmp byte [edx], 0
jne 0x40c445
xor ecx, ecx
jmp 0x40c459
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c450
sub ecx, esi
push ecx
push edx
lea ecx, [ebx + 0x30]
call fcn.00409360
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 0x94]
cmp eax, ecx
je 0x40c480
push eax
call fcn.004671f7
add esp, 4
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00408c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.00401e50
int3