Function at 0x4156e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x522dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x18]
call fcn.00407e60
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], 0xffffffff
push 0x535a4c
lea ecx, [ebp - 0x20]
call fcn.00405c00
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
call fcn.004290b0
add eax, 0x10000
push eax
lea ecx, [ebp - 0x20]
call fcn.00405ec0
push str.Hewlett_Packard
mov eax, dword [ebp - 0x20]
push eax
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x4157a1
push 0x53e09c
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x4157a1
call fcn.004290b0
push str.WEB_AGREEMENT
add eax, 0x10000
push eax
push str.Software_s_s
lea edx, [ebp - 0x18]
push edx
jmp 0x4157b4
push str.WEB_AGREEMENT
push str.Hewlett_Packard
push str.Software_s_s
lea eax, [ebp - 0x18]
push eax
call fcn.004081a0
add esp, 0x10
lea ecx, [ebp - 0x1c]
push ecx
push 0xf023f
push ebx
mov edx, dword [ebp - 0x18]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call esi
cmp eax, ebx
je 0x4157f0
lea eax, [ebp - 0x1c]
push eax
push 0xf013f
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x24]
push edx
push ebx
push ebx
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x415810
mov byte [ebp - 0x11], 0
xor esi, esi
mov dword [ebp - 0x28], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x415820
cmp esi, dword [ebp - 0x24]
jge 0x41585a
push 0x800
push 0
lea ecx, [ebp]
push ecx
call fcn.004fd670
add esp, 0xc
push 0x400
lea edx, [ebp]
push edx
push esi
mov eax, dword [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x415852
add ebx, 1
mov dword [ebp - 0x30], ebx
add esi, 1
mov dword [ebp - 0x28], esi
jmp 0x415820
test ebx, ebx
je 0x415863
cmp ebx, 2
jae 0x41588a
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp]
push edx
call fcn.00405c00
mov byte [ebp - 4], 3
call fcn.004290b0
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.004192e0
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41589f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4158c2
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 0x4158e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x804
mov esp, ebp
pop ebp
ret