Function at 0x446a30
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549a36
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
call eax
test al, al
je 0x446a91
cmp dword [edi + 0x588], 0
jne 0x446a91
cmp dword [edi + 0x384], 0
jne 0x446a91
cmp dword [edi + 0x590], 0
jne 0x446a91
xor eax, eax
jmp 0x447623
xorps xmm0, xmm0
mov dword [ebp - 0x164], 0
movups xmmword [ebp - 0x184], xmm0
mov dword [ebp - 0x160], 0
movups xmmword [ebp - 0x174], xmm0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x184]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x20]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
cmp dword [edi + 0x384], 0
je 0x447028
mov ecx, dword [edi + 0x3a0]
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x446aff
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x446b05
push eax
call fcn.00484c60
mov ecx, dword [edi + 0x450]
lea eax, [ebp - 0x194]
push eax
call fcn.00436a30
cmp dword [edi + 0x570], 0
movups xmm0, xmmword [eax]
mov eax, dword [edi + 0x450]
movups xmmword [edi + 0x748], xmm0
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x154], ecx
mov dword [edi + 0x758], ecx
je 0x446dc7
cmp byte [edi + 0x475], 0
je 0x446dc7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push 0x100
mov esi, eax
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0051b450
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
push 0x100
lea eax, [ebp - 0x110]
push eax
push 2
push esi
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
je 0x447014
mov ecx, str.Default
lea eax, [ebp - 0x110]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x446bc4
test dl, dl
je 0x446bc0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x446bc4
add eax, 2
add ecx, 2
test dl, dl
jne 0x446ba4
xor eax, eax
jmp 0x446bc9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x447014
call fcn.004250d0
cmp eax, 2
je 0x447014
mov esi, dword [edi + 0x450]
xor edx, edx
mov ecx, dword [edi + 0x758]
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x114], 0xccfeffff
mov eax, dword [esi + 0x68]
push 4
movzx eax, word [eax + 0xe3cc]
imul eax, dword [edi + 0x75c]
div ecx
xor edx, edx
mov ecx, eax
shl eax, 8
shr ecx, 8
movzx ecx, cl
or ecx, eax
mov word [ebp - 0x118], cx
mov eax, dword [esi + 0x68]
movzx eax, word [eax + 0xe3ce]
imul eax, dword [edi + 0x75c]
div dword [ebp - 0x150]
xor edx, edx
mov ecx, eax
shl eax, 8
shr ecx, 8
movzx ecx, cl
or ecx, eax
mov eax, dword [edi + 0x47c]
mov word [ebp - 0x116], cx
mov ecx, dword [eax + 0x8c]
mov eax, ecx
sar eax, 8
movzx eax, al
shl ecx, 8
or eax, ecx
mov dword [ebp - 0x14c], 1
mov ecx, dword [edi + 0x578]
mov word [ebp - 0x11c], ax
mov eax, ecx
sar eax, 8
movzx eax, al
shl ecx, 8
or eax, ecx
mov dword [ebp - 0x130], 0x1000000
mov word [ebp - 0x11a], ax
xor eax, eax
mov dword [ebp - 0x12c], eax
mov eax, dword [esi + 0x68]
movzx eax, word [eax + 0xe3cc]
imul eax, dword [edi + 0x75c]
div dword [ebp - 0x150]
xor edx, edx
mov ecx, eax
shl eax, 8
shr ecx, 8
movzx ecx, cl
or ecx, eax
mov word [ebp - 0x128], cx
mov eax, dword [esi + 0x68]
movzx eax, word [eax + 0xe3ce]
imul eax, dword [edi + 0x75c]
mov dword [ebp - 0x124], 0
div dword [ebp - 0x150]
mov dword [ebp - 0x150], 0
mov ecx, eax
shl eax, 8
shr ecx, 8
movzx ecx, cl
or ecx, eax
mov eax, 0x100
mov word [ebp - 0x14e], ax
lea eax, [ebp - 0x150]
push eax
mov word [ebp - 0x126], cx
mov ecx, edi
push 0
call fcn.004469c0
mov ecx, dword [edi + 0x3a0]
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x446d49
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x446d58
push eax
push 0xc
lea eax, [ebp - 0x11c]
push eax
call fcn.00484ad0
mov ecx, dword [edi + 0x3a0]
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x446d6e
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x446d7d
push eax
push 4
lea eax, [ebp - 0x14c]
push eax
call fcn.00484ad0
mov ecx, dword [edi + 0x3a0]
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x446d93
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x446da2
push eax
push 0x10
lea eax, [ebp - 0x130]
push eax
call fcn.00484ad0
mov dword [edi + 0x570], 0
mov esi, 1
mov byte [edi + 0x475], 0
mov dword [edi + 0x384], 0
jmp 0x447532
cmp dword [edi + 0x56c], 0
je 0x447014
mov esi, dword [edi + 0x75c]
xor eax, eax
mov dword [ebp - 0x11c], eax
xor edx, edx
mov eax, dword [edi + 0x580]
imul eax, esi
push 4
mov dword [ebp - 0x114], 0x21ffffff
div ecx
xor edx, edx
mov ecx, eax
shl eax, 8
shr ecx, 8
movzx ecx, cl
or ecx, eax
mov eax, dword [edi + 0x584]
imul eax, esi
mov word [ebp - 0x118], cx
div dword [ebp - 0x154]
mov dword [ebp - 0x154], 0
mov ecx, eax
shl eax, 8
shr ecx, 8
movzx ecx, cl
or ecx, eax
mov eax, 0x100
mov word [ebp - 0x152], ax
lea eax, [ebp - 0x154]
push eax
mov word [ebp - 0x116], cx
mov ecx, edi
push 0
call fcn.004469c0
mov ecx, dword [edi + 0x3a0]
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x446e70
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x446e7f
push eax
push 0xc
lea eax, [ebp - 0x11c]
push eax
call fcn.00484ad0
cmp byte [edi + 0x474], 0
je 0x447014
mov ecx, dword [edi + 0x450]
mov ecx, dword [ecx + 0x68]
call fcn.004789e0
mov eax, dword [edi + 0x450]
lea ecx, [ebp - 0x148]
mov eax, dword [eax + 0x68]
mov dword [eax + 4], 0x63
mov eax, dword [edi + 0x450]
mov dword [eax + 0xc], 1
lea eax, [edi + 8]
push eax
call fcn.00425e40
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 1
push eax
mov eax, dword [edi + 0x450]
mov ecx, dword [eax + 0x68]
add ecx, 0x7d8
call fcn.0044a5e0
lea ecx, [ebp - 0x148]
movups xmm0, xmmword [eax]
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 0
movups xmmword [ebp - 0x194], xmm0
call fcn.0041c160
movups xmm1, xmmword [ebp - 0x194]
mov eax, dword [edi + 0x758]
xor edx, edx
mov dword [ebp - 0x150], eax
mov eax, dword [edi + 0x75c]
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd ecx, xmm0
mov dword [ebp - 0x114], 0xcdfeffff
push 4
imul eax, ecx
div dword [ebp - 0x150]
xor edx, edx
mov ecx, eax
shl eax, 8
shr ecx, 8
movzx ecx, cl
or ecx, eax
mov eax, dword [edi + 0x75c]
imul eax, esi
mov esi, dword [edi + 0x75c]
mov word [ebp - 0x11c], cx
div dword [ebp - 0x150]
xor edx, edx
mov ecx, eax
shl eax, 8
shr ecx, 8
movzx ecx, cl
or ecx, eax
mov eax, esi
mov word [ebp - 0x11a], cx
movd ecx, xmm1
psrldq xmm1, 4
imul eax, ecx
div dword [ebp - 0x150]
xor edx, edx
mov ecx, eax
shl eax, 8
shr ecx, 8
movzx ecx, cl
or ecx, eax
movd eax, xmm1
mov word [ebp - 0x118], cx
imul eax, esi
div dword [ebp - 0x150]
mov dword [ebp - 0x150], 0
mov ecx, eax
shl eax, 8
shr ecx, 8
movzx ecx, cl
or ecx, eax
mov eax, 0x100
mov word [ebp - 0x14e], ax
lea eax, [ebp - 0x150]
mov word [ebp - 0x116], cx
push eax
push 0
mov ecx, edi
call fcn.004469c0
mov ecx, dword [edi + 0x3a0]
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x447005
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x447014
push eax
push 0xc
lea eax, [ebp - 0x11c]
push eax
call fcn.00484ad0
mov dword [edi + 0x384], 0
mov esi, 1
jmp 0x447532
mov eax, dword [ebp - 0x174]
sub eax, dword [ebp - 0x178]
sar eax, 4
cmp dword [edi + 0x444], 0
mov dword [ebp - 0x14c], eax
je 0x447065
mov ecx, dword [ebp - 0x180]
sub ecx, dword [ebp - 0x184]
sar ecx, 4
cmp ecx, 5
jbe 0x44705d
inc eax
jmp 0x44705f
add eax, ecx
mov dword [ebp - 0x14c], eax
cmp eax, 0xffff
je 0x447105
mov esi, dword [ebp - 0x164]
cmp esi, dword [ebp - 0x160]
je 0x447105
cmp byte [edi + 0x40c], 0
jne 0x4470a2
cmp byte [edi + 0x404], 0
jne 0x4470a2
mov ecx, dword [edi + 0x3e0]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
jmp 0x4470d7
mov eax, dword [esi + 8]
lea edx, [ebp - 0x120]
mov ecx, dword [edi + 0x3e0]
mov dword [ebp - 0x118], eax
mov eax, dword [esi]
mov dword [ebp - 0x120], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x11c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x114], eax
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0xc]
call eax
mov ecx, eax
test ecx, ecx
je 0x4470fa
mov eax, dword [ebp - 0x14c]
add esi, 0x10
add eax, ecx
mov dword [ebp - 0x14c], eax
cmp esi, dword [ebp - 0x160]
jne 0x447082
jmp 0x447105
mov eax, 0xffff
mov dword [ebp - 0x14c], eax
cmp dword [edi + 0x444], 0
jne 0x4471ad
cmp eax, 0xffff
je 0x4471ad
mov esi, dword [ebp - 0x184]
cmp esi, dword [ebp - 0x180]
je 0x4471ad
nop
cmp byte [edi + 0x40c], 0
jne 0x447150
cmp byte [edi + 0x404], 0
jne 0x447150
mov ecx, dword [edi + 0x3e0]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
jmp 0x447185
mov eax, dword [esi + 8]
lea edx, [ebp - 0x120]
mov ecx, dword [edi + 0x3e0]
mov dword [ebp - 0x118], eax
mov eax, dword [esi]
mov dword [ebp - 0x120], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x11c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x114], eax
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0xc]
call eax
mov ecx, eax
test ecx, ecx
jne 0x447194
mov eax, 0xffff
jmp 0x44719c
mov eax, dword [ebp - 0x14c]
add eax, ecx
add esi, 0x10
mov dword [ebp - 0x14c], eax
cmp esi, dword [ebp - 0x180]
jne 0x447130
mov ecx, dword [edi + 0x3e0]
cmp dword [ecx + 0x78], 0
jne 0x4471c9
cmp dword [ecx + 0x7c], 0
jne 0x4471c9
mov dword [edi + 0x588], 0
cmp eax, 0xffff
je 0x4471fb
cmp dword [edi + 0x588], 0
je 0x4471e0
inc eax
mov dword [ebp - 0x14c], eax
cmp dword [edi + 0x590], 0
je 0x4471f0
inc eax
mov dword [ebp - 0x14c], eax
test eax, eax
jne 0x4471fb
xor esi, esi
jmp 0x447532
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x28]
call eax
push eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 0x64
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14c]
mov ecx, eax
sar ecx, 8
shl eax, 8
movzx ecx, cl
or ecx, eax
mov dword [ebp - 0x158], 0
mov word [ebp - 0x156], cx
mov ecx, dword [edi + 0x3a0]
mov byte [ebp - 0x158], 0
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x447264
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x447507
push eax
push 0
push 4
lea eax, [ebp - 0x158]
push eax
call fcn.00484a10
test eax, eax
je 0x447507
cmp dword [edi + 0x588], 0
je 0x44731f
mov dword [edi + 0x588], 0
mov eax, dword [edi + 0x450]
mov ecx, dword [edi + 0x3e0]
push dword [eax + 0x68]
push dword [edi + 0x3a0]
call fcn.00458fe0
test eax, eax
jne 0x447315
mov edx, dword [edi + 0x3a0]
mov ecx, 0x11ffffff
mov dword [edi + 0x58c], eax
mov esi, 0x10ffffff
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov eax, dword [edi + 0x3e0]
cmp dword [eax + 0x78], 0
mov eax, dword [edx + 8]
cmovne ecx, esi
mov dword [ebp - 0x124], ecx
cmp eax, 0xffffffff
jne 0x4472fb
mov eax, dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x447524
push eax
push 0xc
lea eax, [ebp - 0x12c]
mov ecx, edx
push eax
call fcn.00484bb0
test eax, eax
jne 0x44731f
jmp 0x447524
mov dword [edi + 0x58c], 1
cmp dword [edi + 0x590], 0
je 0x4473ad
mov ecx, dword [edi + 0x598]
mov eax, ecx
sar eax, 8
movzx eax, al
shl ecx, 8
or eax, ecx
mov dword [edi + 0x590], 0
mov ecx, dword [edi + 0x59c]
mov word [ebp - 0x12c], ax
mov eax, ecx
sar eax, 8
movzx eax, al
shl ecx, 8
or eax, ecx
mov dword [ebp - 0x124], 0x18ffffff
mov ecx, dword [edi + 0x3a0]
mov word [ebp - 0x12a], ax
xor eax, eax
mov dword [ebp - 0x128], eax
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x447396
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x447524
push eax
push 0xc
lea eax, [ebp - 0x12c]
push eax
call fcn.00484bb0
test eax, eax
je 0x447524
mov esi, dword [ebp - 0x178]
cmp esi, dword [ebp - 0x174]
je 0x44741a
mov ecx, dword [ebp - 0x16c]
mov edx, dword [ebp - 0x168]
neg ecx
neg edx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], edx
mov eax, dword [esi]
add eax, ecx
mov ecx, edi
mov dword [ebp - 0x128], eax
mov eax, dword [esi + 4]
add eax, edx
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x128]
push eax
push esi
call fcn.00447b60
test eax, eax
je 0x447524
mov ecx, dword [ebp - 0x154]
add esi, 0x10
mov edx, dword [ebp - 0x150]
cmp esi, dword [ebp - 0x174]
jne 0x4473d7
cmp dword [edi + 0x444], 0
mov ecx, edi
je 0x44745c
mov eax, dword [ebp - 0x180]
sub eax, dword [ebp - 0x184]
sar eax, 4
cmp eax, 5
lea eax, [ebp - 0x184]
push eax
jbe 0x44744e
call fcn.00448050
test eax, eax
jne 0x447470
jmp 0x447524
call fcn.00447ec0
test eax, eax
jne 0x447470
jmp 0x447524
lea eax, [ebp - 0x184]
push eax
call fcn.00447670
test eax, eax
je 0x447524
lea eax, [ebp - 0x164]
mov ecx, edi
push eax
call fcn.00447670
test eax, eax
je 0x447524
cmp dword [ebp - 0x14c], 0xffff
jne 0x4474e4
mov ecx, dword [edi + 0x3e0]
push dword [edi + 0x3a0]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [edi + 0x3a0]
xor eax, eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], 0x20ffffff
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x4474d1
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x447524
push eax
push 0xc
lea eax, [ebp - 0x12c]
push eax
call fcn.00484bb0
test eax, eax
je 0x447524
mov ecx, dword [edi + 0x3a0]
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x4474fa
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x447500
push eax
call fcn.00484c60
mov esi, 1
jmp 0x447526
push str.vncClient::SendRFBMsgQueue_:_failed_to_send_RFB_message_to_client_n
push 0
push 0x5b0d48
call fcn.0041cc90
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
push 0
call dword [eax + 8]
xor esi, esi
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x164]
test edx, edx
je 0x44758d
mov ecx, dword [ebp - 0x15c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x447565
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447640
push ecx
push edx
call fcn.0051949c
add esp, 8
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov edx, dword [ebp - 0x178]
test edx, edx
je 0x4475e8
mov ecx, dword [ebp - 0x170]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x4475c0
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447640
push ecx
push edx
call fcn.0051949c
add esp, 8
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 0
mov edx, dword [ebp - 0x184]
test edx, edx
je 0x447621
mov ecx, dword [ebp - 0x17c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x447617
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447640
push ecx
push edx
call fcn.0051949c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret 4
call fcn.0051d748
int3