Function at 0x413aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d2a8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x58d038]
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.00401b70
push 0xffffffffffffffff
push edi
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.004043e0
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x2c]
mov ebx, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
jae 0x413b1b
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 0x413b69
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 0x413b57
cmp eax, 0xffffffff
je 0x413b57
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
jb 0x413c65
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x413c5d
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 0x413bb0
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 0x413ba8
cmp eax, 0xffffffff
je 0x413ba8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
jmp 0x413c57
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.00413930
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 0x413c24
push ebx
mov ecx, esi
call fcn.00401fd0
cmp ebx, edi
je 0x413c05
push ebx
call fcn.00480102
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x413c18
cmp eax, 0xffffffff
je 0x413c18
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x413c65
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x413c5d
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp ebx, edi
je 0x413c40
push ebx
call fcn.00480102
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x413c53
cmp eax, 0xffffffff
je 0x413c53
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x413c65
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00480102
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.00480264
mov esp, ebp
pop ebp
ret