Function at 0x474400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca87c
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4ff080]
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 - 0x88], edx
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x48]
push eax
push 0x20019
push 0
push edx
push ecx
mov dword [ebp - 0x48], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47495d
push eax
push eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x474954
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x474954
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x474954
mov dword [ebp - 0x4c], 0
test eax, eax
je 0x474954
add esi, 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x78], esi
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
mov edx, 0xa
movups xmmword [ebp - 0x28], xmm0
cmp esi, 0x7ffffffe
ja 0x474987
mov dword [ebp - 0x14], 7
cmp esi, 7
ja 0x474515
mov dword [ebp - 0x18], esi
test esi, esi
je 0x47450c
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 0x47457e
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x47453f
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], SysReAllocString
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004643a0
mov ecx, dword [ebp - 0x44]
mov edx, eax
mov dword [ebp - 0x14], ecx
jmp 0x47455d
cmp eax, 0xa
cmovb eax, edx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004643a0
mov edx, eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x28], edx
mov ecx, esi
mov dword [ebp - 0x18], esi
add esp, 8
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 - 0x74]
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 0x474987
mov dword [ebp - 0x2c], 7
cmp esi, 7
ja 0x4745d6
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 0x474625
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4745e9
mov eax, SysReAllocString
jmp 0x4745ef
cmp eax, 0xa
cmovb eax, edx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004643a0
mov ecx, dword [ebp - 0x44]
mov edx, eax
mov dword [ebp - 0x2c], ecx
xor eax, eax
add esp, 8
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 - 0x80]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x4c]
add eax, eax
cmp dword [ebp - 0x2c], 7
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 7
push edx
cmova ecx, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
push 0
lea eax, [ebp - 0x78]
push eax
push ecx
push edi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4748a0
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4748a0
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x474694
cmp eax, 7
je 0x474694
cmp eax, 2
jne 0x4748a0
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
mov eax, dword [ebp - 0x80]
cmova ecx, dword [ebp - 0x40]
shr eax, 1
mov word [ecx + eax*2], dx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x90], eax
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x474978
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x68]
mov dword [ebp - 0x94], eax
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x474978
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x64]
mov dword [ebp - 0x98], eax
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x474978
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x60]
mov dword [ebp - 0x9c], eax
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x474978
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x5c]
mov dword [ebp - 0xa0], eax
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x474978
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x88]
mov edi, dword [ebp - 0x84]
mov dword [ebp - 0x70], edi
test esi, esi
jne 0x4747ac
xor ecx, ecx
jmp 0x4747c0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4747b1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x6c]
call fcn.00461270
cmp dword [ebp - 0x14], 7
lea edx, [ebp - 0x28]
jbe 0x4747de
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x4747de
xor ecx, ecx
jmp 0x4747f2
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4747e3
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.00461270
cmp dword [ebp - 0x2c], 7
lea edx, [ebp - 0x40]
jbe 0x474810
mov edx, dword [ebp - 0x40]
test edx, edx
jne 0x474810
xor ecx, ecx
jmp 0x474824
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474815
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.00461270
xor eax, eax
mov byte [ebp - 0x58], 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 - 0x60]
push eax
call fcn.00461270
push 7
push str.Enabled
lea ecx, [ebp - 0x5c]
call fcn.00461270
mov edi, dword [ebp - 0x8c]
lea ecx, [ebp - 0x70]
push ecx
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x474889
mov ecx, eax
call fcn.0047d190
add dword [edi + 4], 0x1c
jmp 0x474891
push eax
mov ecx, edi
call fcn.0047c270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00474990
mov edi, dword [ebp - 0x4c]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x4748de
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4748d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474982
push ecx
push edx
call fcn.004aa25b
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, 7
jbe 0x47492f
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x474925
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474982
push ecx
push edx
call fcn.004aa25b
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 - 0x4c], edi
cmp edi, dword [ebp - 0x50]
jae 0x474954
mov esi, dword [ebp - 0x54]
jmp 0x4744bd
push dword [ebp - 0x48]
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.004a9b96
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456c80
call fcn.004b35c4
call fcn.004575d0
int3