Function at 0x414d30
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, 0x21e4
call fcn.0040eec0
cmp dword [0x2b6105c], 0x422
push ebx
push ebp
push esi
push edi
jne 0x414d99
push 0
push 0
push 0
call fcn.00403d30
add esp, 0xc
push 0x403684
push 0
call fcn.00403d30
push 0
call fcn.00403d25
add esp, 0xc
push 0
call fcn.00403cf5
add esp, 4
push 0x403690
push 0x403694
push 0x437848
call fcn.00403d30
add esp, 0xc
push 0
call fcn.00403c61
add esp, 4
mov eax, 0x38d6
add dword [0x2b6105c], 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 0x414dc0
push 0
call ebp
cmp esi, 0x1ea072e7
jle 0x414dd8
cmp edi, 0xacd468
je 0x414dd8
cmp ebx, 0xad1ade0
jne 0x414de1
inc esi
cmp esi, 0x8c6fd558
jb 0x414db4
mov eax, dword [0x2b6105c]
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 [0x2b60b40], eax
mov eax, dword [0x2b6105c]
mov dword [esp + 0x10], 0x962ae8
lea esp, [esp]
cmp eax, 0xd
jne 0x414f16
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 + 0x1df4]
push edx
push 0x40369c
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 + 0x15f4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xdf4]
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 0x4036d8
push 0
lea eax, [esp + 0x1f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x403730
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov eax, dword [0x2b6105c]
dec dword [esp + 0x10]
jne 0x414e20
xor esi, esi
test eax, eax
je 0x414f5c
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp eax, 0xfe
jne 0x414f41
push 0
push 0
push 0
call edi
call fcn.004149d0
mov eax, dword [0x2b6105c]
cmp eax, 0x29
jne 0x414f57
call ebx
mov eax, dword [0x2b6105c]
inc esi
cmp esi, eax
jb 0x414f32
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x414fa1
push 0x40378c
call ebx
push 0
lea edx, [esp + 0x1f4]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4037c8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0x4037dc
push 0x40380c
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 0x414fb0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, 0x25865
cmp dword [0x2b6105c], 0x15a
jne 0x414fde
push 0
call ebx
push 0
push 0
push 0
push 0
call esi
dec edi
jne 0x414fc4
mov byte [0x437848], 0
call fcn.00414510
call fcn.00414d00
call fcn.004149b0
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 [0x2b6105c], 0x21
jne 0x415039
call esi
push 0
push 0
lea eax, [esp + 0x1f8]
push eax
push 0
call edi
lea ecx, [esp + 0x14]
push ecx
push 0x40384c
push 0
call ebx
dec ebp
jne 0x415010
call fcn.00414b40
cmp dword [0x2b6105c], 0x58c
mov byte [0x437849], 0x73
jne 0x415104
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 0x403868
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 0x4038d0
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.00409070
add esp, 0xc
push ebp
lea eax, [esp + 0x40]
push eax
push 0x40394c
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.004149c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21e4
ret