Function at 0x408120
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419391
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x420070]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 4
call fcn.0040b350
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x34], 0
mov ecx, dword [ebp - 0x3c]
add ecx, 0x38
call fcn.0040e110
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
mov byte [eax + 0x50], 0
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x64], 0x989680
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x68], 0
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x6c], 0
mov ecx, dword [0x420c20]
push ecx
mov edx, dword [0x420c24]
push edx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x70
call fcn.0040e3a0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3c]
add ecx, 0xb8
call fcn.0040c560
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3c]
add ecx, 0xc4
call fcn.0040c560
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3c]
add ecx, 0xd0
call fcn.0040c560
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x3c]
add ecx, 0xe0
call fcn.00403ef0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x3c]
add ecx, 0xe0
call fcn.00403fd0
mov ecx, dword [ebp - 0x3c]
call fcn.00409350
push 0
mov ecx, dword [ebp - 0x3c]
add ecx, 0x70
call fcn.0040f3b0
mov eax, dword [0x420c00]
push eax
push connect
lea ecx, [ebp - 0x38]
call fcn.00401ad0
mov byte [ebp - 4], 7
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x11
push 0x11
push 0
mov ecx, dword [ebp - 0x3c]
add ecx, 0x51
push ecx
call fcn.004100c0
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x3c]
add eax, 0x51
push eax
push 0x41aef8
lea ecx, [ebp - 0x38]
call fcn.00401bc0
test eax, eax
jne 0x4082db
mov byte [ebp - 0x1c], 0
cmp dword [ebp - 0x14], 0x10
jae 0x4082d9
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00402200
add esp, 4
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x3c]
add eax, 0x51
push eax
call fcn.0040fec0
add esp, 8
mov ecx, dword [ebp - 0x3c]
add ecx, 0x51
push ecx
call fcn.0040f9f0
add esp, 4
push eax
mov edx, dword [ebp - 0x3c]
add edx, 0x51
push edx
push 0x41aefc
lea ecx, [ebp - 0x38]
call fcn.00401c60
jmp 0x408322
lea eax, [ebp - 0x2c]
push eax
call fcn.00402200
add esp, 4
mov byte [ebp - 0x1c], 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x3c]
add edx, 0x51
push edx
call fcn.0040fec0
add esp, 8
mov eax, dword [ebp - 0x3c]
add eax, 0x51
push eax
call fcn.0040f9f0
add esp, 4
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x51
push ecx
push 0x41af00
lea ecx, [ebp - 0x38]
call fcn.00401c60
mov dword [ebp - 0x14], 4
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x3c]
add eax, 0x64
push eax
push 0x41af04
lea ecx, [ebp - 0x38]
call fcn.00401bc0
test eax, eax
jne 0x408347
jmp 0x408351
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x64], 0x989680
mov dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x3c]
add eax, 0x68
push eax
call fcn.004100c0
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x3c]
add edx, 0x68
push edx
push 0x41af08
lea ecx, [ebp - 0x38]
call fcn.00401bc0
test eax, eax
jne 0x40838b
jmp 0x4083d2
mov eax, dword [ebp - 0x3c]
add eax, 0x68
push eax
call fcn.0040ffe7
add esp, 4
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x64]
cdq
mov ecx, 0x3e8
idiv ecx
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edx + 0x6c]
sub ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, dword [edx + 0x68]
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x68], ecx
push 4
mov ecx, dword [ebp - 0x3c]
add ecx, 0x68
push ecx
push 0x41af0c
lea ecx, [ebp - 0x38]
call fcn.00401c60
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov edx, dword [ebp - 0x3c]
mov dword [edx], eax
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
jne 0x4083fc
push str.Error_create_Event_in_OutPutPacket.
call fcn.00403dd0
add esp, 4
jmp 0x408406
push 0
mov ecx, dword [ebp - 0x3c]
call fcn.00408650
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call fcn.00401b00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00410051
mov esp, ebp
pop ebp
ret