Function at 0x416eb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5510a9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5ba6c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.0042e490
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416efa
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 2
push 0x5bc068
lea edx, [ebp - 0x14]
push str.SOFTWAREMicrosoft_
push edx
call fcn.00416de0
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [eax]
push 0x2001f
push eax
push SysReAllocStringLen
lea ecx, [ebp - 0x28]
call fcn.004026d0
test eax, eax
sete byte [ebp - 0xd]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416f7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x28]
cmp byte [ebp - 0xd], bl
je 0x4170a9
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
push ebx
push str.extcount
push edi
mov dword [esi], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x14], 4
jne 0x416fd4
cmp eax, ebx
jne 0x416fd4
inc dword [esi]
mov esi, dword [esi]
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push ebx
push str.extcount
push edi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp + 0xc]
push ecx
push ebx
lea edx, [ebp - 0x1c]
push edx
push ebx
push 0x5659d4
push edi
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x417096
mov eax, dword [ebp + 0xc]
inc eax
push eax
call fcn.0042d6c3
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
mov esi, eax
push ebx
push esi
call fcn.0052f600
add esp, 0x10
lea edx, [ebp + 0xc]
push edx
push 0x5659d4
push esi
lea ecx, [ebp - 0x28]
call fcn.00401240
test eax, eax
jne 0x41708d
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417030
sub eax, edx
push eax
push esi
call fcn.00407880
mov dword [ebp - 0x14], eax
inc eax
push eax
call fcn.0042d6c3
mov edi, eax
mov eax, dword [ebp - 0x14]
inc eax
push eax
push ebx
push edi
call fcn.0052f600
mov eax, esi
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x417060
sub eax, ecx
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push esi
call fcn.00407890
mov ecx, dword [ebp + 8]
add esp, 0x10
push edi
call fcn.00401f10
push edi
call fcn.0042d6ce
mov edi, dword [ebp - 0x28]
add esp, 4
push esi
call fcn.0042d6ce
add esp, 4
cmp edi, ebx
je 0x4170a6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov edi, ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], bl
cmp edi, ebx
je 0x4170ba
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8