Function at 0x405460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4581b2
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x474454]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x424], edi
push str.Software_
lea ecx, [ebp - 0x41c]
mov dword [ebp - 4], edi
call fcn.00402280
push 0x475988
push eax
lea ecx, [ebp - 0x430]
push ecx
mov byte [ebp - 4], 1
call fcn.00401e80
push 0x45f7dc
push eax
lea edx, [ebp - 0x434]
mov bl, 2
push edx
mov byte [ebp - 4], bl
call fcn.00401f40
push esi
push eax
lea eax, [ebp - 0x414]
push eax
mov byte [ebp - 4], 3
call fcn.00401e80
mov eax, dword [eax]
add esp, 0x24
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x42c]
call fcn.00404a30
test eax, eax
mov eax, dword [ebp - 0x414]
setne byte [ebp - 0x415]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405543
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405568
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40558e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x415], 0
je 0x4055d5
mov eax, dword [ebp - 0x42c]
cmp eax, edi
je 0x4055ce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x405732
push 0x3ff
lea ecx, [ebp - 0x40f]
push edi
push ecx
mov dword [ebp - 0x420], 0x400
mov byte [ebp - 0x410], 0
call fcn.0043ffa0
add esp, 0xc
xor esi, esi
jmp 0x405606
mov esi, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x42c]
push edi
push edi
push edi
push edi
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x410]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, eax
inc esi
mov dword [ebp - 0x41c], esi
cmp ebx, edi
je 0x40563f
cmp ebx, 0x103
jne 0x405717
mov edx, dword [0x474238]
mov eax, dword [edx + 0xc]
mov ecx, 0x474238
call eax
add eax, 0x10
mov dword [ebp - 0x414], eax
lea ecx, [ebp - 0x410]
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x40568c
mov edx, ecx
movzx esi, dx
push edi
push esi
call fcn.00401150
add esp, 8
cmp eax, edi
je 0x4056b1
push esi
push eax
lea ecx, [ebp - 0x414]
call fcn.00401d40
jmp 0x4056b1
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405695
sub eax, edx
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x414]
call fcn.00401be0
mov ecx, dword [ebp - 0x414]
mov byte [ebp - 4], 5
cmp dword [ecx - 0xc], edi
je 0x4056d2
mov ecx, dword [ebp - 0x438]
lea edx, [ebp - 0x414]
push edx
call fcn.004053e0
push 0x400
lea eax, [ebp - 0x410]
push edi
push eax
mov dword [ebp - 0x420], 0x400
call fcn.0043ffa0
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405717
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, edi
je 0x405600
mov eax, dword [ebp - 0x42c]
cmp eax, edi
je 0x405730
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043fdbf
mov esp, ebp
pop ebp
ret