Function at 0x435150
Capabilities:
Get number of processors
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x479968
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x98]
lea eax, [esp + 0x60]
push eax
xor ebx, ebx
lea ecx, [esp + 0x68]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x50], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
mov eax, dword [esp + 0x2c]
inc eax
push eax
call fcn.0046b3ee
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x18], ebp
je 0x435676
mov ecx, dword [esp + 0x30]
inc ecx
push ecx
call fcn.0046b3ee
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x4351f9
push ebp
call fcn.0046b3f3
add esp, 4
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret
push edi
push str._Default_
lea ecx, [esp + 0x14]
call fcn.00405920
push str._value_not_set_
lea ecx, [esp + 0x30]
mov dword [esp + 0x80], ebx
call fcn.00405920
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0x7c], 1
je 0x4353d9
cmp eax, 0xffffffff
je 0x4353d9
cmp esi, ebx
jne 0x4353d9
cmp eax, ebx
jbe 0x4353d9
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x435253
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
inc edx
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x88]
push eax
mov dword [esp + 0x30], edx
lea edx, [esp + 0x20]
push edx
push 0
mov byte [ebp], 0
mov byte [eax], 0
lea eax, [esp + 0x38]
push eax
push ebp
push ebx
push ecx
call edi
test eax, eax
jne 0x4353cc
push 0xc
call fcn.0046b3c3
add esp, 4
test eax, eax
je 0x4353cc
mov ecx, eax
call fcn.00434520
mov ebp, eax
test ebp, ebp
je 0x4353cc
lea ecx, [esp + 0x60]
call fcn.00465cd0
mov eax, dword [esp + 0x28]
test eax, eax
mov byte [esp + 0x7c], 2
jne 0x43534c
mov eax, dword [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4352d6
sub eax, edx
mov dword [esp + 0x54], eax
jne 0x43534c
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x43531e
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4352f4
sub eax, edx
mov dword [esp + 0x54], eax
jne 0x43531e
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00434960
jmp 0x4353ad
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x3c]
call fcn.00405920
mov ecx, dword [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + 0x88], 3
call fcn.00434960
lea ecx, [esp + 0x38]
jmp 0x4353a3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00434dd0
add esp, 0x10
mov esi, eax
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], 4
call fcn.00405920
mov edx, dword [esp + 0x18]
push edx
push esi
push eax
mov ecx, ebp
mov byte [esp + 0x88], 5
call fcn.00434960
lea ecx, [esp + 0x3c]
call fcn.00413d20
lea ecx, [esp + 0x40]
mov byte [esp + 0x7c], 2
call fcn.00413d20
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx + 8]
push ebp
push eax
call fcn.00466011
lea ecx, [esp + 0x60]
mov byte [esp + 0x7c], 1
call fcn.00465d22
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jb 0x43524f
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
jmp 0x4353f0
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x20], eax
jle 0x43554b
xor edi, edi
mov dword [esp + 0x18], edi
jmp 0x435410
mov eax, dword [esp + 0x28]
dec eax
cmp edi, eax
jge 0x43553f
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 4]
mov esi, dword [eax + edi*4]
test esi, esi
mov ebp, dword [eax + edi*4 + 4]
lea eax, [eax + edi*4]
je 0x435525
test ebp, ebp
je 0x435525
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.00416bc0
mov edx, dword [esp + 0x10]
mov eax, dword [eax]
push edx
push eax
call fcn.00458d9e
mov ebx, eax
mov eax, dword [esp + 0x48]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435483
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x435529
lea eax, [esp + 0x38]
push eax
mov ecx, ebp
call fcn.00416bc0
mov edi, eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
mov byte [esp + 0x80], 6
call fcn.00416bc0
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push eax
call fcn.00458d9e
add esp, 8
test eax, eax
mov eax, dword [esp + 0x3c]
setg bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4354de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x7c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435501
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x435525
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov dword [edx + eax*4], ebp
mov ecx, dword [ecx + 4]
mov dword [esp + 0x20], 0
mov dword [ecx + eax*4 + 4], esi
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
inc edi
test eax, eax
mov dword [esp + 0x18], edi
jne 0x435410
jmp 0x4353f0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4353f0
xor esi, esi
xor ebx, ebx
pop edi
cmp ebx, dword [esp + 0x24]
jge 0x4355ad
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 4]
mov ecx, dword [eax + ebx*4]
inc ebx
test ecx, ecx
je 0x4355a7
lea edx, [esp + 0x3c]
push edx
call fcn.00416bc0
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push eax
call fcn.004578d3
mov esi, eax
mov eax, dword [esp + 0x44]
add esp, 8
neg esi
sbb esi, esi
add eax, 0xfffffff0
inc esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4355a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x435550
jmp 0x435616
test esi, esi
jne 0x435616
push 0xc
call fcn.0046b3c3
mov esi, eax
add esp, 4
test esi, esi
je 0x435616
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
lea ebx, [esi + 4]
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00402990
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.00402990
mov ecx, dword [esp + 0x84]
push 1
push esi
push 0
mov dword [esi + 8], 1
call fcn.00466038
mov edx, dword [esp + 0x10]
push edx
call fcn.0046b3f3
mov eax, dword [esp + 0x1c]
push eax
call fcn.0046b3f3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x78], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435650
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435676
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x70]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret