Function at 0x405ef4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
push ebx
push esi
xor eax, eax
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
call fcn.00409c36
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [ebp - 0x90]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x90]
push 0x41c030
push eax
call esi
mov ebx, str.SharedDLLs
lea eax, [ebp - 0x90]
push ebx
push eax
call esi
cmp dword [0x421c90], 0
jne 0x405fae
lea eax, [ebp - 0x39c]
push str._HKEY_LOCAL_MACHINE_
push eax
call edi
call fcn.00409c36
push eax
lea eax, [ebp - 0x39c]
push eax
call esi
lea eax, [ebp - 0x39c]
push str.____
push eax
call esi
lea eax, [ebp - 0x39c]
push ebx
push eax
call esi
lea eax, [ebp - 0x39c]
push 0x41c36c
push eax
call esi
lea eax, [ebp - 0x39c]
push eax
push str.RegKey
call fcn.00404f1b
pop ecx
cmp eax, 0xfffffffe
pop ecx
jne 0x405fae
xor eax, eax
jmp 0x40613e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x90]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
xor ebx, ebx
cmp eax, ebx
jne 0x406103
cmp dword [0x421c90], ebx
push 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0x14
pop esi
jne 0x405ffa
mov dword [0x421c90], esi
call fcn.00404e94
cmp eax, 0xfffffffe
je 0x4060fe
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp edi, ebx
jne 0x40605e
cmp dword [0x4210c8], ebx
jne 0x406128
mov eax, dword [ebp - 0x14]
dec eax
je 0x406051
dec eax
dec eax
je 0x406037
dec eax
je 0x40603d
jmp 0x40605e
cmp dword [ebp - 0x10], 4
jne 0x40605e
lea eax, [ebp - 0x2c]
push 4
push eax
lea eax, [ebp - 4]
push eax
call fcn.00411f50
add esp, 0xc
jmp 0x40605e
lea eax, [ebp - 0x2c]
push eax
call fcn.00411e50
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x40607b
cmp dword [ebp + 0xc], ebx
je 0x40607b
cmp dword [0x4210c8], ebx
jne 0x406128
cmp edi, ebx
je 0x40607b
mov dword [ebp - 4], esi
cmp dword [0x4210c8], ebx
je 0x4060be
push dword [ebp + 8]
call fcn.00409c36
push eax
lea eax, [ebp - 0x39c]
push str._HKEY_LOCAL_MACHINE_sSharedDlls_____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x39c]
push eax
push str.RegValue
call fcn.00404f1b
pop ecx
cmp eax, 0xfffffffe
pop ecx
je 0x4060fe
mov dword [ebp - 0x18], esi
jmp 0x4060c1
inc dword [ebp - 4]
lea eax, [ebp - 4]
push 4
push eax
push 4
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x4060ef
push dword [0x42440c]
push esi
push 0x10
push esi
call fcn.0040523a
add esp, 0x10
mov dword [ebp - 8], esi
cmp dword [ebp - 0x18], ebx
je 0x406128
call fcn.00404e94
cmp eax, 0xfffffffe
jne 0x406128
mov dword [ebp - 8], esi
jmp 0x406128
push dword [0x42440c]
push 1
pop esi
push esi
push 0x10
push esi
call fcn.0040523a
add esp, 0x10
cmp dword [0x421c90], ebx
mov dword [ebp - 8], esi
jne 0x406128
call fcn.00404e6f
cmp dword [ebp - 0xc], ebx
je 0x406136
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret