Function at 0x404390
Capabilities:
Check for time delay via gettickcount
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x44cc18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.0044b6f4
xor ebx, ebx
push 0x475d58
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.00405c30
push 0x475d58
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jne 0x40440a
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xa
jmp 0x404792
mov eax, dword [esi + 0x30]
mov ebp, dword [esp + 0x28]
cmp eax, 5
mov dword [esi + 0x28], ebp
jne 0x404591
cmp ebp, ebx
jne 0x404569
mov eax, dword [esi + 8]
lea ebp, [esi + 8]
push eax
mov dword [esi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 2
mov ecx, esi
call fcn.00402df0
mov edi, eax
cmp edi, 0xc
jne 0x40445d
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
jmp 0x404792
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp edi, ebx
mov dword [esp + 0x14], eax
jne 0x40456f
mov dword [esp + 0x30], ebx
push 1
push 0x4e20
push 0
push ebp
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov eax, edi
sub eax, 0
je 0x4044f3
dec eax
je 0x40452c
dec eax
jne 0x4044d3
mov ecx, esi
call fcn.00403160
cmp eax, 2
jne 0x4044b6
mov dword [esp + 0x30], 1
jmp 0x4044c9
cmp eax, 0xc
jne 0x4044c5
mov dword [esp + 0x30], 2
jmp 0x4044c9
test eax, eax
je 0x4044d3
push 1
push 0x64
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x40452c
cmp eax, 1
je 0x404565
sub ebx, dword [esp + 0x14]
cmp ebx, 0x4e20
jae 0x404565
jmp 0x404473
mov eax, dword [esi + 0x1c]
test eax, eax
jle 0x404565
mov al, byte [esi + 0x4f9e]
mov dword [esi + 0x1c], 0
cmp al, 0x5f
jne 0x404565
cmp dword [0x475d0c], 1
jne 0x40477c
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x40477c
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x40454e
jmp 0x404551
lea ecx, [esp + 0x10]
mov dword [esi + 0x30], 6
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xc
jmp 0x404792
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40474b
jmp 0x404735
mov ebp, dword [esp + 0x28]
cmp dword [esi + 0x30], 5
jne 0x404591
lea ecx, [esp + 0x10]
mov dword [esi + 0x30], 6
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 9
jmp 0x404792
mov ecx, esi
call fcn.00404380
mov edx, dword [esi + 8]
lea edi, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, 0x474020
mov dword [esi + 0x30], 3
call fcn.004075b0
mov eax, dword [0x47357c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CAsyncSocket::Connect
test eax, eax
jne 0x40462b
call sub.WSOCK32.dll_WSAGetLastError
mov ebx, eax
cmp ebx, 0x2733
je 0x40462b
mov edx, dword [esi + 0xc]
push 1
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x404608
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xc
jmp 0x404792
cmp ebx, 0x2748
jne 0x40462b
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 9
jmp 0x404792
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0x2710
push 0
push edi
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, 0xc0
jne 0x404650
push 0
call ebx
jmp 0x404631
cmp eax, 0x102
jne 0x404672
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 8
jmp 0x404792
cmp eax, 1
jne 0x404692
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xc
jmp 0x404792
push ebp
mov ecx, esi
call fcn.00403b70
mov edi, eax
cmp edi, 0x17
je 0x4046b9
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
jmp 0x404792
mov eax, dword [esi + 0x28]
mov dword [esi + 0x30], 5
test eax, eax
jne 0x40477c
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], 0x32
jge 0x4046fc
lea ecx, [esp + 0x10]
push ecx
call fcn.00406740
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
add esp, 4
mov dword [0x473580], edx
push eax
push 0x4735ed
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x475da0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00437520
push 0x475da0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x404721
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40477c
cmp dword [0x475d0c], 1
jne 0x404757
mov esi, dword [esi + 0x14]
push 0
push 1
push 0x41a
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x475d0c], 0
jmp 0x40477c
mov edx, dword [esi + 0x53a4]
mov eax, dword [0x473524]
cmp edx, eax
jne 0x40477c
mov esi, dword [esi + 0x14]
push 0
push 2
push 0x41a
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 5
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc