Function at 0x407080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x56d3f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push 0x2001f
push str.SoftwareSmartPC
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.0040c2c0
test eax, eax
je 0x40713b
mov esi, dword [ebp - 0x24]
cmp esi, ebx
je 0x4070e7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
call fcn.0040c47c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407104
push 0x80004005
call fcn.00401c40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov ecx, edi
call fcn.00401940
cmp esi, ebx
je 0x407127
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x54ea83
lea ecx, [ebp - 0x10]
call fcn.00401880
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov esi, 0x3e8
sub ecx, esi
or eax, ecx
jge 0x407171
push esi
lea ecx, [ebp - 0x10]
call fcn.00401a70
mov edx, dword [ebp - 0x10]
mov edi, edx
cmp dword [edx - 8], esi
jl 0x40729d
mov dword [edx - 0xc], esi
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x24]
push str.path
push esi
mov byte [ecx + 0x3e8], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4071c2
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x4071b5
cmp eax, 2
jne 0x4071c2
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40720f
cmp byte [eax + edi - 1], bl
je 0x407211
cmp esi, ebx
je 0x4071d2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x24], esi
mov edi, dword [ebp + 8]
push 0x54ea83
mov ecx, edi
mov dword [ebp - 0x20], ebx
call fcn.00401880
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40711c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40711c
mov byte [edi], bl
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ff861
add esp, 8
cmp eax, ebx
jl 0x40729d
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x40729d
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x10]
call fcn.00401180
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x407250
push esi
call edi
xor esi, esi
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x20], ebx
call fcn.004013f0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407281
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x407288
push esi
call edi
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
push 0x80070057
call fcn.00401c40
int3