Function at 0x4122f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588047
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5f50fc]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov esi, dword [ebp + 0x10]
push 0x208
push 0
mov dword [ebp - 0x238], ebx
push eax
mov dword [ebp - 0x21c], 0
call fcn.00568420
add esp, 0xc
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x412634
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x234], edi
push esi
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.00407ed0
mov byte [ebp - 4], 1
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x41263e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 2
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push str._s_s
push eax
call fcn.00406e60
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
add esp, 0x10
push eax
push 1
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412577
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x228], 0x104
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
je 0x412417
push str.Path
jmp 0x41241c
push 0x5cfa60
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x21c]
mov dword [ebp - 0x230], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x230], 0
je 0x4124ed
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x412648
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov eax, 0x5cfa60
mov byte [ebp - 4], 3
mov ecx, ebx
test eax, 0xffff0000
jne 0x41247d
movzx eax, ax
push eax
call fcn.0040e020
jmp 0x412489
push 0
push 0x5cfa60
call fcn.00407520
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4124a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4124c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x412614
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x412614
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4124f6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00407520
mov edi, dword [ebp - 0x234]
add edi, 0xfffffff0
push edi
call fcn.00406b20
add eax, 0x10
mov byte [ebp - 4], 1
lea edx, [esi - 0x10]
mov dword [ebx], eax
or esi, 0xffffffff
add esp, 4
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41254d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4125fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4125fb
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x412652
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov eax, 0x5cfa60
mov byte [ebp - 4], 4
mov ecx, ebx
test eax, 0xffff0000
jne 0x4125ad
movzx eax, ax
push eax
call fcn.0040e020
jmp 0x4125b9
push 0
push 0x5cfa60
call fcn.00407520
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4125d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4125f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x412614
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.005663a7
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00406af0
push 0x80004005
call fcn.00406af0
push 0x80004005
call fcn.00406af0
push 0x80004005
call fcn.00406af0
int3