Function at 0x5506d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6238c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov ebp, dword [esp + 0x70]
push edi
mov edi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0x6d92a4
push ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], 4
call ebx
test eax, eax
jne 0x550725
mov edx, dword [esp + 0x14]
mov dword [edi + 0x10], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0x6da724
push ebp
call ebx
test eax, eax
jne 0x55074b
mov eax, dword [esp + 0x14]
test eax, eax
setne dl
mov byte [edi + 0xc], dl
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0x6d929c
push ebp
call ebx
test eax, eax
jne 0x550777
mov ecx, dword [esp + 0x14]
test ecx, ecx
setne dl
and edx, 0xff
mov dword [edi + 0x3c], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push 0x6da71c
push ebp
mov dword [esp + 0x28], 8
call ebx
test eax, eax
jne 0x5507a7
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], eax
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
mov dword [esp + 0x48], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x5507ff
mov eax, dword [esp + 0x18]
lea ecx, [edi + 8]
mov dword [esp + 0x10], eax
inc eax
push eax
call fcn.005fac26
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push 0x6da72c
push ebp
mov byte [eax + edx], 0
call ebx
mov eax, dword [edi + 0x10]
mov esi, 1
cmp eax, esi
jl 0x550980
push esi
lea edx, [esp + 0x40]
push 0x6da744
push edx
call fcn.005deb38
add esp, 0xc
lea eax, [esp + 0x74]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x3c]
push eax
push ecx
push 0
push 0
push edx
push ebp
mov dword [esp + 0x8c], 0x18
call ebx
test eax, eax
jne 0x550974
mov eax, dword [0x6e7b6c]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
xor eax, eax
xor edi, edi
mov dword [esp + 0x6c], 0
cmp dword [ecx + 0x3c], eax
je 0x5508ad
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
mov dword [esp + 0x74], eax
inc eax
push eax
call fcn.005fac26
mov edx, dword [esp + 0x74]
mov edi, eax
push esi
lea eax, [esp + 0x40]
push 0x6da73c
push eax
mov byte [edi + edx], 0
call fcn.005deb38
add esp, 0xc
lea ecx, [esp + 0x74]
lea edx, [esp + 0x3c]
push ecx
push edi
push 0
push 0
push edx
push ebp
call ebx
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push esi
lea eax, [esp + 0x40]
push 0x6da734
push eax
mov dword [esp + 0x80], 0x10
call fcn.005deb38
add esp, 0xc
lea ecx, [esp + 0x74]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x3c]
push ecx
push edx
push 0
push 0
push eax
push ebp
call ebx
test eax, eax
je 0x55090d
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jmp 0x550919
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
push ebx
mov ebx, ecx
push edx
add ebx, edx
mov edx, eax
push eax
adc edx, dword [esp + 0x44]
push ecx
push edx
push ebx
push eax
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push ecx
test eax, eax
setne cl
push ecx
mov ecx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x7c]
push esi
push edx
mov edx, dword [esp + 0x7c]
push eax
push ecx
mov ecx, dword [esp + 0x54]
push edx
push edi
call fcn.00550370
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], 0xffffffff
call fcn.005fa859
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x10]
inc esi
cmp esi, eax
jle 0x55080f
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 4