Function at 0x477e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52fa09
mov eax, dword fs:[0]
push eax
mov eax, 0x404c
call fcn.00498ae0
mov eax, dword [0x5898bc]
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 edi, ecx
mov dword [ebp - 0x4048], edi
cmp dword [edi + 0x10], 0
jne 0x477e47
xor eax, eax
jmp 0x4782dd
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x477e40
mov dword [ebp - 0x4058], 0
mov dword [ebp - 0x4054], 0
mov dword [ebp - 0x4050], 0
push 0x20219
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x4058]
mov dword [ebp - 4], 0
call fcn.0041f3a0
mov ebx, dword [ebp - 0x4058]
test eax, eax
je 0x477e9c
xor esi, esi
jmp 0x4782d0
push 0x2000
xor esi, esi
lea eax, [ebp - 0x4010]
push esi
push eax
call fcn.004b2720
add esp, 0xc
mov dword [ebp - 0x4034], 0x1000
lea eax, [ebp - 0x404c]
push esi
push esi
push eax
push esi
lea eax, [ebp - 0x4034]
push eax
lea eax, [ebp - 0x4010]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4782cb
push 0x2000
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x4034], 0x1000
push 0
inc esi
push eax
mov dword [ebp - 0x4044], esi
call fcn.004b2720
add esp, 0xc
mov dword [ebp - 0x4028], 0x2000
lea eax, [ebp - 0x4028]
push eax
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x4038]
push eax
push 0
lea eax, [ebp - 0x4010]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4782a0
mov eax, dword [ebp - 0x4038]
cmp eax, 1
je 0x477f57
cmp eax, 2
jne 0x4782a0
mov eax, dword [ebp - 0x4028]
test eax, eax
je 0x477f7b
test al, 1
jne 0x4782a0
shr eax, 1
cmp word [ebp + eax*2 - 0x2012], 0
je 0x477f84
jmp 0x4782a0
xor eax, eax
mov word [ebp - 0x2010], ax
call fcn.0040bb50
mov ecx, eax
test ecx, ecx
je 0x4782f9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x401c], eax
push str.FAC987B9_7260_42D0_B5D0_7885432FBF96
lea ecx, [ebp - 0x401c]
mov byte [ebp - 4], 1
call fcn.0040afe0
test al, al
jne 0x477fcb
push 0x24
push str.FAC987B9_7260_42D0_B5D0_7885432FBF96
lea ecx, [ebp - 0x401c]
call fcn.0040a830
mov byte [ebp - 4], 2
call fcn.0040bb50
mov ecx, eax
test ecx, ecx
je 0x4782f9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4018], eax
lea eax, [ebp - 0x4010]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x4018]
call fcn.0040afe0
test al, al
jne 0x478032
lea ecx, [ebp - 0x4010]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478010
sub ecx, edx
lea eax, [ebp - 0x4010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4018]
call fcn.0040a830
lea eax, [ebp - 0x401c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x4018]
push eax
lea eax, [ebp - 0x4014]
push eax
call fcn.00478b60
add esp, 0xc
mov edx, dword [ebp - 0x4018]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478075
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x401c]
or eax, 0xffffffff
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478097
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0040bb50
mov ecx, eax
test ecx, ecx
je 0x4782f9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4024], eax
push str.FAC987B9_7260_42D0_B5D0_7885432FBF96
lea ecx, [ebp - 0x4024]
mov byte [ebp - 4], 8
call fcn.0040afe0
test al, al
jne 0x4780de
push 0x24
push str.FAC987B9_7260_42D0_B5D0_7885432FBF96
lea ecx, [ebp - 0x4024]
call fcn.0040a830
mov byte [ebp - 4], 9
call fcn.0040bb50
mov ecx, eax
test ecx, ecx
je 0x4782f9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4020], eax
lea eax, [ebp - 0x2010]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x4020]
call fcn.0040afe0
test al, al
jne 0x478144
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478122
sub ecx, edx
lea eax, [ebp - 0x2010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4020]
call fcn.0040a830
lea eax, [ebp - 0x4024]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x4020]
push eax
lea eax, [ebp - 0x4030]
push eax
call fcn.00478b60
add esp, 0xc
mov edx, dword [ebp - 0x4020]
or eax, 0xffffffff
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478187
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4024]
or eax, 0xffffffff
mov byte [ebp - 4], 0xe
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4781a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x4014]
cmp dword [eax - 0xc], 0
je 0x47825c
mov eax, dword [ebp - 0x4030]
cmp dword [eax - 0xc], 0
je 0x47825c
lea eax, [ebp - 0x4014]
add edi, 4
push eax
lea eax, [ebp - 0x403c]
mov ecx, edi
push eax
call fcn.00425930
mov esi, dword [ebp - 0x403c]
cmp esi, dword [edi]
je 0x478201
lea eax, [esi + 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0x4014]
push eax
call fcn.0040f950
test al, al
je 0x478241
lea eax, [ebp - 0x4014]
mov ecx, edi
mov dword [ebp - 0x4028], eax
lea eax, [ebp - 0x4029]
push eax
lea eax, [ebp - 0x4028]
push eax
push 0x549ec2
call fcn.00421590
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x4040]
push eax
call fcn.00421980
mov esi, dword [ebp - 0x4040]
lea eax, [ebp - 0x4030]
push eax
lea ecx, [esi + 0x14]
call fcn.00411e50
mov esi, dword [ebp - 0x4044]
mov edi, dword [ebp - 0x4048]
mov edx, dword [ebp - 0x4030]
or eax, 0xffffffff
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47827e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4014]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4782a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
lea eax, [ebp - 0x404c]
push eax
push 0
lea eax, [ebp - 0x4034]
push eax
lea eax, [ebp - 0x4010]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x477ee5
mov esi, 1
test ebx, ebx
je 0x4782db
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.00498678
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408fc0
int3