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

Disassembly:
push 0x228
mov eax, 0x422057
call fcn.0042147b
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x18]
xor edi, edi
push 0x436718
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x234], edi
call fcn.004040ca
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp esi, edi
je 0x402cba
push dword [esi + 0x5e4]
lea ecx, [ebp - 0x21c]
call fcn.00401530
mov esi, dword [sym.imp.MSVCR100.dll_wcsrchr]
push 0x5c
push dword [ebp - 0x21c]
call esi
pop ecx
pop ecx
cmp eax, edi
jne 0x402bdd
or eax, 0xffffffff
jmp 0x402be5
sub eax, dword [ebp - 0x21c]
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402ab0
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.00401d11
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401171
push 0x2f
push dword [ebp - 0x21c]
call esi
pop ecx
pop ecx
cmp eax, edi
jne 0x402c2f
or eax, 0xffffffff
jmp 0x402c37
sub eax, dword [ebp - 0x21c]
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402ab0
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.00401d11
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401171
push 0x2e
push dword [ebp - 0x21c]
call esi
pop ecx
pop ecx
cmp eax, edi
je 0x402cba
sub eax, dword [ebp - 0x21c]
sar eax, 1
js 0x402cba
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402a19
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.00401d11
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401171
lea eax, [ebp - 0x218]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x402ce6
push str.C:_temp_
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00419df3
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR100.dll_wcslen]
cmp word [ebp + eax*2 - 0x21a], 0x5c
pop ecx
je 0x402d14
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x218], cx
xor ecx, ecx
mov word [ebp + eax*2 - 0x216], cx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x218]
push eax
call edi
push 0x42594c
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00419d99
add esp, 0xc
push 0
lea eax, [ebp - 0x218]
push eax
call edi
mov edi, dword [ebp - 0x21c]
push edi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00419d99
mov esi, dword [ebp - 0x230]
add esp, 0xc
push 0x436718
mov ecx, esi
call fcn.004040ca
mov eax, dword [0x436780]
mov dword [ebp - 0x234], ebx
test eax, eax
jne 0x402d87
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x436780], eax
cmp dword [ebp - 0x228], 0
mov edx, dword [ebp - 0x22c]
je 0x402dce
test edx, edx
jne 0x402d9f
mov edx, 0x4257c8
mov ecx, dword [ebp - 0x224]
mov ecx, dword [ecx]
push edx
push eax
mov eax, 0x425948
push eax
push ecx
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push eax
push 0x425928
push esi
call fcn.00401557
add esp, 0x24
jmp 0x402e01
test edx, edx
jne 0x402dd7
mov edx, 0x4257c8
mov ecx, dword [ebp - 0x224]
mov ecx, dword [ecx]
push edx
push eax
push 0x425924
push ecx
push 0x425948
lea eax, [ebp - 0x218]
push eax
push 0x425908
push esi
call fcn.00401557
add esp, 0x20
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [edi - 0x10]
call fcn.00401171
mov eax, esi
call fcn.004214fe
ret