Function at 0x414d60
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, 0x1de4
call fcn.0040eef0
cmp dword [0x2b72bbc], 0x422
push ebx
push ebp
push esi
push edi
jne 0x414dc9
push 0
push 0
push 0
call fcn.00403d60
add esp, 0xc
push 0x403664
push 0
call fcn.00403d60
push 0
call fcn.00403d55
add esp, 0xc
push 0
call fcn.00403d25
add esp, 4
push 0x4036c4
push 0x4036c8
push 0x4493a8
call fcn.00403d60
add esp, 0xc
push 0
call fcn.00403c91
add esp, 4
mov eax, 0x38d6
add dword [0x2b72bbc], eax
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x48]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp esi, 0x1c2a7
jge 0x414df0
push 0
call ebp
cmp esi, 0x1ea072e7
jle 0x414e08
cmp edi, 0xacd468
je 0x414e08
cmp ebx, 0xad1ade0
jne 0x414e11
inc esi
cmp esi, 0x8c6fd558
jb 0x414de4
mov eax, dword [0x2b72bbc]
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_DnsHostnameToComputerNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [0x2b726a0], eax
mov eax, dword [0x2b72bbc]
mov dword [esp + 0x10], 0x962ae8
lea esp, [esp]
cmp eax, 0xd
jne 0x414f46
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x19f4]
push edx
push 0x4036d0
call ebp
lea eax, [esp + 0x3c]
push eax
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0xdf4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1f4]
push ecx
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 edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x9fc]
push edx
push eax
push eax
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 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 0x40370c
push 0
lea eax, [esp + 0x15f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x403768
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov eax, dword [0x2b72bbc]
dec dword [esp + 0x10]
jne 0x414e50
xor esi, esi
test eax, eax
je 0x414f8c
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp eax, 0xfe
jne 0x414f71
push 0
push 0
push 0
call edi
call fcn.00414a00
mov eax, dword [0x2b72bbc]
cmp eax, 0x29
jne 0x414f87
call ebx
mov eax, dword [0x2b72bbc]
inc esi
cmp esi, eax
jb 0x414f62
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x414fd1
push 0x40372c
call ebx
push 0
lea edx, [esp + 0x1f4]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4037c4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0x4037d8
push 0x403808
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov edi, dword [sym.imp.USER32.dll_LoadMenuW]
mov esi, 0x8dc
lea esp, [esp]
push 0
push 0
call edi
dec esi
jne 0x414fe0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, 0x25865
cmp dword [0x2b72bbc], 0x15a
jne 0x41500e
push 0
call ebx
push 0
push 0
push 0
push 0
call esi
dec edi
jne 0x414ff4
mov byte [0x4493a8], 0
call fcn.00414540
call fcn.00414d30
call fcn.004149e0
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
mov edi, edi
cmp dword [0x2b72bbc], 0x21
jne 0x415069
call esi
push 0
push 0
lea eax, [esp + 0x1f8]
push eax
push 0
call edi
lea ecx, [esp + 0x14]
push ecx
push 0x403848
push 0
call ebx
dec ebp
jne 0x415040
call fcn.00414b70
cmp dword [0x2b72bbc], 0x58c
mov byte [0x4493a9], 0x73
jne 0x415134
lea edx, [esp + 0xb0]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
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 ecx, [esp + 0x70]
push ecx
push 0x403878
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 0x4038e0
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0x30
lea edx, [esp + 0x44]
push ebp
push edx
mov dword [esp + 0x48], ebp
call fcn.004090a0
add esp, 0xc
push ebp
lea eax, [esp + 0x40]
push eax
push 0x403864
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0x40395c
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
lea ecx, [esp + 0x1c]
push ecx
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
call fcn.004149f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1de4
ret