Function at 0x54d100
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x693b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebp, dword [0x8189b8]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], ebp
jne 0x54d148
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.004031c0
jmp 0x54d656
xor edi, edi
mov esi, 0x815b84
mov eax, dword [esi]
cmp eax, ebx
jne 0x54d15a
mov eax, 0x6a3560
push eax
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
je 0x54d1a7
add esi, 0x10
inc edi
cmp esi, 0x815c14
jl 0x54d14f
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x2c], 0xffffffff
cmp ecx, ebx
je 0x54d656
mov al, byte [ecx - 1]
cmp al, bl
je 0x54d64c
cmp al, 0xff
je 0x54d64c
dec al
mov byte [ecx - 1], al
jmp 0x54d656
cmp edi, 8
ja case.default.0x54d1b0
jmp dword [edi*4 + 0x54d66c]
mov ecx, dword [0x818794]
mov eax, dword [ecx + 0x4f0]
cmp eax, 1
je 0x54d1d1
cmp eax, 2
jne 0x54d5f8
mov ecx, dword [ecx + 0x454]
push ecx
mov ecx, ebp
call fcn.005c84f0
jmp 0x54d5f8
mov ecx, ebp
call fcn.005c8590
jmp 0x54d5f8
mov edx, dword [0x818794]
cmp dword [edx + 0x4f0], 1
jne 0x54d5f8
mov al, byte [esp + 0x48]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.004031c0
mov esi, dword [esp + 0x48]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403350
test al, al
je 0x54d255
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00403330
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x30], 1
call fcn.005c8520
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.004031c0
jmp 0x54d5f8
mov ecx, dword [0x818794]
cmp dword [ecx + 0x4f0], 1
jne 0x54d5f8
mov dl, byte [esp + 0x48]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.004031c0
mov esi, dword [esp + 0x48]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403350
test al, al
je 0x54d2e1
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00403330
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
push ecx
mov ecx, dword [esp + 0x14]
call fcn.005c85b0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.004031c0
jmp 0x54d5f8
mov edx, dword [0x818794]
cmp dword [edx + 0x4f0], 0x64
jne 0x54d5f8
cmp dword [esp + 0x3c], 7
jb 0x54d5f8
mov eax, dword [0x6a3564]
lea ecx, [esp + 0x14]
push eax
push 6
push ecx
lea ecx, [esp + 0x40]
call fcn.00408170
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push 0xd
mov byte [esp + 0x34], 3
call fcn.005c7730
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.004031c0
jmp 0x54d5f8
mov ecx, ebp
call fcn.005e4bb0
jmp 0x54d5f8
mov ecx, ebp
call fcn.005e4c40
jmp 0x54d5f8
cmp dword [esp + 0x3c], 7
jb 0x54d5f8
mov eax, dword [0x6a3564]
lea ecx, [esp + 0x14]
push eax
push 6
push ecx
lea ecx, [esp + 0x40]
call fcn.00408170
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push 6
mov byte [esp + 0x34], 4
call fcn.005c7730
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.004031c0
jmp 0x54d5f8
mov edx, dword [0x818794]
mov eax, dword [edx + 0x7ec]
cmp eax, 1
je 0x54d57a
cmp eax, 2
je 0x54d57a
cmp dword [edx + 0x4f0], 1
je 0x54d49e
mov al, byte [esp + 0x48]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.004031c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 6
push ecx
push 0x2ace
call fcn.00615080
add esp, 8
lea edx, [esp + 0x14]
mov ecx, ebp
push 0xffffff00
push edx
call fcn.005d7250
mov eax, dword [esp + 0x18]
mov byte [esp + 0x2c], bl
cmp eax, ebx
je 0x54d451
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x54d448
cmp al, 0xff
je 0x54d448
dec al
mov byte [ecx], al
jmp 0x54d451
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
cmp ecx, ebx
mov dword [esp + 0x2c], 0xffffffff
je 0x54d637
mov al, byte [ecx - 1]
cmp al, bl
je 0x54d62d
cmp al, 0xff
je 0x54d62d
dec al
mov byte [ecx - 1], al
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov esi, dword [esp + 0x48]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x54d540
mov esi, dword [0x818790]
cmp esi, ebx
je 0x54d5f8
mov eax, dword [edx + 0x454]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x44]
push ecx
push edx
lea ecx, [esi + 0x38]
mov dword [esp + 0x50], eax
call fcn.0046d620
mov esi, dword [esi + 0x3c]
mov eax, dword [esp + 0x44]
cmp eax, esi
je 0x54d5f8
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0x2fc], 5
je 0x54d5f8
cmp ecx, ebx
je 0x54d5f8
call fcn.0051bed0
mov dl, byte [eax]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x58], esp
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov edx, dword [0x6a3564]
push edx
push ebx
push eax
call fcn.00402fc0
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x3c], bl
call fcn.005e9cd0
jmp 0x54d5f8
sub esp, 0x10
mov edi, esi
mov dword [esp + 0x58], esp
mov al, byte [esp + 0x58]
mov edx, esp
or ecx, 0xffffffff
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
mov ecx, edx
call fcn.004083a0
mov ecx, ebp
mov byte [esp + 0x3c], bl
call fcn.005e9cd0
jmp 0x54d5f8
mov cl, byte [esp + 0x48]
push ebx
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
call fcn.004031c0
lea edx, [esp + 0x14]
mov byte [esp + 0x2c], 5
push edx
push 0x2acf
call fcn.00615080
mov ecx, dword [0x8189b8]
add esp, 8
lea eax, [esp + 0x14]
push 0xffffff00
push eax
call fcn.005d7250
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.004031c0
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.004031c0
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp edi, 0xffffffff
je 0x54d176
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x2c], 0xffffffff
cmp ecx, ebx
je 0x54d637
mov al, byte [ecx - 1]
cmp al, bl
je 0x54d62d
cmp al, 0xff
je 0x54d62d
dec al
mov byte [ecx - 1], al
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.006713a0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret