Function at 0x414a40
Capabilities:
Delete file
Enumerate files on windows
Enumerate gui resources
Get file attributes
Manipulate console buffer
Read .ini file
Read pipe
Terminate thread
Write pipe

Disassembly:
mov eax, 0x12cc
call fcn.00413360
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
xor esi, esi
cmp esi, 0xfc0
jne 0x414a69
mov eax, 0x38d6
add dword [0x4d54ac], eax
cmp dword [0x4d54ac], 0xd04
jne 0x414a7b
push 0
push 0
call edi
inc esi
cmp esi, 0x31a576
jl 0x414a56
mov eax, dword [0x4d54ac]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
mov edi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_SearchPathA]
mov dword [0x4d4f90], eax
mov dword [esp + 0x14], 0x962ae8
cmp dword [0x4d54ac], 3
jne 0x414acd
lea ecx, [esp + 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [0x4d54ac], 0xd
jne 0x414b6c
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
push 0
call ebp
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x6dc]
push eax
push 0
push 0
push 0
push 0
call ebx
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x2e4]
push ecx
push eax
push eax
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
lea edx, [esp + 0xae0]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
dec dword [esp + 0x14]
jne 0x414ab7
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp esi, 0x1c275
jge 0x414b92
push 0
call ebp
cmp esi, 0x1ea070f3
jle 0x414baa
cmp edi, 0xacd436
je 0x414baa
cmp ebx, 0xad1af0c
jne 0x414bb3
inc esi
cmp esi, 0x8c238a18
jb 0x414b86
mov eax, dword [0x4d54ac]
xor esi, esi
test eax, eax
je 0x414bee
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, 0xfe
jne 0x414bdf
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
call fcn.00414790
mov eax, dword [0x4d54ac]
inc esi
cmp esi, eax
jb 0x414bca
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x414c30
push 0x403428
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_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, dword [sym.imp.USER32.dll_LoadMenuW]
mov esi, 0x8dc
push 0
push 0
call edi
dec esi
jne 0x414c3b
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, 0x2592d
mov ebp, 0x15a
cmp dword [0x4d54ac], ebp
jne 0x414c6a
push 0
call ebx
push 0
push 0
push 0
push 0
call esi
dec edi
jne 0x414c54
mov byte [0x45a088], 0
call fcn.004142d0
call fcn.00414a10
call fcn.00414770
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esp + 0x14], 0xdd7b3
cmp dword [0x4d54ac], 0x21
jne 0x414ccf
push 0
push 0
push 0
call esi
push 0
push 0
lea ecx, [esp + 0x2e0]
push ecx
push 0
call edi
lea edx, [esp + 0x24]
push edx
call ebx
push 0
call ebp
dec dword [esp + 0x14]
jne 0x414ca3
call fcn.004149b0
cmp dword [0x4d54ac], 0x58c
mov byte [0x45a089], 0x73
jne 0x414d9a
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [esp + 0x198]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupSeek]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0x403434
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0x30
lea edx, [esp + 0x2c]
push 0
push edx
mov dword [esp + 0x30], 0
call fcn.00405ef0
add esp, 0xc
push 0
lea eax, [esp + 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [esp + 0x58]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
call fcn.00414780
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12cc
ret