Function at 0x414660
Capabilities:
Get number of processors
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4bc926
mov eax, dword fs:[0]
push eax
sub esp, 0x588
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x580], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e97d0]
xor eax, esp
push eax
lea eax, [esp + 0x59c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5ac]
xor ebx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x20]
push ecx
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
mov dword [esp + 0x5b4], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x414942
mov esi, dword [esp + 0x20]
push 0x64
lea edx, [esp + 0xb8]
push ebx
push edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebx
call fcn.004840d0
add esp, 0xc
push 0x64
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.004840d0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x44]
push ecx
push ebx
push ebx
push ebx
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x3a0]
push ecx
push eax
mov edi, 0x104
push esi
mov dword [esp + 0x60], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41489d
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x34]
push edx
push 1
push ebx
lea eax, [esp + 0x398]
push eax
mov byte [esp + 0x5b4], 1
push esi
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x414829
mov ebp, dword [esp + 0x34]
push str.ServiceName
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], edi
push ecx
lea edi, [esp + 0x2c]
lea esi, [esp + 0x18c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
call fcn.004125f0
test eax, eax
jne 0x41486d
lea edx, [esp + 0x24]
push edx
mov eax, esi
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00414270
add esp, 8
test eax, eax
je 0x4147cd
cmp dword [esp + 0x24], ebx
je 0x41486d
push 0x64
lea ecx, [esp + 0x120]
push ebx
push ecx
call fcn.004840d0
add esp, 0xc
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x188]
push eax
lea ecx, [esp + 0x30]
call fcn.00414480
add esp, 8
test eax, eax
je 0x41486d
cmp dword [esp + 0x28], ebx
je 0x414832
cmp byte [esp + 0x4c], bl
je 0x414823
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x41486d
lea ecx, [esp + 0x4c]
jmp 0x41485c
mov byte [esp + 0x5a4], bl
jmp 0x414887
cmp byte [esp + 0xb4], bl
je 0x414855
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x41486d
lea ecx, [esp + 0xb4]
lea eax, [esp + 0x11c]
mov edx, 0x64
call fcn.004127f0
mov byte [esp + 0x5a4], bl
cmp ebp, ebx
je 0x414883
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, 0x64
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], eax
jl 0x414710
cmp byte [esp + 0xb4], bl
je 0x4148e9
lea eax, [esp + 0xb4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4148b0
sub eax, edx
lea edx, [esp + 0xb4]
mov edi, eax
mov eax, dword [esp + 0x30]
push edx
call fcn.00411be0
mov dword [esp + 0x5a4], 0xffffffff
cmp esi, ebx
je 0x4148e2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x414944
cmp byte [esp + 0x4c], bl
je 0x41492c
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4148f6
sub eax, edx
lea ecx, [esp + 0x4c]
mov edi, eax
mov eax, dword [esp + 0x30]
push ecx
call fcn.00411be0
mov dword [esp + 0x5a4], 0xffffffff
cmp esi, ebx
je 0x4148e2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x414944
mov dword [esp + 0x5a4], 0xffffffff
cmp esi, ebx
je 0x414942
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x59c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x580]
xor ecx, esp
call fcn.004841c7
add esp, 0x594
ret