Function at 0x40a380
Capabilities:
Create directory
Delete file
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421dfb
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x42e460]
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 edi, ecx
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp word [ebp - 0x218], 0
jne 0x40a41b
xor eax, eax
jmp 0x40a433
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a424
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00401d00
push 1
push 0x42a438
lea ecx, [ebp - 0x230]
call fcn.00403660
push 0xc
push 0x42a12c
lea ecx, [ebp - 0x230]
call fcn.00403660
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call esi
push 1
push 0x42a438
lea ecx, [ebp - 0x230]
call fcn.00403660
push 7
push str.Updater
lea ecx, [ebp - 0x230]
call fcn.00403660
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
call esi
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x230]
mov ecx, 0x431b30
push eax
call fcn.00401a60
cmp dword [edi + 0x14], 8
jb 0x40a4e5
mov eax, dword [edi]
jmp 0x40a4e7
mov eax, edi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
call esi
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x284], eax
cmovae ecx, dword [ebp - 0x230]
push ecx
call esi
push 0
mov dword [ebp - 0x288], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x248]
push eax
push 0x423458
push 1
push 0
push 0x423468
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40a6a0
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x280]
push eax
call ebx
mov ecx, dword [ebp - 0x248]
mov eax, 8
mov word [ebp - 0x280], ax
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x24c]
movdqu xmm0, xmmword [ebp - 0x280]
mov edx, dword [ecx]
push eax
sub esp, 0x10
mov eax, esp
push ecx
movdqu xmmword [eax], xmm0
call dword [edx + 0x24]
mov esi, eax
test esi, esi
js 0x40a694
lea eax, [ebp - 0x260]
mov dword [ebp - 0x244], 0
push eax
call ebx
mov ecx, dword [ebp - 0x248]
mov eax, 8
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x244]
movdqu xmm0, xmmword [ebp - 0x260]
mov edx, dword [ecx]
push eax
sub esp, 0x10
mov eax, esp
push ecx
movdqu xmmword [eax], xmm0
call dword [edx + 0x24]
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x250]
mov dword [ebp - 0x250], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x240]
push eax
call ebx
mov eax, 3
mov dword [ebp - 0x238], 0x614
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x270]
push eax
call ebx
movdqu xmm0, xmmword [ebp - 0x240]
mov ecx, dword [ebp - 0x24c]
mov eax, 9
mov word [ebp - 0x270], ax
sub esp, 0x10
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x268], eax
mov eax, esp
mov edx, dword [ecx]
sub esp, 0x10
movdqu xmmword [eax], xmm0
mov eax, esp
movdqu xmm0, xmmword [ebp - 0x270]
push ecx
movdqu xmmword [eax], xmm0
call dword [edx + 0x3c]
push 0x3e8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x24c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x248]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [edi + 0x14], 8
jb 0x40a6ae
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
setns bl
cmp dword [ebp - 0x21c], 8
jb 0x40a6d1
push dword [ebp - 0x230]
call fcn.00411307
add esp, 4
mov al, bl
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.004112f8
mov esp, ebp
pop ebp
ret