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

Disassembly:
push 0xffffffffffffffff
push 0x424ff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
mov dword [esp + 0x21c], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40c6d6
lea ecx, [esp + 0x110]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40c67b
push 1
lea ecx, [esp + 0x228]
mov dword [esp + 0x220], 0xffffffff
call fcn.00402800
xor al, al
jmp 0x40c830
mov edi, str.TEMP
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00419cbc
add esp, 8
cmp eax, 0xffffffff
jne 0x40c6d6
lea ecx, [esp + 0x110]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40c700
mov eax, dword [esp + 0x228]
test eax, eax
jne 0x40c6e6
mov eax, 0x426230
lea edx, [esp + 0xc]
push edx
push 0
push eax
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40c733
mov ecx, dword [esp + 0x228]
test ecx, ecx
je 0x40c72c
mov al, byte [ecx - 1]
test al, al
je 0x40c722
cmp al, 0xff
je 0x40c722
dec al
mov byte [ecx - 1], al
xor al, al
jmp 0x40c830
dec ecx
push ecx
call fcn.0040c880
add esp, 4
xor al, al
jmp 0x40c830
lea ecx, [esp + 0xc]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x238]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x10]
push 1
mov byte [esp + ecx + 0x13], 0x21
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402ca0
test al, al
je 0x40c796
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov edi, 0x42c4e8
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x42622c]
sub ecx, edx
cmp ecx, esi
ja 0x40c7bb
call fcn.0040c88b
test esi, esi
jbe 0x40c7f9
mov ebx, dword [ebp + 8]
push 0
add ebx, esi
mov ecx, ebp
push ebx
call fcn.00402ca0
test al, al
je 0x40c7f9
mov edi, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov ecx, esi
add edi, edx
mov edx, ecx
mov esi, 0x42c4e8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x22c]
pop ebp
test ecx, ecx
je 0x40c82e
mov al, byte [ecx - 1]
test al, al
je 0x40c824
cmp al, 0xff
je 0x40c824
dec al
mov byte [ecx - 1], al
jmp 0x40c82e
dec ecx
push ecx
call fcn.0040c880
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x214
ret