Function at 0x414d70
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.0040ede0
cmp dword [0x2b72af4], 0x422
push ebx
push ebp
push esi
push edi
jne 0x414ddb
push 0
push 0
push 0
call fcn.00403cb7
add esp, 0xc
push 0x40365c
push 0
call fcn.00403cb7
push 0
call fcn.00403cac
add esp, 0xc
push 0
call fcn.00403c7c
add esp, 4
push 0x4036bc
push 0x4036c0
push 0x4492e0
call fcn.00403cb7
add esp, 0xc
push 0
push 0
call fcn.00403c3c
add esp, 8
mov eax, 0x38d6
add dword [0x2b72af4], 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 0x414e02
push 0
call ebp
cmp esi, 0x1ea072e7
jle 0x414e1a
cmp edi, 0xacd468
je 0x414e1a
cmp ebx, 0xad1ade0
jne 0x414e23
inc esi
cmp esi, 0x8c6fd558
jb 0x414df6
mov eax, dword [0x2b72af4]
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 [0x2b725d8], eax
mov eax, dword [0x2b72af4]
mov dword [esp + 0x10], 0x962ae8
jmp 0x414e60
cmp eax, 0xd
jne 0x414f28
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 [0x2b72af4]
dec dword [esp + 0x10]
jne 0x414e60
xor esi, esi
test eax, eax
je 0x414f6e
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp eax, 0xfe
jne 0x414f53
push 0
push 0
push 0
call edi
call fcn.00414a10
mov eax, dword [0x2b72af4]
cmp eax, 0x29
jne 0x414f69
call ebx
mov eax, dword [0x2b72af4]
inc esi
cmp esi, eax
jb 0x414f44
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x414fb3
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
mov edi, edi
push 0
push 0
call edi
dec esi
jne 0x414fc0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, 0x25865
cmp dword [0x2b72af4], 0x15a
jne 0x414fee
push 0
call ebx
push 0
push 0
push 0
push 0
call esi
dec edi
jne 0x414fd4
mov byte [0x4492e0], 0
call fcn.00414550
call fcn.00414d40
call fcn.004149f0
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 [0x2b72af4], 0x21
jne 0x415049
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 0x415020
call fcn.00414b80
cmp dword [0x2b72af4], 0x58c
mov byte [0x4492e1], 0x73
jne 0x415115
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]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push 0x4038d8
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0x30
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov dword [esp + 0x30], ebp
call fcn.00408220
add esp, 0xc
push ebp
lea edx, [esp + 0x28]
push edx
push 0x40385c
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0x403954
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.00414a00
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x19cc
ret