Function at 0x54ee30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56db55
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5b3480]
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 ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x34], esi
cmp byte [ebx + 0x28], 0
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push esi
jne 0x54eeee
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x54eebe
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x54ee9c
mov edi, 4
mov dword [ebp - 0x14], edi
push edi
call fcn.00491441
mov esi, eax
add esp, 4
test esi, esi
je 0x54eebc
push edi
push 0
push esi
call fcn.00493640
add esp, 0xc
mov dword [ebp - 0x34], esi
jmp 0x54ef0f
xor esi, esi
xor bl, bl
test esi, esi
je 0x54eecd
push esi
call fcn.0049144a
add esp, 4
mov al, bl
lea esp, [ebp - 0x64]
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.004913e0
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x54eebe
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
add eax, eax
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
and eax, ecx
je 0x54eebe
cmp eax, 0x400
ja 0x54ef3d
call fcn.00491b10
mov edi, esp
test edi, edi
je 0x54eebe
mov dword [edi], 0xcccc
jmp 0x54ef56
push eax
call fcn.004958af
mov edi, eax
add esp, 4
test edi, edi
je 0x54eebe
mov dword [edi], 0xdddd
add edi, 8
test edi, edi
je 0x54eebe
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x50], 1
mov byte [ebp - 4], 1
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], ecx
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
push ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp dword [ebp - 0x1c], 0
je 0x54f055
sub eax, 0
je 0x54efc8
sub eax, 0xea
je 0x54efbd
sub eax, 0x19
jne 0x54f055
mov bl, 1
jmp 0x54f060
call fcn.0054f410
mov ecx, dword [ebp - 0x30]
inc ecx
jmp 0x54ef6e
call fcn.0054f410
test al, al
je 0x54efe9
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x54f055
mov al, byte [ebx + 0x28]
test al, al
jne 0x54f028
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x54f082
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [eax + 8]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x44]
push edx
call eax
jmp 0x54f051
cmp al, 1
jne 0x54f07d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], eax
test ecx, ecx
je 0x54f082
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [eax + 8]
call eax
test al, al
je 0x54f05e
mov ecx, dword [ebp - 0x30]
inc ecx
jmp 0x54ef6e
xor bl, bl
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x54eec0
push edi
call fcn.004957c3
add esp, 4
jmp 0x54eec0
call fcn.00453740
call fcn.0048f7f8
int3