Function at 0x402190
Capabilities:
Create thread
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x45b5b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x28], 2
mov eax, dword [esp + 0x3c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
mov dword [esp + 0x20], 1
call fcn.0040c3d0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 3
call fcn.0040caa0
add esp, 4
mov esi, eax
mov byte [esp + 0x2c], 2
call fcn.004137b0
test eax, eax
jne 0x40227d
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402226
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40224b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402273
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4024aa
mov eax, dword [esp + 0x34]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.0040c3d0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 4
call fcn.0040caa0
add esp, 4
mov ecx, eax
mov byte [esp + 0x2c], 2
call fcn.004141c0
test eax, eax
je 0x402201
mov eax, dword [esp + 0x38]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.0040c3d0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 5
call fcn.0040caa0
add esp, 4
push eax
mov byte [esp + 0x30], 2
call fcn.00414280
call fcn.0040caa0
push 0
push 0
mov esi, eax
push esi
push 0x413fd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
call fcn.0040caa0
mov eax, dword [eax + 0x14]
push 0x5dc
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4023ff
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0040caa0
mov esi, dword [eax + 0x18]
cmp esi, 0xffffffff
je 0x4023ff
mov ecx, dword [ebp + 0x20]
push 0
push esi
push 0x7ea
push ecx
call ebx
call fcn.0042263d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4024c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push esi
lea ecx, [esp + 0x34]
push 0x462900
push ecx
mov byte [esp + 0x34], 6
call fcn.00401360
add esp, 0xc
push 1
push 0x462914
lea ecx, [esp + 0x38]
call fcn.0040c440
mov esi, dword [esp + 0x30]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push esi
call fcn.0040c3d0
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [edi], eax
call fcn.00409280
mov edx, dword [ebp + 0x20]
push 0
push 0
push 0x7ec
push edx
call ebx
mov byte [esp + 0x28], 2
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4023e3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
call fcn.0040caa0
mov eax, dword [eax + 0x14]
push 0x5dc
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402328
add ebp, 0x98
push ebp
push ecx
call fcn.0040caa0
add esp, 4
push eax
call fcn.00413ae0
call fcn.0040caa0
cmp dword [eax + 0x18], 0x64
jne 0x402428
mov dword [esp + 0x18], 0
call fcn.0040caa0
mov esi, eax
call fcn.00413820
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402459
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40247e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
push 0x80004005
call fcn.00401000
int3