Function at 0x414790
Capabilities:
Delete file
Enumerate gui resources
Get common file path
Get file attributes
Manipulate console buffer
Read .ini file
Read pipe
Write pipe

Disassembly:
sub esp, 0xecc
cmp dword [0x2b6113c], 0x422
push ebx
push ebp
push esi
push edi
jne 0x41481c
push 0
push 0
push 0
call fcn.00403df6
push 0x403438
push 0
call fcn.00403df6
push 0
call fcn.00403dbb
push 0
push 0
call fcn.00403987
push 0
call fcn.00403dbb
push 0x403444
push 0x403448
push 0x437928
call fcn.00403df6
push 0
call fcn.004039f9
push 0
push 0
push 0
push 0
push 0
call fcn.00403792
add esp, 0x48
push 0
push 0
push 0
push 0
call fcn.004038e7
push 0
push 0
push 0
call fcn.00403d2a
add esp, 0x1c
mov edi, dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
xor esi, esi
cmp esi, 0xfc0
jne 0x414837
mov eax, 0x38d6
add dword [0x2b6113c], eax
cmp dword [0x2b6113c], 0xd04
jne 0x414849
push 0
push 0
call edi
inc esi
cmp esi, 0x31a576
jl 0x414824
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp esi, 0x1c275
jge 0x41486e
push 0
call ebp
cmp esi, 0x1ea070f3
jle 0x414886
cmp edi, 0xacd436
je 0x414886
cmp ebx, 0xad1af0c
jne 0x41488f
inc esi
cmp esi, 0x8c238a18
jb 0x414862
mov eax, dword [0x2b6113c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
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 [0x2b60c20], eax
mov eax, dword [0x2b6113c]
mov dword [esp + 0x14], 0x962ae8
cmp eax, 3
jne 0x4148de
lea ecx, [esp + 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x2b6113c]
cmp eax, 0xd
jne 0x41497e
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 + 0x1c]
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 + 0x24]
push edx
push eax
lea ecx, [esp + 0xae4]
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 + 0x2e0]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
mov eax, dword [0x2b6113c]
dec dword [esp + 0x14]
jne 0x4148c7
xor esi, esi
test eax, eax
je 0x4149c4
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ebx, [ebx]
cmp eax, 0xfe
jne 0x4149b5
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
call fcn.004144d0
mov eax, dword [0x2b6113c]
inc esi
cmp esi, eax
jb 0x4149a0
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x414a06
push 0x403450
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_GetWindowsDirectoryW]
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 0x414a11
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, 0x25865
mov ebp, 0x15a
lea ebx, [ebx]
cmp dword [0x2b6113c], ebp
jne 0x414a46
push 0
call ebx
push 0
push 0
push 0
push 0
call esi
dec edi
jne 0x414a30
mov byte [0x437928], 0
call fcn.00414010
call fcn.00414760
call fcn.004144b0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esp + 0x14], 0xdd7b3
nop
cmp dword [0x2b6113c], 0x21
jne 0x414aac
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 0x414a80
call fcn.00414700
cmp dword [0x2b6113c], 0x58c
mov byte [0x437929], 0x73
jne 0x414b56
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
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0x40345c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0x30
lea ecx, [esp + 0x2c]
push 0
push ecx
mov dword [esp + 0x30], 0
call fcn.004050d0
add esp, 0xc
push 0
lea edx, [esp + 0x28]
push edx
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 eax, [esp + 0x58]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
call fcn.004144c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xecc
ret