Function at 0x414d50
Capabilities:
Enumerate gui resources
Get common file path
Get disk information
Get file attributes
Get hostname
Manipulate console buffer
Query environment variable
Read .ini file
Read pipe
Write pipe

Disassembly:
mov eax, 0x19e4
call fcn.0040eda0
cmp dword [0x2b6f8f4], 0x422
push ebx
push ebp
push esi
push edi
jne 0x414dbb
push 0
push 0
push 0
call fcn.00403c73
add esp, 0xc
push 0x403708
push 0
call fcn.00403c73
push 0
call fcn.00403c68
add esp, 0xc
push 0
call fcn.00403c38
add esp, 4
push 0x403714
push 0x403718
push 0x4460e0
call fcn.00403c73
add esp, 0xc
push 0
push 0
call fcn.00403bf8
add esp, 8
mov eax, 0x38d6
add dword [0x2b6f8f4], eax
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x48]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp esi, 0x1c2a7
jge 0x414de2
push 0
call ebp
cmp esi, 0x1ea072e7
jle 0x414dfa
cmp edi, 0xacd468
je 0x414dfa
cmp ebx, 0xad1ade0
jne 0x414e03
inc esi
cmp esi, 0x8c6fd558
jb 0x414dd6
mov eax, dword [0x2b6f8f4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov edi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [0x2b6f3d8], eax
mov eax, dword [0x2b6f8f4]
mov dword [esp + 0x14], 0x962ae8
jmp 0x414e40
cmp eax, 0xd
jne 0x414f28
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 ecx, [esp + 0x3c]
push ecx
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x1f4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x5f4]
push edx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0xdfc]
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
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x403720
push 0
lea edx, [esp + 0x11f8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea eax, [esp + 0x1c]
push eax
push 0
push 0x403778
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov eax, dword [0x2b6f8f4]
dec dword [esp + 0x14]
jne 0x414e40
xor esi, esi
test eax, eax
je 0x414f6a
mov edi, dword [sym.imp.KERNEL32.dll__lclose]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
cmp eax, 0xfe
jne 0x414f4f
push 0
call edi
call fcn.004149e0
mov eax, dword [0x2b6f8f4]
cmp eax, 0x29
jne 0x414f65
call ebx
mov eax, dword [0x2b6f8f4]
inc esi
cmp esi, eax
jb 0x414f44
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x414fa9
push 0x4037b4
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x4037f0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0x403804
push 0x403834
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov edi, dword [sym.imp.USER32.dll_LoadMenuA]
mov esi, 0x8dc
push 0
push 0
call edi
dec esi
jne 0x414fb4
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, 0x25865
jmp 0x414fd0
cmp dword [0x2b6f8f4], 0x15a
jne 0x414fea
push 0
call ebx
push 0
push 0
push 0
push 0
call esi
dec edi
jne 0x414fd0
mov byte [0x4460e0], 0
call fcn.00414520
call fcn.00414d20
call fcn.004149c0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
mov ebp, 0xdd7b3
lea ebx, [ebx]
cmp dword [0x2b6f8f4], 0x21
jne 0x415049
call esi
push 0
push 0
lea ecx, [esp + 0x11f8]
push ecx
push 0
call edi
lea edx, [esp + 0x18]
push edx
push 0x403874
push 0
call ebx
dec ebp
jne 0x415020
call fcn.00414b60
cmp dword [0x2b6f8f4], 0x58c
mov byte [0x4460e1], 0x73
jne 0x415114
lea eax, [esp + 0xb0]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebp
push ebp
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_BackupSeek]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
lea edx, [esp + 0x70]
push edx
push 0x403890
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_FindActCtxSectionStringA]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push 0x4038f8
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0x30
lea eax, [esp + 0x44]
push ebp
push eax
mov dword [esp + 0x48], ebp
call fcn.004081e0
add esp, 0xc
push ebp
lea ecx, [esp + 0x40]
push ecx
push 0x403974
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0x403984
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
lea edx, [esp + 0x20]
push edx
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
call fcn.004149d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x19e4
ret