Function at 0x40a120
Capabilities:
Delete file
Enumerate files on windows
Enumerate gui resources
Get common file path
Get file attributes
Manipulate console buffer
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbd0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ActivateActCtx]
xor esi, esi
cmp esi, 0xfc0
jne 0x40a14b
mov eax, 0x38d6
add dword [0x4b7d60], eax
cmp dword [0x4b7d60], 0xd04
jne 0x40a160
push 0
lea eax, [esp + 0x18]
push eax
call edi
inc esi
cmp esi, 0x31a576
jl 0x40a138
mov ecx, dword [0x4b7d60]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
mov edi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [0x4b7444], eax
mov dword [esp + 0x10], 0x962ae8
lea ecx, [ecx]
cmp dword [0x4b7d60], 3
jne 0x40a1b2
lea edx, [esp + 0x70]
push edx
push 0
call ebp
cmp dword [0x4b7d60], 0xd
jne 0x40a1d3
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
push 0
call ebx
dec dword [esp + 0x10]
jne 0x40a1a0
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp esi, 0x1c289
jge 0x40a1f5
push 0
call ebp
cmp esi, 0x1ea070f3
jle 0x40a20d
cmp edi, 0xacd440
je 0x40a20d
cmp ebx, 0xad1af0c
jne 0x40a216
inc esi
cmp esi, 0x8ded4d98
jb 0x40a1e9
mov eax, dword [0x4b7d60]
xor esi, esi
test eax, eax
je 0x40a251
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, 0xfe
jne 0x40a242
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
call fcn.00409eb0
mov eax, dword [0x4b7d60]
inc esi
cmp esi, eax
jb 0x40a22d
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomW]
cmp eax, 0x19c
jne 0x40a293
push 0x402a64
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
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 0x40a29e
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, 0x2594b
mov ebp, 0x15a
cmp dword [0x4b7d60], ebp
jne 0x40a2cd
push 0
call ebx
push 0
push 0
push 0
push 0
call esi
dec edi
jne 0x40a2b7
mov byte [0x43c540], 0
call fcn.00409a00
call fcn.0040a0f0
call fcn.00409e90
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esp + 0x10], 0xdd7b3
cmp dword [0x4b7d60], 0x21
jne 0x40a332
push 0
push 0
push 0
call esi
push 0
push 0
lea eax, [esp + 0x3e8]
push eax
push 0
call edi
lea ecx, [esp + 0x14]
push ecx
call ebp
push 0
call ebx
dec dword [esp + 0x10]
jne 0x40a306
call fcn.00409f70
cmp dword [0x4b7d60], 0x58c
mov byte [0x43c541], 0x73
jne 0x40a401
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_RaiseException]
call fcn.00409ea0
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret