Function at 0x417730
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4787bf
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor edi, edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], edi
call fcn.00402eb0
mov dword [esp + 0xa0], edi
lea ecx, [esp + 0x14]
call fcn.00402eb0
mov byte [esp + 0xa0], 1
lea ecx, [esp + 0x28]
call fcn.00402eb0
mov byte [esp + 0xa0], 2
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x6c]
cmp eax, edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x20], edi
jge 0x4177bd
neg eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x417e82
cmp dword [ebx + 0xe8], edi
je 0x4177fa
mov eax, dword [ebx + 0xec]
cmp eax, edi
je 0x41781f
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x58]
push ecx
push edx
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x41781f
call fcn.00416d50
cmp eax, edi
mov dword [esp + 0x84], eax
je 0x417e82
lea ecx, [esp + 0x58]
push ecx
push edi
mov ecx, eax
mov dword [esp + 0x38], eax
call fcn.00441f25
lea esi, [esp + 0x48]
mov eax, ebx
call fcn.00416dc0
test eax, eax
je 0x417e82
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
mov esi, dword [esp + 0x30]
cmp esi, edi
mov dword [esp + 0x1c], eax
je 0x417d4c
push esi
lea ecx, [esp + 0x74]
call fcn.0043b41f
mov byte [esp + 0xa0], 3
mov edx, dword [esi + 0x20]
push edi
push edi
push 0x31
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.0043b645
push eax
lea ecx, [esp + 0x74]
call fcn.0043b774
cmp dword [ebx + 0xe8], edi
mov dword [esp + 0x88], eax
jne 0x4178da
cmp dword [ebx + 0x5c], edi
jne 0x4178c9
mov eax, dword [ebx + 0x58]
cmp eax, edi
je 0x4178c9
mov ecx, dword [esp + 0x60]
jle 0x4178b0
sub ecx, eax
sub ecx, dword [esp + 0x58]
add ecx, 3
mov edi, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edi
jmp 0x4178e8
mov edx, dword [esp + 0x58]
sub eax, edx
add eax, ecx
sub ecx, edx
sub ecx, 3
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
mov edi, ecx
jmp 0x4178e8
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov dword [esp + 0x1c], edi
sub eax, 3
jmp 0x4178e2
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov edi, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x417d07
cmp dword [esp + 0x2c], 0
je 0x417a43
mov esi, dword [ebx + 0x70]
mov eax, dword [ebx + 0x98]
push 0
sub eax, esi
cdq
push 0x64
push edx
push eax
call fcn.00456390
mov ecx, eax
mov eax, edx
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x74]
sub eax, esi
cdq
push edx
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
call fcn.0045be70
push eax
lea edx, [esp + 0x18]
push str._d__
push edx
call fcn.00403140
add esp, 0xc
cmp dword [ebx + 0x6c], 0
jle 0x4179b9
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x18]
mov ebx, 0x48575c
call fcn.00419410
add esp, 4
mov bl, 4
mov byte [esp + 0xa0], bl
push 0x4859dc
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00419340
add esp, 0xc
mov byte [esp + 0xa0], 5
push eax
lea ecx, [esp + 0x18]
call fcn.0040ad10
mov byte [esp + 0xa0], bl
lea ecx, [esp + 0x34]
call fcn.00406bc0
mov byte [esp + 0xa0], 3
lea ecx, [esp + 0x68]
call fcn.00406bc0
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
mov ebx, 0x485760
call fcn.00419410
add esp, 4
mov byte [esp + 0xa0], 6
push eax
lea ecx, [esp + 0x18]
call fcn.0040ad10
mov byte [esp + 0xa0], 3
lea ecx, [esp + 0x34]
call fcn.00406bc0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x78]
call fcn.00419aa0
cmp dword [esp + 0x2c], 2
mov edx, dword [eax]
mov dword [esp + 0x34], edx
jl 0x417a40
mov edi, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
call fcn.00418140
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x78]
call fcn.00419aa0
mov eax, dword [eax]
mov ebx, edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x44], eax
jmp 0x417a43
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x60]
push eax
lea ecx, [esp + 0x14]
call fcn.0040ad10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x78]
call fcn.00419aa0
push 0x485760
lea ecx, [esp + 0x6c]
call fcn.00409430
mov byte [esp + 0xa0], 7
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x78]
call fcn.00419aa0
mov esi, dword [eax]
add esi, esi
mov dword [esp + 0x40], esi
mov byte [esp + 0xa0], 3
lea ecx, [esp + 0x68]
call fcn.00406bc0
mov eax, dword [esp + 0x2c]
cmp eax, 3
ja case.default.0x417ab5
jmp dword [eax*4 + 0x417ed4]
push esi
push edi
lea edx, [esp + 0x78]
push edx
jmp 0x417b78
mov eax, dword [esp + 0x34]
lea ecx, [esi + eax]
push ecx
push edi
lea edx, [esp + 0x78]
push edx
jmp 0x417b78
mov eax, dword [esp + 0x44]
lea ecx, [esi + eax]
push ecx
push edi
lea edx, [esp + 0x78]
push edx
jmp 0x417b78
mov eax, dword [esp + 0x44]
lea ecx, [esi + eax]
push ecx
push edi
lea edx, [esp + 0x78]
push edx
push ebx
lea edi, [esp + 0x20]
call fcn.00417ef0
test eax, eax
je 0x417b67
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx - 0xc]
je 0x417b67
lea eax, [ebx + 0x60]
push eax
mov ecx, edi
call fcn.0040ad10
push 0x485764
lea esi, [esp + 0x18]
call fcn.00419030
mov edx, esi
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x78]
call fcn.00419aa0
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
add ecx, eax
push ecx
push edx
lea eax, [esp + 0x78]
push eax
push ebx
call fcn.00417ef0
mov esi, dword [esp + 0x40]
mov dword [esp + 0x20], 4
jmp 0x417b82
mov dword [esp + 0x20], 8
jmp 0x417b82
push esi
push edi
lea ecx, [esp + 0x78]
push ecx
push ebx
lea edi, [esp + 0x20]
call fcn.00417ef0
cmp dword [ebx + 0xe8], 0
jne 0x417c26
test eax, eax
jl 0x417bd7
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], 4
jg 0x417bd0
push 3
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
call fcn.004191e0
mov byte [esp + 0xa0], 8
push 0x485764
mov esi, eax
mov dword [esp + 0x40], 1
call fcn.004194e0
add esp, 4
test al, al
jne 0x417bd7
mov byte [esp + 0x1b], 0
jmp 0x417bdc
mov byte [esp + 0x1b], 1
mov dword [esp + 0xa0], 3
test byte [esp + 0x3c], 1
je 0x417bfc
and dword [esp + 0x3c], 0xfffffffe
lea ecx, [esp + 0x34]
call fcn.00406bc0
cmp byte [esp + 0x1b], 0
je 0x417c08
or dword [esp + 0x20], 1
push 0x483884
lea esi, [esp + 0x14]
call fcn.004194e0
mov esi, dword [esp + 0x44]
add esp, 4
test al, al
je 0x417c26
or dword [esp + 0x20], 2
mov eax, dword [esp + 0x2c]
sub eax, 1
je 0x417c4e
sub eax, 1
je 0x417c47
sub eax, 1
jne 0x417c5c
test byte [esp + 0x20], 4
jne 0x417c4e
lea edx, [esp + 0x28]
push edx
jmp 0x417c53
lea eax, [esp + 0x28]
push eax
jmp 0x417c53
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00419010
lea edi, [esp + 0x10]
call fcn.00419140
cmp dword [ebx + 0xe8], 0
jne 0x417d07
cmp dword [ebx + 0x5c], 0
jne 0x417d07
mov edx, edi
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x78]
call fcn.00419aa0
mov eax, dword [eax]
add esi, eax
cmp esi, dword [esp + 0x1c]
jle 0x417cab
cmp dword [ebx + 0x58], 0
jle 0x417cb2
test eax, eax
jle 0x417cab
test byte [esp + 0x20], 2
jne 0x417cb2
test byte [esp + 0x20], 1
je 0x417cbe
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x417cbe
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
mov eax, ecx
sub eax, edx
cmp dword [esp + 0x1c], eax
jle 0x417cd4
mov dword [esp + 0x1c], eax
mov eax, 2
cmp dword [esp + 0x1c], eax
jge 0x417ce3
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], eax
push 0x483884
lea esi, [esp + 0x14]
call fcn.004194e0
add esp, 4
test al, al
je 0x417d28
push 0x485768
mov ecx, esi
call fcn.004095f0
mov ecx, dword [esp + 0x88]
push ecx
lea ecx, [esp + 0x74]
call fcn.0043b774
mov byte [esp + 0xa0], 2
lea ecx, [esp + 0x70]
call fcn.0043b473
xor edi, edi
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x417dd0
lea eax, [esp + 0x48]
push eax
lea esi, [ebx + 0xb0]
push esi
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x417db6
mov edx, dword [esp + 0x50]
mov ecx, edx
sub ecx, dword [esp + 0x48]
cmp ecx, 2
jle 0x417db6
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
mov edi, eax
sub edi, ecx
cmp edi, 2
jle 0x417db4
mov edi, dword [esp + 0x48]
mov dword [esi], edi
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
push ebx
lea eax, [esp + 0x4c]
call fcn.004093d0
mov edx, dword [ebx + 0x20]
push 1
xor edi, edi
push edi
push edx
jmp 0x417dca
xor edi, edi
xor eax, eax
mov esi, ebx
call fcn.004185f0
test eax, eax
je 0x417dd0
mov eax, dword [ebx + 0x20]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [esp + 0x30], edi
je 0x417e2f
lea esi, [ebx + 0x64]
push esi
lea eax, [esp + 0x14]
call fcn.00419570
add esp, 4
test al, al
je 0x417e2f
cmp dword [ebx + 0xe8], edi
jne 0x417e0d
mov ecx, dword [esp + 0x10]
push 1
push ecx
mov ecx, dword [esp + 0x8c]
push edi
call fcn.00441f6c
lea edx, [esp + 0x10]
push edx
jmp 0x417e28
mov ebx, dword [ebx + 0xec]
cmp ebx, edi
je 0x417e2f
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.0043a1fb
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0040ad10
mov byte [esp + 0xa0], 1
lea ecx, [esp + 0x28]
call fcn.00406bc0
mov byte [esp + 0xa0], 0
lea ecx, [esp + 0x14]
call fcn.00406bc0
mov dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00406bc0
mov eax, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0xa0], 1
lea ecx, [esp + 0x28]
call fcn.00406bc0
mov byte [esp + 0xa0], 0
lea ecx, [esp + 0x14]
call fcn.00406bc0
mov dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00406bc0
xor eax, eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4