Function at 0x10004a40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10014838
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x1001c048]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001c048]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
mov esi, ecx
xor ebx, ebx
mov edi, edx
mov dword [esp + 0x30], edi
cmp esi, ebx
je 0x10004d3d
cmp edi, ebx
je 0x10004d3d
push esi
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
cmp eax, 0x64
jge 0x10004aa8
mov eax, 0x3e8
xor ecx, ecx
shld ecx, eax, 1
mov dword [esp + 0x28], eax
add eax, eax
mov dword [esp + 0x24], ebx
cmp ecx, ebx
ja 0x10004ac1
cmp eax, 0xffffffff
jbe 0x10004ac5
xor eax, eax
jmp 0x10004acc
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [esp + 0x2c], eax
cmp eax, ebx
je 0x10004ad9
xor ecx, ecx
mov word [eax], cx
mov dword [esp + 0x84], ebx
cmp eax, ebx
jne 0x10004af5
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x8007000e
jmp 0x10004d42
mov dl, byte [0x1001ce30]
mov dword [ebp], esi
mov byte [esp + 0x1f], dl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
cmp word [esi], bx
je 0x10004c5c
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
cmp byte [esp + 0x1f], 1
jne 0x10004c17
cmp dword [esp + 0x20], 0
jne 0x10004b86
mov eax, dword [ebp]
push str.HKCR
push eax
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
test eax, eax
je 0x10004b86
mov ecx, dword [ebp]
cmp eax, ecx
jne 0x10004b86
push ecx
call ebx
push eax
mov dword [ebp], eax
call ebx
push eax
mov dword [ebp], eax
call ebx
push eax
mov dword [ebp], eax
call ebx
mov dword [ebp], eax
lea eax, [esp + 0x24]
push eax
mov ecx, str.HKCU_r_n_tSoftware_r_n_t_r_n_t_tClasses
call fcn.10004860
test eax, eax
je 0x10004cf2
mov byte [esp + 0x17], 1
mov ecx, dword [ebp]
mov edx, 0x27
cmp dx, word [ecx]
jne 0x10004bd3
cmp byte [esp + 0x16], 0
jne 0x10004ba1
mov byte [esp + 0x16], 1
jmp 0x10004c17
mov eax, ebp
call fcn.10005950
test eax, eax
je 0x10004bb3
mov byte [esp + 0x16], 0
jmp 0x10004bda
mov eax, dword [ebp]
push eax
call ebx
push eax
mov edi, 1
lea esi, [esp + 0x28]
mov dword [ebp], eax
call fcn.100049a0
test eax, eax
je 0x10004cf2
cmp byte [esp + 0x16], 0
jne 0x10004c17
mov ecx, dword [ebp]
movzx eax, word [ecx]
cmp eax, 0x7b
jne 0x10004be9
inc dword [esp + 0x20]
cmp eax, 0x7d
jne 0x10004c17
dec dword [esp + 0x20]
jne 0x10004c17
cmp byte [esp + 0x17], 1
jne 0x10004c17
lea edx, [esp + 0x24]
push edx
mov ecx, str._r_n_t_r_n_r_n
call fcn.10004860
test eax, eax
je 0x10004cf2
mov byte [esp + 0x17], 0
mov eax, dword [ebp]
cmp word [eax], 0x25
push eax
jne 0x10004c2d
call ebx
mov dword [ebp], eax
cmp word [eax], 0x25
jne 0x10004c78
push eax
mov edi, 1
lea esi, [esp + 0x28]
call fcn.100049a0
test eax, eax
je 0x10004cf2
mov ecx, dword [ebp]
push ecx
call ebx
mov dword [ebp], eax
cmp word [eax], 0
jne 0x10004b23
mov edi, dword [esp + 0x30]
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
mov eax, ebx
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x18]
jmp 0x10004d42
push 0x25
call fcn.10004d70
mov esi, eax
add esp, 4
test esi, esi
je 0x10004d0b
mov ecx, dword [ebp]
sub eax, ecx
sar eax, 1
cmp eax, 0x1f
jg 0x10004d24
lea edx, [esp + 0x38]
push 0x20
push edx
call fcn.10005440
mov edi, dword [ebp + 4]
add esp, 8
lea ecx, [esp + 0x34]
lea eax, [esp + 0x38]
push ecx
lea edi, [edi + 4]
mov dword [esp + 0x38], eax
call fcn.100047f0
test eax, eax
je 0x10004d0b
lea edx, [esp + 0x24]
push edx
mov ecx, eax
call fcn.10004860
test eax, eax
je 0x10004cf2
cmp dword [ebp], esi
je 0x10004c43
mov eax, dword [ebp]
push eax
call ebx
mov dword [ebp], eax
cmp eax, esi
jne 0x10004ce0
jmp 0x10004c43
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x1c], 0x8007000e
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x18]
jmp 0x10004d42
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x1c], 0x80020009
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x18]
jmp 0x10004d42
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x1c], 0x80004005
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x18]
jmp 0x10004d42
mov eax, 0x80004003
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.100134d2
add esp, 0x74
ret 4