Function at 0x422ee0
Capabilities:
Enumerate gui resources
Get disk information
Get file attributes
Get hostname
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4287d1
push eax
mov dword fs:[0], esp
sub esp, 0xea4
cmp dword [0x8023b8], 0x12
push ebx
push ebp
push esi
push edi
jne 0x422fef
push 0
call fcn.00409c5b
add esp, 4
push 0
call fcn.00422682
add esp, 4
lea eax, [esp + 0x98]
push eax
call fcn.00406550
lea esi, [esp + 0x58]
mov dword [esp + 0xebc], 0
call fcn.00406df0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x64], esp
push 0
mov byte [esp + 0xedc], 1
call fcn.00406100
mov ecx, esi
call fcn.00406e90
push 0
lea ecx, [esp + 0x74]
call fcn.00406100
lea ebx, [esp + 0x70]
mov eax, esi
mov byte [esp + 0xebc], 2
call fcn.00406e10
mov ecx, ebx
call fcn.00406190
push 0
call fcn.00409e3c
fld qword [0x404b30]
push ecx
fstp qword [esp]
push 0x4045dc
call fcn.00409e53
add esp, 0xc
push 0
push 0
call fcn.00409c1b
push 0
push 0
call fcn.00409fcb
push 0
push 0
push 0
call fcn.0040a102
add esp, 0x1c
push 0
call fcn.00409846
add esp, 4
call fcn.00406e80
lea eax, [esp + 0x98]
mov dword [esp + 0xebc], 0xffffffff
call fcn.004060e0
mov eax, 0x38d6
add dword [0x8023b8], eax
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x1c44b
jge 0x42301a
call ebp
cmp esi, 0x1ea08a43
jle 0x423032
cmp edi, 0xacd52a
je 0x423032
cmp ebx, 0xb2d3f48
jne 0x42303b
inc esi
cmp esi, 0x8c6f8742
jb 0x423010
mov ecx, dword [0x8023b8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetComputerNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetHandleCount]
mov edi, dword [sym.imp.KERNEL32.dll_GetStringTypeA]
mov dword [0x7fe828], eax
mov eax, dword [0x8023b8]
mov dword [esp + 0x48], 0x962d40
cmp eax, 3
jne 0x423086
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [0x8023b8]
cmp eax, 0x3f5
jne 0x423159
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call esi
push 0
call ebp
push 0
call ebx
lea edx, [esp + 0x6c]
push edx
push 0
lea eax, [esp + 0x288]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapQueryInformation]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x684]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push 0x4045e8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x4046b8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea eax, [esp + 0x50]
push eax
push 0
push 0x404708
push 0
push 0
call edi
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0x40475c
push 0
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor eax, eax
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
mov eax, dword [0x8023b8]
dec dword [esp + 0x48]
jne 0x423074
xor esi, esi
test eax, eax
je 0x42318b
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
nop
call fcn.00422b70
mov eax, dword [0x8023b8]
cmp eax, 0x29
jne 0x423186
call edi
mov eax, dword [0x8023b8]
inc esi
cmp esi, eax
jb 0x423170
cmp eax, 0x19c
jne 0x4231ec
push 0x404788
call dword [sym.imp.KERNEL32.dll_FindAtomW]
lea eax, [esp + 0x4c]
push eax
push 0
push 0x4047b8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeExA]
mov esi, dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_Process32NextW]
push 0
call esi
push 0x404810
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0x404838
push 0x4048a8
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, dword [sym.imp.USER32.dll_GetMenu]
mov esi, 0x8dc
push 0
call edi
dec esi
jne 0x4231f7
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ebx, 0x25095
nop
cmp dword [0x8023b8], 0x92
jne 0x423231
lea ecx, [esp + 0x98]
push ecx
call esi
push 0x404914
push 0
push 0
call edi
dec ebx
jne 0x423210
mov byte [0x4616c0], bl
call fcn.004226b0
call fcn.00422eb0
call fcn.00422b50
mov edi, dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, 0xdd7b3
cmp dword [0x8023b8], 0x21
jne 0x423281
push 0
call edi
push 0
push 0
lea edx, [esp + 0x688]
push edx
push 0
call ebx
push 0
call esi
dec ebp
jne 0x423260
call fcn.00422e50
cmp dword [0x8023b8], 0x58c
mov byte [0x4616c1], 0x73
jne 0x423326
lea eax, [esp + 0x140]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebp
lea edx, [esp + 0x684]
push edx
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
push 0x404948
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
push ebp
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push ebp
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push 0x404994
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
push 0x4049b0
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
call fcn.00422b60
mov ecx, dword [esp + 0xeb4]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret