Function at 0x414d40
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

Disassembly:
mov eax, 0x19cc
call fcn.0040ed70
cmp dword [0x59c924], 0x422
push ebx
push ebp
push esi
push edi
jne 0x414d95
push 0
push 0
push 0
call fcn.00403c46
add esp, 0xc
push 0x40365c
push 0
call fcn.00403c46
push 0
call fcn.004144e6
add esp, 0xc
push 0x4036bc
push 0x4036c0
push 0x45d328
call fcn.00403c46
add esp, 0xc
mov eax, 0x38d6
add dword [0x59c924], eax
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp esi, 0x1c2a7
jge 0x414dbc
push 0
call ebp
cmp esi, 0x1ea072e7
jle 0x414dd4
cmp edi, 0xacd468
je 0x414dd4
cmp ebx, 0xad1ade0
jne 0x414ddd
inc esi
cmp esi, 0x8c6fd558
jb 0x414db0
mov eax, dword [0x59c924]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov edi, dword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameA]
mov ebp, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_PulseEvent]
mov dword [0x59c408], eax
mov eax, dword [0x59c924]
mov dword [esp + 0x10], 0x962ae8
cmp eax, 0xd
jne 0x414edd
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x9dc]
push edx
push 0x4036c8
call edi
lea eax, [esp + 0x24]
push eax
call ebp
push 0
call ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xddc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1dc]
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]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x403704
push 0
lea edx, [esp + 0x15e0]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea eax, [esp + 0x18]
push eax
push 0
push 0x403760
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov eax, dword [0x59c924]
dec dword [esp + 0x10]
jne 0x414e15
xor esi, esi
test eax, eax
je 0x414f2a
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
lea esp, [esp]
cmp eax, 0xfe
jne 0x414f0f
push 0
push 0
push 0
call edi
call fcn.004149e0
mov eax, dword [0x59c924]
cmp eax, 0x29
jne 0x414f25
call ebx
mov eax, dword [0x59c924]
inc esi
cmp esi, eax
jb 0x414f00
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x414f6f
push 0x403724
call ebx
push 0
lea ecx, [esp + 0x1dc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4037bc
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0x4037d0
push 0x403800
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov edi, dword [sym.imp.USER32.dll_LoadMenuW]
mov esi, 0x8dc
lea ebx, [ebx]
push 0
push 0
call edi
dec esi
jne 0x414f80
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, 0x25865
cmp dword [0x59c924], 0x15a
jne 0x414fae
push 0
call ebx
push 0
push 0
push 0
push 0
call esi
dec edi
jne 0x414f94
mov byte [0x45d328], 0
call fcn.00414520
call fcn.00414d10
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
mov edi, edi
cmp dword [0x59c924], 0x21
jne 0x415009
call esi
push 0
push 0
lea edx, [esp + 0x1e0]
push edx
push 0
call edi
lea eax, [esp + 0x14]
push eax
push 0x403840
push 0
call ebx
dec ebp
jne 0x414fe0
call fcn.00414b50
cmp dword [0x59c924], 0x58c
mov byte [0x45d329], 0x73
jne 0x4150d7
lea ecx, [esp + 0x98]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebp
push ebp
lea edx, [esp + 0x1c]
push edx
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 eax, [esp + 0x58]
push eax
push 0x403870
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_FindActCtxSectionStringA]
mov esi, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0x40385c
push ebp
push ebp
call esi
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push 0x4038d8
push ebp
push ebp
call esi
push 0x30
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov dword [esp + 0x30], ebp
call fcn.00408120
add esp, 0xc
push ebp
lea edx, [esp + 0x28]
push edx
push 0x403954
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0x403964
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
lea eax, [esp + 0x1c]
push eax
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
call fcn.004149d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x19cc
ret