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

Disassembly:
push 0xffffffffffffffff
push 0x422ec7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push ebx
push esi
push edi
mov eax, dword [0x42d310]
mov dword [esp + 0x330], 0
mov dword [esp + 0xc], eax
mov dl, byte [0x42f268]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x225]
mov byte [esp + 0x224], dl
mov byte [esp + 0x120], dl
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 + 0x121]
mov byte [esp + 0x1c], dl
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 + 0x1d]
mov ebx, 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [esp + 0x330], bl
stosb byte es:[edi], al
call fcn.004180bd
test eax, eax
je 0x4024f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
jne 0x4024f4
xor eax, eax
jmp 0x4024f7
mov eax, dword [eax + 0x1c]
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0
lea ecx, [esp + 0x124]
push 0x17
push ecx
push eax
call esi
call fcn.004180bd
test eax, eax
je 0x402520
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
jne 0x402524
xor eax, eax
jmp 0x402527
mov eax, dword [eax + 0x1c]
push 0
lea ecx, [esp + 0x20]
push 0x19
push ecx
push eax
call esi
call fcn.004180bd
test eax, eax
je 0x402547
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
jne 0x40254b
xor eax, eax
jmp 0x40254e
mov eax, dword [eax + 0x1c]
push 0
lea ecx, [esp + 0x228]
push 0x18
push ecx
push eax
call esi
lea edx, [esp + 0x120]
lea ecx, [esp + 0xc]
push edx
call fcn.00417b55
lea eax, [esp + 0xc]
push 0x42d2e8
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00417c61
lea edx, [esp + 0x338]
mov byte [esp + 0x330], 2
push edx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00417bfb
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x334], 3
call fcn.00417b05
lea ecx, [esp + 0x10]
mov byte [esp + 0x330], 2
call fcn.004179cc
lea ecx, [esp + 0x14]
mov byte [esp + 0x330], bl
call fcn.004179cc
lea ecx, [esp + 0xc]
push 0x42d2e8
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00417c61
lea ecx, [esp + 0x338]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x33c], 4
call fcn.00417bfb
push 0x42d2d8
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x338], 5
push eax
call fcn.00417c61
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
lea ecx, [esp + 0x14]
call fcn.004179cc
lea ecx, [esp + 0x10]
mov byte [esp + 0x330], 4
call fcn.004179cc
lea ecx, [esp + 0x18]
mov byte [esp + 0x330], bl
call fcn.004179cc
lea ecx, [esp + 0xc]
push 0x42d2e8
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00417c61
push 0x42d2e0
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x338], 6
push eax
call fcn.00417c61
push 0x42d2d8
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x33c], 7
call fcn.00417c61
mov eax, dword [eax]
push eax
call esi
lea ecx, [esp + 0x18]
call fcn.004179cc
lea ecx, [esp + 0x14]
mov byte [esp + 0x330], 6
call fcn.004179cc
lea ecx, [esp + 0x10]
mov byte [esp + 0x330], bl
call fcn.004179cc
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
call fcn.00417b55
lea ecx, [esp + 0xc]
push 0x42d2e8
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00417c61
lea ecx, [esp + 0x338]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x33c], 8
call fcn.00417bfb
push 0x42d2d8
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x338], 9
push eax
call fcn.00417c61
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x334], 0xa
call fcn.00417b05
lea ecx, [esp + 0x18]
mov byte [esp + 0x330], 9
call fcn.004179cc
lea ecx, [esp + 0x14]
mov byte [esp + 0x330], 8
call fcn.004179cc
lea ecx, [esp + 0x10]
mov byte [esp + 0x330], bl
call fcn.004179cc
mov ecx, dword [esp + 0xc]
push ecx
call esi
lea edx, [esp + 0x224]
lea ecx, [esp + 0xc]
push edx
call fcn.00417b55
lea eax, [esp + 0xc]
push 0x42d2e8
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00417c61
lea edx, [esp + 0x338]
mov byte [esp + 0x330], 0xb
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00417bfb
push 0x42d2d8
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x33c], 0xc
call fcn.00417c61
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x334], 0xd
call fcn.00417b05
lea ecx, [esp + 0x18]
mov byte [esp + 0x330], 0xc
call fcn.004179cc
lea ecx, [esp + 0x14]
mov byte [esp + 0x330], 0xb
call fcn.004179cc
lea ecx, [esp + 0x10]
mov byte [esp + 0x330], bl
call fcn.004179cc
mov edx, dword [esp + 0xc]
push edx
call esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x330], 0
call fcn.004179cc
lea ecx, [esp + 0x338]
mov dword [esp + 0x330], 0xffffffff
call fcn.004179cc
mov ecx, dword [esp + 0x328]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x328
ret 4