Function at 0x418130
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x56ae40
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x5c96a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea edi, [ebx + 0x110]
call fcn.00421f70
mov eax, dword [ebx + 0x20]
push 0xffff0000
xor esi, esi
push esi
push 0x1101
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x5e12b4]
mov dword [esp + 0x24], esi
cmp eax, esi
jbe 0x41818e
mov dword [esp + 0x18], eax
cmp eax, 0x64
jb 0x418196
mov dword [esp + 0x18], 0x64
mov edi, dword [esp + 0x44]
movzx edx, word [edi + 0x6c]
movzx ebp, word [edi + 0x6a]
mov ecx, dword [edi + 0x6e]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], ebp
call fcn.00441f5f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4181cb
push 0x80004005
call fcn.00403c50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], esi
cmp ebp, esi
je 0x418556
add edi, 0x76
mov dword [esp + 0x14], edi
jmp 0x4181f4
mov ebp, dword [esp + 0x20]
cmp ebp, 0xf8
jne 0x4182b5
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx - 4]
mov edx, edi
sar edx, 0x10
movzx eax, dx
cwde
push eax
movsx ecx, di
push ecx
lea edx, [esp + 0x18]
push str.X___d__Y___d
push edx
call fcn.00403920
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp dword [edx - 4], 1
jle 0x418242
mov eax, dword [edx - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00403ad0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x8c]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x120]
cmp eax, esi
je 0x418271
lea ebx, [ebx]
mov ecx, dword [eax]
cmp dword [ecx], 0xffff0000
je 0x418271
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x418260
push 0xffff0002
push 0xffff0000
push esi
push esi
push esi
push esi
push esi
push edx
push 1
mov ecx, ebx
call fcn.0044f95e
mov ebp, eax
cmp ebp, esi
je 0x418407
push 0x24
call fcn.00540440
add esp, 4
cmp eax, esi
je 0x418407
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 3
jmp 0x4183d2
mov eax, ebp
lea ecx, [esp + 0x2c]
call fcn.00437970
mov byte [esp + 0x38], 1
mov ecx, dword [eax]
mov ebp, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add ebp, 0xfffffff0
cmp eax, ebp
je 0x418323
cmp dword [ebp + 0xc], esi
lea edi, [ebp + 0xc]
jl 0x418315
mov edx, dword [eax]
cmp edx, dword [ebp]
jne 0x418315
push eax
call fcn.0040a200
mov dword [esp + 0x2c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x418308
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [esp + 0x10], ecx
jmp 0x418323
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004060d0
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418348
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x10]
setne byte [esp + 0x44]
cmp dword [eax - 4], 1
jle 0x418368
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403ad0
movzx edi, byte [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [edx + edi*4 + 0x80]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x120]
cmp eax, esi
je 0x418397
mov ecx, dword [eax]
cmp dword [ecx], 0xffff0000
je 0x418397
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x418386
mov ecx, dword [esp + 0x10]
push 0xffff0002
push 0xffff0000
push esi
push esi
push esi
push esi
push esi
push ecx
push 1
mov ecx, ebx
call fcn.0044f95e
mov ebp, eax
cmp ebp, esi
je 0x418407
push 0x24
call fcn.00540440
add esp, 4
cmp eax, esi
je 0x418407
mov edx, dword [esp + 0x20]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edi
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
mov dword [eax], ebp
mov dword [eax + 4], ecx
push eax
lea esi, [ebx + 0x110]
mov dword [eax + 0x18], 1
call fcn.00421e10
mov edx, dword [ebx + 0x20]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
xor esi, esi
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ax, word [ecx]
je 0x418521
mov edi, dword [esp + 0x1c]
cmp edi, esi
jbe 0x418521
mov eax, dword [0x5e1814]
cmp dword [eax - 0xc], esi
jne 0x418441
push edi
lea ecx, [esp + 0x14]
push str._d_ms
push ecx
call fcn.00403920
add esp, 0xc
jmp 0x41846e
cmp dword [eax - 4], 1
jle 0x41845a
mov edx, dword [eax - 0xc]
push edx
mov ecx, 0x5e1814
call fcn.00403ad0
mov eax, dword [0x5e1814]
push eax
push edi
lea eax, [esp + 0x18]
push str._d__s
push eax
call fcn.00403920
add esp, 0x10
mov edx, dword [esp + 0x10]
cmp dword [edx - 4], 1
jle 0x418489
mov ecx, dword [edx - 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403ad0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
mov edi, dword [eax + 0x88]
mov eax, dword [ebx + 0x120]
cmp eax, esi
je 0x4184b1
lea ecx, [ecx]
mov ecx, dword [eax]
cmp dword [ecx], 0xffff0000
je 0x4184b1
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x4184a0
push 0xffff0002
push 0xffff0000
push esi
push esi
push esi
push esi
push esi
push edx
push 1
mov ecx, ebx
call fcn.0044f95e
mov ebp, eax
cmp ebp, esi
je 0x41851d
push 0x24
call fcn.00540440
add esp, 4
cmp eax, esi
je 0x41851d
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
push eax
lea esi, [ebx + 0x110]
mov dword [eax], ebp
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 2
mov dword [eax + 4], edi
mov dword [eax + 0x18], 1
call fcn.00421e10
mov edx, dword [ebx + 0x20]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
xor esi, esi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
add ecx, 0xc
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
jge 0x418556
mov eax, dword [ecx - 8]
movzx edx, word [ecx - 0xa]
mov dword [esp + 0x1c], eax
movzx eax, word [ecx - 0xc]
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], eax
cmp eax, esi
jne 0x4181f0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41857e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret 8