Function at 0x40a130
Capabilities:
Delete file
Enumerate files on windows
Enumerate gui resources
Get common file path
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x980
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ActivateActCtx]
xor esi, esi
cmp esi, 0xfc0
jne 0x40a15b
mov eax, 0x38d6
add dword [0x4a9600], eax
cmp dword [0x4a9600], 0xd04
jne 0x40a170
push 0
lea eax, [esp + 0x18]
push eax
call edi
inc esi
cmp esi, 0x31a576
jl 0x40a148
mov ecx, dword [0x4a9600]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
mov edi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [0x4a8ce4], eax
mov dword [esp + 0x10], 0x962ae8
lea ecx, [ecx]
cmp dword [0x4a9600], 3
jne 0x40a1c9
lea edx, [esp + 0x190]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [0x4a9600], 0xd
jne 0x40a1f8
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
push 0
lea eax, [esp + 0x194]
push eax
push 0
call ebx
push 0
call ebp
dec dword [esp + 0x10]
jne 0x40a1b0
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp esi, 0x1b2e9
jge 0x40a21a
push 0
call ebp
cmp esi, 0x1ea070d5
jle 0x40a232
cmp edi, 0xacc0b8
je 0x40a232
cmp ebx, 0xad642ec
jne 0x40a23b
inc esi
cmp esi, 0x8ded45c8
jb 0x40a20e
mov eax, dword [0x4a9600]
xor esi, esi
test eax, eax
je 0x40a276
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 0xfe
jne 0x40a267
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
call fcn.00409ec0
mov eax, dword [0x4a9600]
inc esi
cmp esi, eax
jb 0x40a252
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x40a2b8
push 0x402a58
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, dword [sym.imp.USER32.dll_LoadMenuA]
mov esi, 0x8dc
push 0
push 0
call edi
dec esi
jne 0x40a2c3
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x2594b
mov ebp, 0x15a
lea esp, [esp]
cmp dword [0x4a9600], ebp
jne 0x40a2f0
push 0
call ebx
push 0
call esi
dec edi
jne 0x40a2e0
mov byte [0x42dde0], 0
call fcn.00409a10
call fcn.0040a100
call fcn.00409ea0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
mov ebp, dword [sym.imp.KERNEL32.dll_SleepEx]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x10], 0xdd7b3
lea esp, [esp]
cmp dword [0x4a9600], 0x21
jne 0x40a366
push 0
push 0
push 0
call esi
push 0
push 0
lea ecx, [esp + 0x198]
push ecx
push 0
call edi
push 0
push 0
call ebp
lea edx, [esp + 0x14]
push edx
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
dec dword [esp + 0x10]
jne 0x40a330
call fcn.00409f80
cmp dword [0x4a9600], 0x58c
mov byte [0x42dde1], 0x73
jne 0x40a435
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_RaiseException]
call fcn.00409eb0
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret