Function at 0x4026ec
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get common file path
Get file attributes
Hide graphical window
Move file
Read .ini file
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x850
mov eax, dword [0x411610]
xor eax, dword [ebp + 4]
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x280]
push eax
call fcn.004018ba
pop ecx
pop ecx
lea eax, [ebp - 0x280]
push eax
push 0x80
lea eax, [ebp - 0x74c]
push eax
push 0x40e34f
push str.PLATFORMS
mov esi, str.autorun
push esi
mov byte [ebp - 5], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x402780
lea eax, [ebp - 0x78]
push eax
push 0x412278
call fcn.00401c3d
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74c]
push eax
call fcn.0040731b
add esp, 0x10
test eax, eax
setne byte [ebp - 5]
mov edi, 0x104
push edi
lea eax, [ebp - 0x58c]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.00401ed7
add esp, 0xc
lea eax, [ebp - 0x280]
push eax
push edi
lea eax, [ebp - 0x850]
push eax
push 0x40e34f
push str.COMMAND
xor bl, bl
and byte [ebp - 0x10], bl
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x402906
cmp byte [ebp - 0x850], bl
je 0x402906
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x280]
push eax
push edi
lea eax, [ebp - 0x488]
push eax
push 0x40e34f
push str.PARAMETERS
push esi
call ebx
lea eax, [ebp - 0x280]
push eax
push 0
push str.IGNORERETURN
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
lea eax, [ebp - 0x280]
push eax
push edi
lea eax, [ebp - 0x17c]
setne byte [ebp - 0x10]
cmp byte [ebp + 0x14], 0
push eax
push 0x40e34f
je 0x40286c
push str.SILENTPARMS
push esi
call ebx
test eax, eax
je 0x40285c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40e3e0
lea eax, [ebp - 0x488]
push eax
call ebx
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x488]
push eax
call ebx
lea eax, [ebp - 0x280]
push eax
push 0
push str.SILENTMINIMIZED
jmp 0x4028aa
push str.INTERACTPARMS
push esi
call ebx
test eax, eax
je 0x40289c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40e3e0
lea eax, [ebp - 0x488]
push eax
call ebx
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x488]
push eax
call ebx
lea eax, [ebp - 0x280]
push eax
push 0
push str.INTERACTMINIMIZED
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
setne bl
cmp byte [ebp + 0x18], 0
je 0x402906
lea eax, [ebp - 0x280]
push eax
push edi
lea eax, [ebp - 0x17c]
push eax
push 0x40e34f
push str.NOREBOOTPARMS
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x402906
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40e3e0
lea eax, [ebp - 0x488]
push eax
call esi
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x488]
push eax
call esi
jmp 0x40290c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebp - 5], 0
jne 0x402919
xor eax, eax
jmp 0x402b6c
lea eax, [ebp - 0x58c]
push eax
call fcn.00407580
test eax, eax
pop ecx
jbe 0x402ab1
lea eax, [ebp - 0x58c]
push eax
call fcn.00401889
lea eax, [ebp - 0x58c]
push eax
call fcn.004023f5
test al, al
pop ecx
pop ecx
je 0x402aa4
push dword [ebp + 0x10]
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x17c]
push 0x40e398
push eax
call fcn.004018ba
pop ecx
pop ecx
lea eax, [ebp - 0x6cc]
push eax
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x402aa8
test byte [ebp - 0x6cc], 0x10
jne 0x402a81
push str.AUTORUN.IFF
lea eax, [ebp - 0x6a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x402a81
lea eax, [ebp - 0x58c]
push eax
lea eax, [ebp - 0x384]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x384]
push eax
call fcn.004018ba
pop ecx
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.004018ba
pop ecx
pop ecx
lea eax, [ebp - 0x384]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402a3d
test al, 0x10
jne 0x402a3d
push 0x80
lea eax, [ebp - 0x384]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x384]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x402a81
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x6a0]
push eax
push 0x27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14
push 0x26
call fcn.004022bd
add esp, 0x18
cmp eax, 7
je 0x402a99
lea eax, [ebp - 0x6cc]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402993
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x402aa8
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x58c]
mov dword [ebp + 0x10], eax
cmp byte [ebp - 0x850], 0
je 0x402b60
push 0x44
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00407080
add esp, 0xc
neg bl
lea eax, [ebp - 0x384]
push eax
push edi
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
sbb ebx, ebx
and ebx, 5
inc ebx
mov word [ebp - 0x28], bx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call edi
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40e3e0
lea eax, [ebp - 0x17c]
push eax
call esi
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x17c]
push eax
call esi
push 0
push dword [0x412434]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.0040216c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x384]
push eax
call edi
mov al, byte [ebp - 0x10]
neg al
sbb eax, eax
not eax
and eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00407111
leave
ret