Function at 0x474370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb46c
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x502054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x44]
push eax
push 0x20019
push 0
push edx
push ecx
mov dword [ebp - 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4748ac
push eax
push eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4748a3
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4748a3
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4748a3
mov dword [ebp - 0x48], 0
test eax, eax
je 0x4748a3
add esi, 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x74], esi
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
mov edx, 0xa
movups xmmword [ebp - 0x28], xmm0
cmp esi, 0x7ffffffe
ja 0x4748d6
mov dword [ebp - 0x14], 7
cmp esi, 8
jae 0x474482
mov dword [ebp - 0x18], esi
test esi, esi
je 0x474479
xor eax, eax
lea edi, [ebp - 0x28]
mov ecx, esi
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebp + esi*2 - 0x28], ax
jmp 0x4744d7
mov edi, esi
lea ecx, [ebp - 0x28]
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4744a5
push SysReAllocString
call fcn.004634c0
mov dword [ebp - 0x14], SysReAllocString
jmp 0x4744b7
cmp edi, 0xa
cmovb edi, edx
lea eax, [edi + 1]
push eax
call fcn.004634c0
mov dword [ebp - 0x14], edi
mov edx, eax
mov dword [ebp - 0x18], esi
xor eax, eax
mov dword [ebp - 0x28], edx
mov ecx, esi
mov edi, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [edx + esi*2], ax
lea edx, [eax + 0xa]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov esi, dword [ebp - 0x70]
shr esi, 1
add esi, 2
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
cmp esi, 0x7ffffffe
ja 0x4748d6
mov dword [ebp - 0x2c], 7
cmp esi, 8
jae 0x47452f
xor eax, eax
mov dword [ebp - 0x30], esi
mov ecx, esi
lea edi, [ebp - 0x40]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebp + esi*2 - 0x40], ax
jmp 0x474575
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x474543
mov edi, SysReAllocString
jmp 0x474549
cmp edi, 0xa
cmovb edi, edx
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x40]
call fcn.004634c0
mov edx, eax
mov dword [ebp - 0x2c], edi
xor eax, eax
mov dword [ebp - 0x40], edx
mov ecx, esi
mov dword [ebp - 0x30], esi
shr ecx, 1
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [edx + esi*2], ax
mov byte [ebp - 4], 1
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x48]
add eax, eax
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push edx
cmovae ecx, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push eax
push 0
lea eax, [ebp - 0x74]
push eax
push ecx
push edi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4747ef
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x4747ef
mov eax, dword [ebp - 0x78]
cmp eax, 1
je 0x4745e4
cmp eax, 7
je 0x4745e4
cmp eax, 2
jne 0x4747ef
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x7c]
cmovae ecx, dword [ebp - 0x40]
shr eax, 1
mov word [ecx + eax*2], dx
lea eax, [ebp - 0x68]
mov dword [ebp - 0x8c], eax
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x4748c7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x64]
mov dword [ebp - 0x90], eax
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x4748c7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x60]
mov dword [ebp - 0x94], eax
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x4748c7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x98], eax
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x4748c7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x58]
mov dword [ebp - 0x9c], eax
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x4748c7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x54], 0
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x84]
mov edi, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
test esi, esi
jne 0x4746f9
xor ecx, ecx
jmp 0x47470f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474700
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x68]
call fcn.00461210
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x47472d
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x47472d
xor ecx, ecx
jmp 0x474741
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474732
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.00461210
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
jb 0x47475f
mov edx, dword [ebp - 0x40]
test edx, edx
jne 0x47475f
xor ecx, ecx
jmp 0x474773
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474764
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x60]
call fcn.00461210
xor eax, eax
mov byte [ebp - 0x54], 0
cmp edi, 0x80000001
mov ecx, str.User
setne al
lea eax, [eax*2 + 4]
push eax
mov eax, str.System
cmove eax, ecx
lea ecx, [ebp - 0x5c]
push eax
call fcn.00461210
push 7
push str.Enabled
lea ecx, [ebp - 0x58]
call fcn.00461210
mov edi, dword [ebp - 0x88]
lea ecx, [ebp - 0x6c]
push ecx
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x4747d8
mov ecx, eax
call fcn.0047d090
add dword [edi + 4], 0x1c
jmp 0x4747e0
push eax
mov ecx, edi
call fcn.0047c170
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.004748e0
mov edi, dword [ebp - 0x48]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x47482d
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x474823
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4748d1
push ecx
push edx
call fcn.004aa103
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x47487e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x474874
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4748d1
push ecx
push edx
call fcn.004aa103
add esp, 8
inc edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x48], edi
cmp edi, dword [ebp - 0x4c]
jae 0x4748a3
mov esi, dword [ebp - 0x50]
jmp 0x47442a
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456c70
call fcn.004b3474
call fcn.004575c0
int3