Function at 0x558b78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x558f3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
cmp dword [ebp - 8], 0
sete byte [ebp - 0x1c]
cmp byte [ebp - 0x1c], 0
jne 0x558bc0
mov eax, dword [ebp - 8]
mov edx, dword [0x55865c]
call fcn.00405f84
cmp dword [ebp - 4], 0
sete byte [ebp - 0x1d]
cmp byte [ebp - 0x1d], 0
jne 0x558bdc
mov eax, dword [ebp - 4]
mov edx, dword [0x5586a8]
call fcn.00405f84
mov al, byte [ebp - 0x1c]
and al, byte [ebp - 0x1d]
jne 0x558f1b
xor eax, eax
mov dword [ebp - 0x24], eax
xor edx, edx
push ebp
push 0x558f14
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x10], 0x10000
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00402824
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x558f50
push 0x80000004
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
jne 0x558c3f
mov edx, dword [ebp - 0x10]
add edx, edx
mov dword [ebp - 0x10], edx
cmp eax, 0xea
je 0x558c02
test eax, eax
je 0x558c54
call fcn.004043dc
jmp 0x558f1b
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 0x18]
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
dec eax
test eax, eax
jl 0x558e67
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 4], 0
je 0x558c7f
cmp dword [esi + 0xc], 0xe6
je 0x558c83
xor eax, eax
jmp 0x558c85
mov al, 1
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
jne 0x558c9d
cmp dword [ebp - 8], 0
je 0x558c9d
cmp dword [esi + 0xc], 0xe8
je 0x558ca1
xor eax, eax
jmp 0x558ca3
mov al, 1
mov byte [ebp - 0x1a], al
mov al, byte [ebp - 0x19]
or al, byte [ebp - 0x1a]
je 0x558e58
mov edi, dword [esi + 8]
add edi, esi
mov eax, dword [esi + 0x20]
dec eax
test eax, eax
jl 0x558e3e
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
cmp dword [edi + 4], 0x310
sete byte [ebp - 0x1b]
cmp byte [ebp - 0x1b], 0
jne 0x558ce8
cmp dword [edi + 4], 0x324
je 0x558cec
xor eax, eax
jmp 0x558cee
mov al, 1
or al, byte [ebp - 0x1b]
je 0x558e2f
mov ebx, dword [esi + 4]
add ebx, esi
cmp byte [ebp - 0x19], 0
je 0x558d1f
mov eax, dword [esi + 0x28]
dec eax
push eax
mov eax, dword [ebp - 4]
mov ecx, 1
mov edx, dword [0x5586a8]
call fcn.00405e64
add esp, 4
jmp 0x558d3a
mov eax, dword [esi + 0x28]
dec eax
push eax
mov eax, dword [ebp - 8]
mov ecx, 1
mov edx, dword [0x55865c]
call fcn.00405e64
add esp, 4
mov eax, dword [esi + 0x28]
sub eax, 2
test eax, eax
jl 0x558e2f
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebx]
add eax, ebx
add eax, dword [edi + 0x24]
mov eax, dword [eax]
cmp byte [ebp - 0x19], 0
je 0x558df6
mov edx, dword [ebp - 0x18]
add edx, edx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [ecx + edx*8], eax
test eax, eax
je 0x558ddc
lea eax, [ebp - 0x34]
mov edx, dword [ebx + 0x10]
add edx, ebx
call fcn.004051dc
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
add eax, eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
lea eax, [ecx + eax*8 + 4]
call fcn.00404c20
mov eax, dword [ebp - 0x18]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 4]
mov edx, 0x558f60
call fcn.00404da4
je 0x558e1b
mov eax, dword [ebp - 0x18]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov edx, dword [edx + eax*8 + 4]
mov eax, dword [ebp - 0x18]
add eax, eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
lea eax, [ecx + eax*8 + 4]
mov ecx, 0x558f70
call fcn.00404ca4
jmp 0x558e1b
mov eax, dword [ebp - 0x18]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx]
lea eax, [edx + eax*8 + 4]
mov edx, 0x558f80
call fcn.004049ec
jmp 0x558e1b
cmp byte [ebp - 0x1b], 0
je 0x558e0c
mov edx, dword [ebp - 0x18]
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [ecx + edx*4], eax
jmp 0x558e1b
mov edx, dword [ebp - 0x18]
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [ecx + edx*4 + 4], eax
mov eax, dword [ebx]
add eax, ebx
mov ebx, dword [eax]
add ebx, eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x30]
jne 0x558d53
add edi, 0x28
inc dword [ebp - 0x14]
dec dword [ebp - 0x2c]
jne 0x558cce
mov al, byte [ebp - 0x1c]
or al, byte [ebp - 0x1a]
mov byte [ebp - 0x1c], al
mov al, byte [ebp - 0x1d]
or al, byte [ebp - 0x19]
mov byte [ebp - 0x1d], al
mov al, byte [ebp - 0x1c]
and al, byte [ebp - 0x1d]
jne 0x558e67
mov eax, dword [esi]
add eax, esi
mov esi, eax
dec dword [ebp - 0x28]
jne 0x558c70
cmp dword [ebp - 4], 0
je 0x558e75
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x558e87
cmp dword [ebp - 8], 0
je 0x558e83
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x558e87
xor eax, eax
jmp 0x558e89
mov al, 1
mov byte [ebp - 0xa], al
cmp dword [ebp - 8], 0
setne al
and al, byte [ebp - 9]
je 0x558efe
cmp byte [ebp - 9], 0
je 0x558efe
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405cb0
test eax, eax
jl 0x558efe
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x10]
lea ebx, [ebx + ebx*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x558ef6
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax + ebx*4 + 4]
mov eax, esi
xor ecx, ecx
call fcn.0055954c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea eax, [eax + ebx*4 + 8]
mov ecx, dword [0x558618]
call fcn.00405fc0
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x558eb7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x558f1b
mov eax, dword [ebp - 0x24]
call fcn.00402804
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x558f46
lea eax, [ebp - 0x38]
mov edx, dword [0x558618]
call fcn.00405f84
lea eax, [ebp - 0x34]
call fcn.004050cc
ret