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

Disassembly:
sub esp, 0xecc
cmp dword [0x2b6f75c], 0x422
push ebx
push ebp
push esi
push edi
jne 0x4147fd
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.004036fa
push 0
call fcn.00403dbb
push 0x403444
push 0x403448
push 0x445f48
call fcn.00403df6
push 0
call fcn.004039f9
push 0
push 0
push 0
push 0
call fcn.0040391a
add esp, 0x44
push 0
push 0
push 0
call fcn.00403d2a
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
xor esi, esi
cmp esi, 0xfc0
jne 0x414818
mov eax, 0x38d6
add dword [0x2b6f75c], eax
cmp dword [0x2b6f75c], 0xd04
jne 0x41482a
push 0
push 0
call edi
inc esi
cmp esi, 0x31a576
jl 0x414805
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 0x41484f
push 0
call ebp
cmp esi, 0x1ea070f3
jle 0x414867
cmp edi, 0xacd436
je 0x414867
cmp ebx, 0xad1af0c
jne 0x414870
inc esi
cmp esi, 0x8c238a18
jb 0x414843
mov eax, dword [0x2b6f75c]
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 [0x2b6f240], eax
mov eax, dword [0x2b6f75c]
mov dword [esp + 0x14], 0x962ae8
cmp eax, 3
jne 0x4148bf
lea ecx, [esp + 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x2b6f75c]
cmp eax, 0xd
jne 0x41495f
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 [0x2b6f75c]
dec dword [esp + 0x14]
jne 0x4148a8
xor esi, esi
test eax, eax
je 0x4149a4
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x414980
cmp eax, 0xfe
jne 0x414995
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
call fcn.004144c0
mov eax, dword [0x2b6f75c]
inc esi
cmp esi, eax
jb 0x414980
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x4149e6
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 0x4149f1
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, 0x25865
mov ebp, 0x15a
lea ebx, [ebx]
cmp dword [0x2b6f75c], ebp
jne 0x414a26
push 0
call ebx
push 0
push 0
push 0
push 0
call esi
dec edi
jne 0x414a10
mov byte [0x445f48], 0
call fcn.00414000
call fcn.00414750
call fcn.004144a0
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 [0x2b6f75c], 0x21
jne 0x414a8c
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 0x414a60
call fcn.004146f0
cmp dword [0x2b6f75c], 0x58c
mov byte [0x445f49], 0x73
jne 0x414b36
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.004051e0
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.004144b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xecc
ret