Function at 0x429670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512bad
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [section..data]
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 esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x38], edi
push 0x22
xor eax, eax
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.0040392d
push 0xffffffffffffffff
push edi
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.0040511f
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x2c]
mov ebx, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
jae 0x4296eb
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x429739
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], dx
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x429727
cmp eax, 0xffffffff
je 0x429727
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
jb 0x429835
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x42982d
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
push ecx
push edi
push edi
push edi
push str.ImagePath
push edx
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x429780
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x429778
cmp eax, 0xffffffff
je 0x429778
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
jmp 0x429827
mov eax, dword [ebp - 0x34]
shr eax, 1
lea edx, [ebp - 0x38]
inc eax
push edx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
call fcn.0041ba61
mov ebx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push ebx
push edi
push edi
push str.ImagePath
push ecx
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4297f4
push ebx
mov ecx, esi
call fcn.0040bc49
cmp ebx, edi
je 0x4297d5
push ebx
call fcn.00404f7d
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x4297e8
cmp eax, 0xffffffff
je 0x4297e8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x429835
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x42982d
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp ebx, edi
je 0x429810
push ebx
call fcn.00404f7d
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x429823
cmp eax, 0xffffffff
je 0x429823
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x429835
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404f7d
add esp, 4
mov eax, esi
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.0040330b
mov esp, ebp
pop ebp
ret