Function at 0x405981
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [ebp - 0x758]
add edx, 1
mov dword [ebp - 0x758], edx
mov eax, dword [ebp - 0x754]
mov ecx, dword [ebp - 0x758]
cmp ecx, dword [eax + 0x18]
jae 0x405ad6
mov edx, dword [ebp - 0x758]
mov eax, dword [ebp - 0x19c8]
mov ecx, dword [ebp - 0x320]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x75c], ecx
mov edx, dword [ebp - 0x758]
mov eax, dword [ebp - 0x19cc]
movzx ecx, word [eax + edx*2]
push eax
push eax
mov edx, dword [ebp - 0x19d0]
mov eax, dword [ebp - 0x320]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x19d4], eax
mov dword [ebp - 0x198], 0
jmp 0x40593a
mov ecx, dword [ebp - 0x198]
add ecx, 1
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x75c]
add edx, dword [ebp - 0x198]
movsx eax, byte [edx]
test eax, eax
je 0x4059ec
mov ecx, dword [ebp - 0x198]
movsx edx, byte [ebp + ecx - 0x894]
test edx, edx
je 0x4059ec
push ecx
push edi
add esp, 4
xor ecx, 0x73a
and ecx, 0x1dff
xor ecx, 0x4895
pop ecx
push esi
and esi, 0x10efa
out 0xfa, al
push cs
add dword [eax], eax
and esi, 0x16d6e
xor esi, 0xc120
xor esi, 0x14344
pop esi
mov eax, dword [ebp - 0x75c]
add eax, dword [ebp - 0x198]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0x198]
movsx eax, byte [ebp + edx - 0x894]
cmp ecx, eax
je 0x4059de
mov ecx, dword [ebp - 0x75c]
add ecx, dword [ebp - 0x198]
movsx edx, byte [ecx]
xor edx, 0x20
mov eax, dword [ebp - 0x198]
movsx ecx, byte [ebp + eax - 0x894]
add eax, 0xfffff76c
cmp edx, ecx
jne 0x4059e5
jmp 0x40592b
jmp 0x4059ec
push esi
push ebx
add esp, 4
add esi, 0x1699
sub esi, 0xb0b5
pop esi
push esi
push edx
add esp, 4
add esi, 0x5124
pop esi
push ebx
and ebx, 0x6799
or ebx, 0xb7b2
and ebx, 0x3511
pop ebx
mov edx, dword [ebp - 0x75c]
add edx, dword [ebp - 0x198]
movsx eax, byte [edx]
mov ecx, dword [ebp - 0x198]
movsx edx, byte [ebp + ecx - 0x894]
cmp eax, edx
jne 0x405a4b
mov dword [ebp - 0xca8], 0
jmp 0x405aba
push eax
push ebx
add esp, 4
sub eax, 0x252f
jmp 0x405a5c
sub eax, 0x11aef
pop eax
push ecx
push edx
add esp, 4
or ecx, 0x4333
or ecx, 0x3319
pop ecx
push edi
xor edi, 0xd709
pop edi
mov eax, dword [ebp - 0x75c]
add eax, dword [ebp - 0x198]
movsx ecx, byte [eax]
or ecx, 0x20
mov edx, dword [ebp - 0x198]
movsx eax, byte [ebp + edx - 0x894]
or eax, 0x20
cmp ecx, eax
jge 0x405ab0
mov dword [ebp - 0xca8], 0xffffffff
jmp 0x405aba
mov dword [ebp - 0xca8], 1
cmp dword [ebp - 0xca8], 0
jne 0x405ad1
mov ecx, dword [ebp - 0x19d4]
mov dword [ebp - 0x3f4], ecx
jmp 0x405ae2
jmp 0x4058bb
mov edx, dword [ebp - 0x760]
mov dword [ebp - 0x3f4], edx
cmp dword [ebp - 0x3f4], 0
je 0x405bbd
push edx
push ebx
add esp, 4
or edx, 0xbd68
xor edx, 0x855f
and edx, 0xcb6e
or edx, 0x15551
pop edx
push ecx
add ecx, 0x4d65
or ecx, 0x1ab5
and ecx, 0x2e19
pop ecx
mov eax, dword [ebp - 0x3f4]
mov dword [ebp - 0x19d8], eax
push eax
call 0x405b3b
add byte [edi + 0x39], al
dec edx
push eax
dec esp
dec esp
add esp, 4
jmp 0x405b45
and eax, 0x3603
call 0x405b5b
add byte [ebx], bh
cmp byte [esi], bh
cmp dword [eax], edi
inc esi
inc edx
inc ebx
cmp al, 0x4d
add esp, 4
pop eax
mov ecx, dword [ebp - 0x19d8]
mov dword [ebp - 0x19dc], ecx
lea edx, [ebp - 0x173c]
push edx
call dword [ebp - 0x19dc]
test eax, eax
jne 0x405bbd
inc ecx
push edi
push esi
add esp, 4
xor edi, 0xe83e
or edi, 0x11b35
sbb eax, dword [ecx]
add byte [edi + 0x51], bl
sub ecx, 0x6ceb
xor ecx, 0xb03a
call 0x405baa
add byte [ebx], bh
dec ebp
aaa
dec edi
xor al, 0x49
inc ebx
dec esi
add esp, 4
pop ecx
mov dword [ebp - 0x79c], 0
jmp 0x4062a7
push ecx
push ecx
add esp, 4
call 0x405bd0
add byte [ecx + 0x36], al
cmp edi, dword [esi]
aaa
dec edx
inc esp
add esp, 4
pop ecx
push edx
push eax
add esp, 4
or edx, 0x1861f
add edx, 0x12ddd
jmp 0x405bee
pop edx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x19e0], eax
mov ecx, dword [ebp - 0x19e0]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x19e4], edx
mov eax, dword [ebp - 0x19e4]
mov dword [ebp - 0x1600], eax
push ecx
push eax
add esp, 4
and ecx, 0x8cf7
or ecx, 0x931
sub ecx, 0x1329a
and ecx, 0x2f0b
pop ecx
push edi
add edi, 0x769f
jmp 0x405c41
add edi, 0x42e0
pop edi
cmp dword [ebp - 0x1600], 0