Function at 0x4022ba
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4022d4
push 0x40f190
jmp 0x4022d7
push dword [ebp + 0xc]
lea eax, [ebp - 0x724]
push eax
call fcn.00407600
pop ecx
lea eax, [ebp - 0x724]
pop ecx
push esi
push edi
push 0x40f18c
push eax
call fcn.00407610
push dword [ebp + 8]
lea eax, [ebp - 0x724]
push eax
call fcn.00407610
lea eax, [ebp - 0x724]
push 0x40f188
push eax
call fcn.00407610
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
add esp, 0x18
mov esi, 0x30c
lea eax, [ebp - 0x314]
push esi
push eax
call edi
lea eax, [ebp - 0x314]
push str.WinInit.Ini
push eax
call fcn.00407610
pop ecx
lea eax, [ebp - 0x864]
pop ecx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x402395
lea eax, [ebp - 0x314]
push 0x40f174
push eax
call fcn.00408468
mov esi, eax
push esi
push str._rename__n
call fcn.00408405
lea eax, [ebp - 0x724]
push esi
push eax
call fcn.00408405
push esi
call fcn.004083af
add esp, 0x1c
jmp 0x402557
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x314]
push 0x80
push eax
call ebx
lea eax, [ebp - 0x314]
push 0x40f164
push eax
call fcn.00408468
pop ecx
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 0x314]
push esi
push eax
call edi
lea eax, [ebp - 0x314]
push str.Junk1234.dat
push eax
call fcn.00407610
lea eax, [ebp - 0x314]
push 0x40f174
push eax
call fcn.00408468
add esp, 0x10
mov dword [ebp + 0xc], eax
push dword [ebp + 8]
lea eax, [ebp - 0x314]
push esi
push eax
call fcn.00408358
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
je 0x4024b2
push dword [ebp + 0xc]
lea eax, [ebp - 0x314]
push eax
call fcn.00408405
push 8
lea eax, [ebp - 0x314]
push str._rename_
push eax
call fcn.00408320
add esp, 0x14
test eax, eax
jne 0x402494
mov dword [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp - 0x314]
push esi
push eax
call fcn.00408358
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
je 0x40249f
cmp byte [ebp - 0x314], 0x5b
push dword [ebp + 0xc]
je 0x402476
lea eax, [ebp - 0x314]
push eax
call fcn.00408405
pop ecx
pop ecx
jmp 0x402440
lea eax, [ebp - 0x724]
push eax
call fcn.00408405
push dword [ebp + 0xc]
lea eax, [ebp - 0x314]
push eax
call fcn.00408405
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x4024b2
jmp 0x4023f2
push dword [ebp + 0xc]
lea eax, [ebp - 0x724]
push eax
call fcn.00408405
pop ecx
pop ecx
jmp 0x4024d7
cmp dword [ebp - 4], 0
jne 0x4024d7
push dword [ebp + 0xc]
push str._n_rename__n
call fcn.00408405
push dword [ebp + 0xc]
lea eax, [ebp - 0x724]
push eax
call fcn.00408405
add esp, 0x10
push dword [ebp + 8]
call fcn.004083af
push dword [ebp + 0xc]
call fcn.004083af
pop ecx
lea eax, [ebp - 0x314]
pop ecx
push esi
push eax
call edi
lea eax, [ebp - 0x314]
push str.WinInit.Ini
push eax
call fcn.00407610
pop ecx
lea eax, [ebp - 0x314]
pop ecx
push 0x80
push eax
call ebx
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x418]
push 0x104
push eax
call edi
lea eax, [ebp - 0x418]
push str.Junk1234.dat
push eax
call fcn.00407610
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004082e7
add esp, 0x10
pop ebx
pop edi
pop esi
leave
ret