Function at 0x418280
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b5628
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ef7d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x40]
test ebx, ebx
jne 0x4182d7
mov eax, dword [0x4f14e8]
test eax, eax
je 0x4182c7
mov ecx, dword [0x4f14ec]
sub ecx, eax
sar ecx, 2
jne 0x4182d1
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov ebx, dword [eax]
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetACP]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov ebp, eax
mov eax, dword [esi + 4]
push 0x7d5
push eax
call edi
mov eax, dword [ebx]
mov ecx, dword [esi + 4]
push 0
push eax
push 0xfa1
push ecx
call edi
mov eax, dword [ebx]
cmp eax, 4
je 0x418316
cmp eax, 5
je 0x418316
push 0
push 5
jmp 0x41831a
push 0
push 7
mov eax, dword [esi + 4]
push 0x82a
push eax
call edi
xor ebx, ebx
jmp 0x418330
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x90]
mov eax, dword [eax + ebx*4]
mov ecx, dword [esi + 4]
push eax
push ebx
push 0xfa5
push ecx
call edi
add ebx, 1
cmp ebx, 9
jl 0x418330
mov eax, dword [esi + 4]
push 0
push 0
push 0x80a
push eax
call edi
push ebp
call fcn.0042bb90
mov ecx, dword [esi + 4]
add esp, 4
movzx edx, al
push edx
push 0x20
push 0x812
push ecx
call edi
mov eax, dword [0x4f14e8]
test eax, eax
mov dword [0x4e710c], 0xa
je 0x41839d
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x4183ad
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax]
cmp word [edx + 0xbc], 0
je 0x418405
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x4183d2
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax]
cmp word [edx + 0xbe], 0
jne 0x418405
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x4183f7
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax]
mov edx, dword [edx + 0xbc]
mov dword [0x4e710c], edx
mov edx, dword [esp + 0x40]
cmp word [edx + 0xbc], 0
je 0x418429
mov edx, dword [edx + 0xbc]
mov ebx, edx
shr ebx, 0x10
test bx, bx
jne 0x418429
mov dword [0x4e710c], edx
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x418442
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov ebx, dword [eax]
sub ecx, eax
sar ecx, 2
jne 0x418455
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x94]
add ebx, 0x98
push ebx
push eax
mov ecx, esi
call fcn.00413900
mov eax, dword [esi + 4]
push 0
push ebp
push 0x7f5
push eax
call edi
mov eax, dword [0x4f14e8]
test eax, eax
je 0x418492
mov edx, dword [0x4f14ec]
mov ecx, edx
sub ecx, eax
sar ecx, 2
jne 0x4184a2
call fcn.0049ed6a
mov edx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov ecx, dword [eax]
cmp dword [ecx + 0xc1], 0
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
jne 0x4184d0
push 8
call ebp
mov ecx, dword [esi + 4]
push eax
push 0x20
push 0x803
push ecx
call edi
mov edx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
test eax, eax
je 0x4184db
sub edx, eax
sar edx, 2
jne 0x4184e5
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
cmp dword [eax + 0xc5], 0
jne 0x418502
push 5
call ebp
mov ecx, dword [esi + 4]
push eax
push 0x20
push 0x804
push ecx
call edi
mov eax, dword [esp + 0x40]
cmp dword [eax], 1
je 0x418520
lea edx, [eax + 0x98]
mov eax, dword [eax + 0x94]
push edx
push eax
mov ecx, esi
call fcn.00413900
mov eax, dword [esi + 4]
push 0
push 0
push 0x802
push eax
call edi
mov eax, dword [0x4f14e8]
test eax, eax
je 0x418547
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x418557
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov ebx, dword [eax]
sub ecx, eax
sar ecx, 2
jne 0x41856a
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0xd0]
add ebx, 0xd4
push ebx
push eax
mov ecx, esi
call fcn.00413900
mov eax, dword [0x4f14e8]
test eax, eax
je 0x418599
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x4185a9
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov ebx, dword [eax]
sub ecx, eax
sar ecx, 2
jne 0x4185bc
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x10c]
add ebx, 0x110
push ebx
push eax
mov ecx, esi
call fcn.00413900
mov eax, dword [0x4f14e8]
test eax, eax
je 0x4185eb
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x4185fb
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov ebx, dword [eax]
sub ecx, eax
sar ecx, 2
jne 0x41860e
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x148]
add ebx, 0x14c
push ebx
push eax
mov ecx, esi
call fcn.00413900
mov eax, dword [0x4f14e8]
test eax, eax
je 0x41863d
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x41864d
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov ebx, dword [eax]
sub ecx, eax
sar ecx, 2
jne 0x418660
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x184]
add ebx, 0x188
push ebx
push eax
mov ecx, esi
call fcn.00413900
mov eax, dword [0x4f14e8]
test eax, eax
je 0x41868f
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x41869f
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov ebx, dword [eax]
sub ecx, eax
sar ecx, 2
jne 0x4186b2
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c0]
add ebx, 0x1c4
push ebx
push eax
mov ecx, esi
call fcn.00413900
mov eax, dword [0x4f14e8]
test eax, eax
je 0x4186e1
mov edx, dword [0x4f14ec]
mov ecx, edx
sub ecx, eax
sar ecx, 2
jne 0x4186f1
call fcn.0049ed6a
mov edx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov ecx, dword [eax]
cmp dword [ecx + 0x229], 0
je 0x418728
sub edx, eax
sar edx, 2
jne 0x41870d
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x229]
mov ecx, dword [esi + 4]
and eax, 0xffffff
push eax
push 1
push 0x813
push ecx
jmp 0x418735
mov eax, dword [esi + 4]
push 0
push 0
push 0x813
push eax
call edi
mov eax, dword [0x4f14e8]
test eax, eax
je 0x41874f
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x41875f
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax]
cmp dword [edx + 0x22d], 0
je 0x418796
sub ecx, eax
sar ecx, 2
jne 0x41877b
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x22d]
mov ecx, dword [esi + 4]
and eax, 0xffffff
push eax
push 1
push 0x814
push ecx
jmp 0x4187a6
mov eax, dword [esi + 4]
push 0xc0c0c0
push 1
push 0x814
push eax
call edi
mov eax, dword [0x4f14e8]
test eax, eax
je 0x4187c0
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x4187d0
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax]
cmp dword [edx + 0x265], 0
je 0x418807
sub ecx, eax
sar ecx, 2
jne 0x4187ec
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x265]
mov ecx, dword [esi + 4]
and eax, 0xffffff
push eax
push 1
push 0x824
push ecx
jmp 0x418814
mov eax, dword [esi + 4]
push 0
push 0
push 0x824
push eax
call edi
mov eax, dword [0x4f14e8]
test eax, eax
je 0x41882e
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x41883e
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax]
cmp dword [edx + 0x269], 0
je 0x418875
sub ecx, eax
sar ecx, 2
jne 0x41885a
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x269]
mov ecx, dword [esi + 4]
and eax, 0xffffff
push eax
push 1
push 0x825
push ecx
jmp 0x418882
mov eax, dword [esi + 4]
push 0
push 0
push 0x825
push eax
call edi
mov eax, dword [0x4f14e8]
test eax, eax
je 0x41889a
mov ecx, dword [0x4f14ec]
sub ecx, eax
sar ecx, 2
jne 0x4188a4
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
cmp dword [eax + 0x2a5], 0
mov eax, dword [esi + 4]
push 0
je 0x4188f9
push 1
push 0x830
push eax
call edi
mov eax, dword [0x4f14e8]
test eax, eax
je 0x4188d4
mov edx, dword [0x4f14ec]
sub edx, eax
sar edx, 2
jne 0x4188de
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2a5]
mov ecx, dword [esi + 4]
push 0
and eax, 0xffffff
push eax
push 0x832
push ecx
jmp 0x418901
push 0
push 0x830
push eax
call edi
mov eax, dword [0x4f14e8]
test eax, eax
je 0x41891b
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x41892b
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax]
cmp dword [edx + 0x2dd], 0
je 0x418956
sub ecx, eax
sar ecx, 2
jne 0x418947
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2dd]
and eax, 0xffffff
jmp 0x41895a
push 8
call ebp
mov ecx, dword [esi + 4]
push 0
push eax
push 0x815
push ecx
call edi
mov eax, dword [0x4f14e8]
test eax, eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x14], 1
je 0x41898e
mov ecx, dword [0x4f14ec]
sub ecx, eax
sar ecx, 2
jne 0x418998
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
movzx eax, word [eax + 0x314]
cmp eax, 1
mov dword [esp + 0x1c], eax
jge 0x4189b0
lea eax, [esp + 0x14]
jmp 0x4189bd
cmp eax, 3
lea eax, [esp + 0x18]
jg 0x4189bd
lea eax, [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [esi + 4]
push 0
push eax
push 0x88c
push ecx
call edi
mov eax, dword [esi + 4]
push 0
push 0
push 0x93a
push eax
call edi
cmp eax, 1
mov eax, dword [0x4f14e8]
jne 0x418a34
test eax, eax
je 0x4189f9
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x418a09
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax]
cmp dword [edx + 0x355], 0
je 0x418a82
sub ecx, eax
sar ecx, 2
jne 0x418a25
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x355]
and eax, 0xffffff
jmp 0x418a86
test eax, eax
je 0x418a47
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x418a57
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax]
cmp dword [edx + 0x359], 0
je 0x418a82
sub ecx, eax
sar ecx, 2
jne 0x418a73
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov eax, dword [eax + 0x359]
and eax, 0xffffff
jmp 0x418a86
push 0x16
call ebp
mov ecx, dword [esi + 4]
push 0
push eax
push 0x93d
push ecx
call edi
mov eax, dword [0x4f14e8]
test eax, eax
je 0x418aaa
mov ecx, dword [0x4f14ec]
sub ecx, eax
sar ecx, 2
jne 0x418ab4
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
movzx eax, word [eax + 0x38c]
test eax, eax
jbe 0x418b6a
add eax, 0x63
cmp eax, 0x64
mov dword [esp + 0x18], 0x6c
mov dword [esp + 0x1c], 0x64
mov dword [esp + 0x14], eax
jge 0x418ae7
lea eax, [esp + 0x1c]
jmp 0x418af4
cmp eax, 0x6c
lea eax, [esp + 0x18]
jg 0x418af4
lea eax, [esp + 0x14]
mov ebx, dword [eax]
xor ebp, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
call fcn.0041bc60
push eax
push 0x4c8300
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.0042f460
add esp, 0x10
test al, al
je 0x418b59
mov eax, dword [esi + 4]
push 0x19
push ebp
push 0x7f8
push eax
call edi
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x418b43
mov ecx, dword [esp + 0x28]
sub ecx, eax
jne 0x418b4c
call fcn.0049ed6a
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 4]
push eax
push ebp
push 0x801
push edx
call edi
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x418b6a
push eax
call fcn.0049ea7d
add esp, 4
mov eax, dword [esi + 4]
push 0
push 0
push 0x7f9
push eax
call edi
mov eax, dword [0x4f14e8]
test eax, eax
je 0x418b91
mov ecx, dword [0x4f14ec]
mov edx, ecx
sub edx, eax
sar edx, 2
jne 0x418ba1
call fcn.0049ed6a
mov ecx, dword [0x4f14ec]
mov eax, dword [0x4f14e8]
mov edx, dword [eax]
cmp dword [edx + 0x3d1], 0
je 0x418bd9
sub ecx, eax
sar ecx, 2
jne 0x418bbd
call fcn.0049ed6a
mov eax, dword [0x4f14e8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x3d1]
mov edx, dword [esi + 4]
and ecx, 0xffffff
push ecx
push 0
push 0x7fa
push edx
jmp 0x418be9
mov eax, dword [esi + 4]
push 0xefcdab
push 0
push 0x7fa
push eax
call edi
mov ebp, dword [esp + 0x40]
cmp dword [ebp], 1
je 0x418c2f
mov ecx, dword [ebp + 0xd0]
cmp ecx, 0xffffffff
lea eax, [ebp + 0x3c]
mov ebx, 1
je 0x418c2f
add eax, 0x98
push eax
push ecx
mov ecx, esi
call fcn.00413900
add ebx, 1
mov ecx, ebx
shl ecx, 4
sub ecx, ebx
lea eax, [ebp + ecx*4]
mov ecx, dword [eax + 0x94]
cmp ecx, 0xffffffff
jne 0x418c08
mov edx, dword [esi + 4]
push 0xffffffffffffffff
push 0
push 0xfa3
push edx
call edi
cmp dword [ebp], 0x3e7
jne 0x418c56
mov eax, dword [esi + 4]
push 0
push 0
push 0x802
push eax
call edi
mov dword [0x4f14f4], ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4