Function at 0x46bd90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514977
mov eax, dword fs:[0]
push eax
sub esp, 0xda8
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xd90], ebx
mov dword [ebp - 0xdb4], 0
mov dword [ebp - 0xd88], 0
mov dword [ebp - 0xd84], 0
mov dword [ebp - 0xd80], 0
push 1
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xd88]
mov dword [ebp - 4], 0
call fcn.0040faa0
mov esi, eax
call fcn.0046c8c0
test al, al
jne 0x46be29
push 5
push 4
push str._d__d_n
call fcn.004f20c4
add esp, 0xc
test esi, esi
je 0x46beb5
mov ecx, dword [0x578ad4]
mov edi, 0x14
lea eax, [ecx + 2]
imul eax, ecx
lea esi, [ecx + 1]
imul eax, esi
cdq
idiv edi
cmp edx, 8
jne 0x46be76
sub ecx, 0
je 0x46be6c
dec ecx
je 0x46be60
mov dword [0x578ad4], esi
jmp 0x46be76
mov dword [0x578ad4], 0
jmp 0x46be76
mov dword [0x578ad4], 2
push 1
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xd88]
call fcn.0040faa0
test eax, eax
je 0x46beb5
push 0x532ad4
mov ecx, ebx
call fcn.00401c30
mov ecx, dword [ebp - 0xd88]
test ecx, ecx
je 0x46beae
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x46c320
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.004f2250
add esp, 0xc
call fcn.0046caf0
test al, al
jne 0x46bf30
mov ebx, dword [0x578ad4]
xor ecx, ecx
mov dword [ebp - 0xd70], ecx
lea edi, [ebp - 0xd6c]
xor esi, esi
mov eax, ebx
inc esi
cdq
xor ecx, ecx
idiv esi
mov dword [ebp - 0xd78], esi
mov dword [ebp - 0xd74], edx
lea esi, [ecx + 1]
mov ecx, esi
cmp ecx, 0xc
jl 0x46bf06
mov esi, dword [ebp - 0xd78]
add edi, 0xc
cmp esi, 0xd
jl 0x46bef2
mov ecx, dword [ebp - 0xd70]
inc ecx
mov dword [ebp - 0xd70], ecx
cmp ecx, 7
jl 0x46bef0
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xd78], eax
mov eax, 0x532ad4
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x46bf77
movzx esi, ax
push 0
push esi
call fcn.00403070
add esp, 8
test eax, eax
je 0x46bf89
push esi
push eax
lea ecx, [ebp - 0xd78]
call fcn.00408b00
jmp 0x46bf89
push 3
push 0x532ad4
lea ecx, [ebp - 0xd78]
call fcn.0040c730
mov edi, dword [ebp - 0xd88]
lea eax, [ebp - 0xd70]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0xd74]
push eax
push 0
push str.CurrentVersion
push edi
mov byte [ebp - 4], 2
mov dword [ebp - 0xd70], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x46c00a
mov eax, dword [ebp - 0xd74]
cmp eax, 1
je 0x46bfdd
cmp eax, 2
je 0x46bfdd
mov esi, 0xd
jmp 0x46c00a
mov eax, dword [ebp - 0xd70]
test eax, eax
je 0x46bfff
test al, 1
jne 0x46bff8
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x46c008
mov esi, 0xd
jmp 0x46c00a
xor eax, eax
mov word [ebp - 0x810], ax
xor esi, esi
call fcn.0041bb40
mov ebx, dword [0x578ad4]
test al, al
jne 0x46c020
inc ebx
mov dword [0x578ad4], ebx
test esi, esi
jne 0x46c140
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c031
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xd78]
call fcn.0040c730
push 0x532fd8
lea ecx, [ebp - 0xd70]
mov dword [ebp - 0xd74], 0x400
call fcn.00401c30
lea eax, [ebp - 0xd74]
push eax
lea eax, [ebp - 0x810]
push eax
push str.CurrentBuild
lea ecx, [ebp - 0xd88]
mov byte [ebp - 4], 3
call fcn.0040fb50
test eax, eax
jne 0x46c116
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c0a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xd70]
call fcn.0040c730
lea eax, [ebp - 0xd70]
push eax
lea eax, [ebp - 0xd74]
push 0x5330e0
push eax
call fcn.00402ce0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0xd78]
push dword [eax - 0xc]
mov byte [ebp - 4], 4
push eax
call fcn.00402f00
mov edx, dword [ebp - 0xd74]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c116
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xd70]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c13a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [0x578ad4]
test edi, edi
je 0x46c159
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [0x578ad4]
xor edi, edi
mov dword [ebp - 0xd88], edi
lea ecx, [ebx + 1]
lea eax, [ebx + 2]
imul eax, ecx
imul eax, ebx
cdq
mov ecx, 0x11
idiv ecx
mov dword [ebp - 0xd84], 0
cmp edx, 0xc
jne 0x46c27e
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xd94], eax
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xda0], eax
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xda8], eax
mov eax, 0x66666667
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xdb0], eax
mov eax, 0x2aaaaaab
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xda4], eax
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xd8c], eax
mov eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0xd98], eax
mov eax, 0x38e38e39
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xd9c], eax
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xdac], eax
mov dword [ebp - 0xd74], 0
lea esi, [ebp - 0x927]
xor eax, eax
mov cl, bl
sub cl, al
mov edi, 1
mov dword [ebp - 0xd70], 7
jmp 0x46c260
add esi, 0xa
inc edi
dec dword [ebp - 0xd70]
jne 0x46c260
mov eax, dword [ebp - 0xd74]
inc eax
mov dword [ebp - 0xd74], eax
cmp eax, 4
jl 0x46c245
mov esi, dword [ebp - 0xd78]
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x46c2aa
cmp ecx, dword [esi]
jne 0x46c2aa
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x46c2e7
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x46c2be
call fcn.0040cb60
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004f18c0
add esp, 0x10
lea eax, [edi + 0x10]
mov edi, dword [ebp - 0xd90]
mov byte [ebp - 4], 0
mov dword [edi], eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46c30d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xd88]
test eax, eax
je 0x46c31e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret