Function at 0x46d6e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x57fd38
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x368], 0
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov dword [esi + 0x358], ebp
mov dword [esi + 0x354], edi
je 0x46d96b
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x36c]
mov eax, dword [edx - 0xc]
lea ecx, [esi + 0x36c]
add eax, 0xffffffff
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00425040
mov dword [esp + 0x38], 0
call fcn.00512f10
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46d778
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
mov byte [esp + 0x38], 1
call fcn.00512f10
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46d7a7
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
test edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
mov byte [esp + 0x38], 2
jne 0x46d7e8
mov ecx, dword [esi + 0x80]
mov edx, dword [esp + 0x28]
add ecx, ecx
sub edx, ecx
sub edx, dword [esp + 0x20]
lea eax, [esp + 0x40]
sub edx, 1
push edx
push str._width_d
push eax
jmp 0x46d810
mov eax, dword [esi + 0xa0]
test eax, eax
jge 0x46d7ff
push edi
push str._width_d__
lea ecx, [esp + 0x48]
push ecx
jmp 0x46d810
push 0x64
push edi
push eax
call ebx
push eax
push str._width_d
lea edx, [esp + 0x48]
push edx
call fcn.0041b070
add esp, 0xc
test ebp, ebp
jne 0x46d831
mov eax, dword [esi + 0x84]
mov ecx, dword [esp + 0x2c]
add eax, eax
sub ecx, eax
sub ecx, dword [esp + 0x24]
push ecx
jmp 0x46d854
cmp dword [esi + 0xa0], 0
jge 0x46d847
push ebp
push str._height_d__
lea eax, [esp + 0x4c]
push eax
jmp 0x46d85e
mov ecx, dword [esi + 0xa4]
push 0x64
push ebp
push ecx
call ebx
push eax
push str._height_d
lea edx, [esp + 0x4c]
push edx
call fcn.0041b070
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00409080
push 0x59c1b0
push eax
lea eax, [esp + 0x2c]
mov bl, 3
push eax
mov byte [esp + 0x50], bl
call fcn.004026d0
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 4
call fcn.004086f0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d8cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d8f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
push edi
mov ecx, esi
call fcn.0046d520
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d922
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d947
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d96b
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
pop ebx
add esp, 0x28
ret 8