Function at 0x413c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507c68
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x547770]
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.004021e0
push 0xffffffffffffffff
push edi
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.004013f0
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x2c]
mov ebx, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
jae 0x413cfb
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 0x413d49
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 0x413d37
cmp eax, 0xffffffff
je 0x413d37
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
jb 0x413e45
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x413e3d
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 0x413d90
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 0x413d88
cmp eax, 0xffffffff
je 0x413d88
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
jmp 0x413e37
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.00413b10
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 0x413e04
push ebx
mov ecx, esi
call fcn.00402890
cmp ebx, edi
je 0x413de5
push ebx
call fcn.004b9d66
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x413df8
cmp eax, 0xffffffff
je 0x413df8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x413e45
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x413e3d
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp ebx, edi
je 0x413e20
push ebx
call fcn.004b9d66
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x413e33
cmp eax, 0xffffffff
je 0x413e33
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x413e45
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b9d66
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.004ba901
mov esp, ebp
pop ebp
ret