Function at 0x404bc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43da90
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.00427f00
mov eax, dword [0x44ef24]
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 ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2018], 0
mov dword [ebp - 0x2020], ecx
mov edx, dword [ecx]
test edx, edx
je 0x40502a
mov esi, dword [ecx + 8]
lea ebx, [ecx + 8]
mov dword [ebp - 0x201c], 0
cmp dword [esi - 0xc], 0
jne 0x404daa
lea eax, [ebp - 0x201c]
mov dword [ebp - 0x2018], 0x1000
push eax
mov eax, dword [ecx + 0xc]
or eax, 8
push eax
push 0
push dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40502a
push eax
push eax
push eax
push eax
mov dword [ebp - 0x2020], eax
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0x2010]
push eax
push 0
push dword [ebp - 0x201c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x404d94
call fcn.00404200
mov ecx, eax
test ecx, ecx
je 0x405048
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2014]
call fcn.00403d80
test al, al
jne 0x404cf2
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404cd0
sub ecx, edx
lea eax, [ebp - 0x2010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2014]
call fcn.004052e0
mov ebx, dword [edi + 4]
mov dword [ebp - 4], 1
cmp dword [edi + 8], ebx
je 0x404d1e
mov esi, dword [ebp - 0x2014]
lea eax, [esi - 0x10]
push eax
call fcn.00403eb0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
add dword [edi + 4], 4
jmp 0x404d33
lea eax, [ebp - 0x2014]
mov ecx, edi
push eax
push ebx
call fcn.004037c0
mov esi, dword [ebp - 0x2014]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x404d52
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x2020]
lea eax, [ebp - 0x2018]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x2018], 0x1000
push eax
inc ebx
push ebx
push dword [ebp - 0x201c]
mov dword [ebp - 0x2020], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404c86
push dword [ebp - 0x201c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x40502c
mov eax, dword [ecx + 4]
add ecx, 4
cmp dword [eax - 0xc], 0
je 0x404e00
push 0x441570
push ecx
lea eax, [ebp - 0x2028]
push eax
call fcn.004019c0
push ebx
push eax
lea eax, [ebp - 0x2014]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x2018], 1
call fcn.00403b60
add esp, 0x18
mov edx, dword [eax]
mov ebx, 3
mov esi, dword [ebp - 0x2028]
mov dword [ebp - 4], 3
jmp 0x404e16
lea eax, [esi - 0x10]
push eax
call fcn.00403eb0
add esp, 4
mov ebx, 4
lea edx, [eax + 0x10]
mov esi, edx
mov ecx, dword [ebp - 0x2020]
lea eax, [ebp - 0x201c]
push eax
mov eax, dword [ecx + 0xc]
or eax, 1
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete byte [ebp - 0x2021]
test bl, 4
je 0x404e64
and ebx, 0xfffffffb
add esi, 0xfffffff0
mov dword [ebp - 0x2018], ebx
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x404e64
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 2
test bl, 2
je 0x404e97
mov edx, dword [ebp - 0x2014]
and ebx, 0xfffffffd
mov dword [ebp - 0x2018], ebx
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404e97
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x404ec1
mov edx, dword [ebp - 0x2028]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404ec1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x2021], 0
je 0x40502a
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2020]
mov dword [ebp - 0x2020], 0x1000
push eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x2018], 0
push eax
push 0
push dword [ebp - 0x201c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x404d94
mov edi, edi
call fcn.00404200
mov ecx, eax
test ecx, ecx
je 0x405048
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2014]
call fcn.00403d80
test al, al
jne 0x404f75
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404f53
sub ecx, edx
lea eax, [ebp - 0x2010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2014]
call fcn.004052e0
mov ebx, dword [edi + 4]
mov dword [ebp - 4], 5
cmp dword [edi + 8], ebx
je 0x404fa1
mov esi, dword [ebp - 0x2014]
lea eax, [esi - 0x10]
push eax
call fcn.00403eb0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
add dword [edi + 4], 4
jmp 0x404fb6
lea eax, [ebp - 0x2014]
mov ecx, edi
push eax
push ebx
call fcn.004037c0
mov esi, dword [ebp - 0x2014]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x404fd5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x2018]
lea eax, [ebp - 0x2020]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x2020], 0x1000
push eax
inc ebx
push ebx
push dword [ebp - 0x201c]
mov dword [ebp - 0x2018], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x404f10
push dword [ebp - 0x201c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x40502c
xor eax, eax
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.00427ee9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401cf0
int3