Function at 0x54c3d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65e9b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push esi
push edi
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x54]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 0
push 0
push edx
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.005fb5ce
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
test edi, edi
je 0x54c8ee
mov ecx, dword [ebp - 0x34]
inc ecx
push ebx
push ecx
call fcn.005fb5ce
mov ebx, eax
add esp, 4
mov dword [ebp - 0x3c], ebx
test ebx, ebx
jne 0x54c471
push edi
call fcn.00611a0b
add esp, 4
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str._Default_
lea ecx, [ebp - 0x18]
call fcn.00415220
mov dword [ebp - 4], 0
push str._value_not_set_
lea ecx, [ebp - 0x2c]
call fcn.00415220
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x54c62f
cmp eax, 0xffffffff
je 0x54c62f
test esi, esi
jne 0x54c62f
xor ecx, ecx
mov dword [ebp - 0x38], ecx
test eax, eax
je 0x54c62f
nop
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
inc edx
mov dword [ebp - 0x24], edx
inc eax
lea edx, [ebp - 0x14]
push edx
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push 0
lea edx, [ebp - 0x24]
push edx
push edi
push ecx
mov byte [edi], 0
push eax
mov byte [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x54c61f
push 0xc
call fcn.00611c8b
add esp, 4
test eax, eax
je 0x54c61f
mov ecx, eax
call fcn.0054b320
mov esi, eax
test esi, esi
je 0x54c61f
lea ecx, [ebp - 0x74]
call fcn.00425980
mov byte [ebp - 4], 2
cmp dword [ebp - 0x24], 0
jne 0x54c5b7
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54c535
sub eax, edx
jne 0x54c5b7
cmp dword [ebp - 0x14], eax
jne 0x54c57d
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54c550
sub eax, edx
jne 0x54c57d
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.004149b0
lea edx, [ebp - 0x2c]
lea ecx, [esi + 4]
push edx
call fcn.004149b0
mov dword [esi + 8], edi
jmp 0x54c607
push ebx
lea ecx, [ebp - 0x40]
call fcn.00415220
mov edi, eax
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004149b0
lea ecx, [esi + 4]
push edi
call fcn.004149b0
mov dword [esi + 8], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004014a0
mov ebx, dword [ebp - 0x3c]
jmp 0x54c607
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
push ecx
push ebx
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0054bbe0
add esp, 0x10
mov edi, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00415220
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1c]
push edx
push edi
push eax
mov ecx, esi
call fcn.0054bbb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.004014a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.004014a0
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0054b2e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00507e10
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
inc ecx
mov dword [ebp - 0x38], ecx
cmp ecx, dword [ebp - 0x20]
jb 0x54c4c0
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
jmp 0x54c640
mov ecx, 1
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x24], ecx
jle 0x54c7bf
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ecx
lea esp, [esp]
mov eax, dword [ebp - 0x24]
dec eax
cmp esi, eax
jge 0x54c7b7
mov ecx, dword [edi + 4]
cmp esi, ecx
jae 0x54c832
mov eax, dword [edi]
mov edi, dword [eax + esi*4]
cmp dword [ebp - 0x14], ecx
jae 0x54c832
mov ebx, dword [eax + esi*4 + 4]
mov dword [ebp - 0x4c], ebx
test edi, edi
je 0x54c79d
test ebx, ebx
je 0x54c79d
lea ecx, [ebp - 0x48]
push ecx
mov ecx, edi
call fcn.0054b4b0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x18]
mov eax, dword [eax]
push edx
push eax
call fcn.00619bee
add esp, 8
test eax, eax
sete byte [ebp - 0xd]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x54c6e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
jne 0x54c79d
lea ecx, [ebp - 0x40]
push ecx
mov ecx, ebx
call fcn.0054b4b0
mov esi, eax
mov byte [ebp - 4], 8
lea edx, [ebp - 0x44]
push edx
mov ecx, edi
call fcn.0054b4b0
mov byte [ebp - 4], 9
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
call fcn.00619bee
add esp, 8
test eax, eax
setg bl
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x54c743
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x54c766
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x54c79a
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], 0
cmp ecx, dword [eax + 4]
jae 0x54c832
mov edx, dword [eax]
mov esi, dword [ebp - 0x4c]
mov dword [edx + ecx*4], esi
mov edx, dword [ebp - 0x14]
cmp edx, dword [eax + 4]
jae 0x54c832
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], edi
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x38]
inc dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
inc esi
mov dword [ebp - 0x1c], esi
test ecx, ecx
jne 0x54c660
jmp 0x54c640
test ecx, ecx
je 0x54c640
xor esi, esi
xor ebx, ebx
cmp ebx, dword [ebp - 0x24]
jge 0x54c846
cmp ebx, dword [edi + 4]
jae 0x54c832
mov ecx, dword [edi]
lea eax, [ecx + ebx*4]
mov ecx, dword [eax]
inc ebx
test ecx, ecx
je 0x54c82c
lea edx, [ebp - 0x4c]
push edx
call fcn.0054b4b0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x18]
xor edx, edx
test ecx, ecx
setne dl
test edx, edx
je 0x54c83c
mov eax, dword [eax]
push ecx
push eax
call fcn.00612c79
xor ecx, ecx
add esp, 8
test eax, eax
sete cl
mov esi, ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x54c82c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x54c7c3
jmp 0x54c88f
push 0x80070057
call fcn.004011d0
push 0x80004005
call fcn.004011d0
test esi, esi
jne 0x54c88f
push 0xc
call fcn.00611c8b
add esp, 4
test eax, eax
je 0x54c88f
mov ecx, eax
call fcn.0054b320
mov esi, eax
test esi, esi
je 0x54c88f
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.004149b0
lea edx, [ebp - 0x2c]
lea ecx, [esi + 4]
push edx
call fcn.004149b0
push 1
push esi
push 0
mov ecx, edi
mov dword [esi + 8], 1
call fcn.0054b390
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00611a0b
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00611a0b
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x54c8c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x54c8ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret