Function at 0x46d760
Capabilities:
Get number of processors
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56a870
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46de9b
cmp dword [ebx + 0x1a0], 0
je 0x46de9b
cmp dword [ebx + 0x1a4], 0
je 0x46de9b
mov eax, dword [ebx + 0x1a0]
test eax, eax
jne 0x46d7db
push 0x80004003
call fcn.0053c010
mov ecx, dword [eax]
mov edx, dword [ecx + 0xfc]
push eax
call edx
mov eax, dword [ebx + 0x1a0]
test eax, eax
jne 0x46d7fa
push 0x80004003
call fcn.0053c010
mov ecx, dword [eax]
mov edx, dword [ecx + 0x128]
push eax
call edx
mov eax, dword [ebx + 0x1a0]
test eax, eax
jne 0x46d819
push 0x80004003
call fcn.0053c010
mov ecx, dword [eax]
mov edx, dword [ecx + 0x164]
push eax
call edx
lea esi, [ebx + 0x1cc]
call fcn.0046e7d0
mov eax, dword [ebx + 0x1a4]
test eax, eax
jne 0x46d843
push 0x80004003
call fcn.0053c010
lea ecx, [esp + 0x2c]
call fcn.0046f9a0
mov dword [esp + 0x98], 0
mov eax, dword [eax]
test eax, eax
je 0x46d861
mov eax, dword [eax]
jmp 0x46d863
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.00423950
lea edi, [esp + 0x2c]
mov byte [esp + 0x98], 2
call fcn.00421130
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jle 0x46d8a8
push 0x40
push eax
call fcn.00540d10
add esp, 8
test eax, eax
je 0x46d8a8
mov ecx, dword [esp + 0x20]
sub eax, ecx
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x46d8cd
mov esi, dword [esp + 0x30]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x46de92
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x46de92
mov eax, dword [ecx - 0xc]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
sub eax, esi
push edx
call fcn.0046f7b0
lea eax, [esp + 0x2c]
push eax
mov eax, esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 4
call fcn.00420540
mov byte [esp + 0x98], 5
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
je 0x46de64
mov edx, dword [esp + 0x2c]
cmp dword [edx - 0xc], 0
je 0x46de64
push 0x2a
lea esi, [esp + 0x20]
call fcn.00421960
mov edi, esi
call fcn.00423a00
push ecx
lea eax, [ebx + 0x1a0]
mov ecx, esp
mov edi, 0xfff0
mov dword [esp + 0x38], esp
call fcn.00472530
lea eax, [esp + 0x48]
push eax
call fcn.0046f720
lea esi, [ebx + 0x1b4]
mov byte [esp + 0x98], 7
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x24], 0
je 0x46dca2
lea edi, [esp + 0x14]
call fcn.0046e2d0
mov edi, dword [esp + 0x24]
mov byte [esp + 0x98], 8
call fcn.00410690
cmp dword [eax + 0x18], 8
jb 0x46d9aa
mov eax, dword [eax + 4]
jmp 0x46d9ad
add eax, 4
mov edx, eax
lea eax, [esp + 0x14]
call fcn.0040e610
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov ecx, esi
mov eax, edi
call fcn.0046ee00
test eax, eax
setne al
test al, al
jne 0x46d9e8
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 7
call fcn.00423d60
jmp 0x46dc4d
mov esi, dword [esi - 0xc]
mov eax, dword [edi - 0xc]
inc esi
cmp esi, eax
jne 0x46da21
push 0x2a
lea esi, [esp + 0x18]
call fcn.00421960
lea eax, [esp + 0x1c]
mov edx, esi
call fcn.0040e800
test al, al
je 0x46da21
mov ecx, esi
mov byte [esp + 0x98], 7
call fcn.00423d60
jmp 0x46dc4d
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
mov esi, 0x58cc78
call fcn.00421fe0
add esp, 8
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x24]
add esi, 0x1b4
mov byte [esp + 0x98], 9
call fcn.00410690
cmp dword [eax + 0x18], 8
jb 0x46da5f
mov eax, dword [eax + 4]
jmp 0x46da62
add eax, 4
lea ecx, [esp + 0x28]
push ebx
push ecx
mov esi, eax
call fcn.00421fe0
add esp, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x98], 0xb
call fcn.00423d60
mov edx, dword [esp + 0x28]
cmp dword [edx - 0xc], 0x3c
jg 0x46dc30
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x1dc]
sub ecx, dword [ebx + 0x1d8]
mov eax, dword [ebp + 8]
add ebx, 0x1cc
sar ecx, 3
cmp dword [eax + 0x1b0], ecx
jle 0x46dc85
push ecx
add eax, 0x19c
mov esi, esp
mov edi, 0x7d0
mov dword [esp + 0x3c], esp
call fcn.00489c20
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.00491e10
add esp, 4
mov byte [esp + 0x98], 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46dc1c
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], esp
test eax, eax
je 0x46db09
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x28]
add esi, 0x1b4
call fcn.00410690
cmp dword [eax + 0x18], 8
jb 0x46db26
mov eax, dword [eax + 4]
jmp 0x46db29
add eax, 4
lea esi, [esp + 0x50]
call fcn.0046eec0
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
mov edi, eax
mov byte [esp + 0x9c], 0xd
call fcn.0046eef0
lea edx, [esp + 0x3c]
push edx
mov edi, ebx
mov byte [esp + 0x9c], 0xe
call fcn.0046e750
lea esi, [esp + 0x3c]
call fcn.0046f240
mov byte [esp + 0x98], 0xc
mov eax, dword [esp + 0x50]
test eax, eax
je 0x46db7e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
push 0
push eax
push ecx
mov ecx, dword [esp + 0x24]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x24]
mov esi, 0x7d1
mov dword [esp + 0x44], esp
test eax, eax
je 0x46dba7
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
call fcn.0048bca0
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x46d7d1
mov ecx, dword [eax]
mov edx, dword [ecx + 0x5c]
push 0
push 0x10000000
push eax
call edx
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
test eax, 0xfffffff8
je 0x46dbfb
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x18]
sar eax, 3
test ecx, ecx
je 0x46d7d1
mov edx, dword [ecx]
dec eax
push eax
mov eax, dword [edx + 0xc0]
push ecx
call eax
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x18]
add eax, 0x1a0
call fcn.0046f8d0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf4]
push esi
push eax
call edx
mov eax, dword [esp + 0x18]
mov byte [esp + 0x98], 0xb
test eax, eax
je 0x46dc30
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x28]
call fcn.00423d60
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 7
call fcn.00423d60
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x1c4]
sub ecx, dword [ebx + 0x1c0]
mov edi, dword [esp + 0x24]
lea esi, [ebx + 0x1b4]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [esp + 0x24], edi
cmp edi, eax
jb 0x46d985
jmp 0x46dca2
lea ecx, [esp + 0x28]
call fcn.00423d60
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 7
call fcn.00423d60
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x1a0]
lea esi, [ebx + 0x1a0]
test eax, eax
jne 0x46dcbc
push 0x80004003
call fcn.0053c010
call fcn.0046f8f0
test eax, eax
jne 0x46dcf8
mov esi, dword [esp + 0x30]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x46dce1
mov edx, dword [esi]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x9c], 5
call fcn.0046f6b0
jmp 0x46de80
mov eax, dword [ebx + 0x1a4]
test eax, eax
jne 0x46dd0c
push 0x80004003
call fcn.0053c010
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov edi, dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x70]
push edx
call edi
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x6c]
push eax
mov eax, dword [esi]
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
mov dword [ecx], eax
test eax, eax
je 0x46dd4b
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx]
push eax
call fcn.0046d290
mov eax, dword [esi]
add esp, 0xc
test eax, eax
jne 0x46dd6a
push 0x80004003
call fcn.0053c010
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x80]
push edx
call edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
call fcn.0046c450
cmp byte [eax + 0xc], 0
je 0x46ddc7
mov eax, dword [eax]
cmp eax, 0x64
je 0x46ddc7
push 0x64
push eax
push 3
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x46ddcc
mov esi, 3
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
lea ecx, [esp + 0x5c]
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x80]
mov ecx, dword [ebx]
add eax, dword [esp + 0x60]
lea edx, [esi + esi]
sub edx, dword [esp + 0x7c]
add eax, esi
add edx, dword [esp + 0x84]
push ecx
add edx, dword [esp + 0x60]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], edx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x5c]
lea edi, [esp + 0x34]
call fcn.0046f680
push 0x14
push 0
push ebx
lea eax, [esp + 0x68]
call fcn.0046f650
mov edx, dword [ebx]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x46de50
mov eax, dword [ebx]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x9c], 5
call fcn.0046f6b0
jmp 0x46de80
mov esi, dword [esp + 0x30]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x46de80
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esp + 0x2c]
call fcn.00423d60
lea ecx, [esp + 0x1c]
call fcn.00423d60
lea ecx, [esp + 0x20]
call fcn.00423d60
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4