Function at 0x411a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477d38
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4a3110]
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.00401f10
push 0xffffffffffffffff
push edi
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.004013e0
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x2c]
mov ebx, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
jae 0x411afb
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 0x411b49
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 0x411b37
cmp eax, 0xffffffff
je 0x411b37
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
jb 0x411c45
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x411c3d
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 0x411b90
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 0x411b88
cmp eax, 0xffffffff
je 0x411b88
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
jmp 0x411c37
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.00411910
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 0x411c04
push ebx
mov ecx, esi
call fcn.004023c0
cmp ebx, edi
je 0x411be5
push ebx
call fcn.0042a9e1
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x411bf8
cmp eax, 0xffffffff
je 0x411bf8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x411c45
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x411c3d
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp ebx, edi
je 0x411c20
push ebx
call fcn.0042a9e1
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x411c33
cmp eax, 0xffffffff
je 0x411c33
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x411c45
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042a9e1
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.0042b571
mov esp, ebp
pop ebp
ret