Function at 0x405f4a
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.00409c8c
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 0x406004
lea eax, [ebp - 0x39c]
push str._HKEY_LOCAL_MACHINE_
push eax
call edi
call fcn.00409c8c
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.00404f71
pop ecx
cmp eax, 0xfffffffe
pop ecx
jne 0x406004
xor eax, eax
jmp 0x406194
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 0x406159
cmp dword [0x421c90], ebx
push 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0x14
pop esi
jne 0x406050
mov dword [0x421c90], esi
call fcn.00404eea
cmp eax, 0xfffffffe
je 0x406154
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 0x4060b4
cmp dword [0x4210c8], ebx
jne 0x40617e
mov eax, dword [ebp - 0x14]
dec eax
je 0x4060a7
dec eax
dec eax
je 0x40608d
dec eax
je 0x406093
jmp 0x4060b4
cmp dword [ebp - 0x10], 4
jne 0x4060b4
lea eax, [ebp - 0x2c]
push 4
push eax
lea eax, [ebp - 4]
push eax
call fcn.00411fb0
add esp, 0xc
jmp 0x4060b4
lea eax, [ebp - 0x2c]
push eax
call fcn.00411eb0
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x4060d1
cmp dword [ebp + 0xc], ebx
je 0x4060d1
cmp dword [0x4210c8], ebx
jne 0x40617e
cmp edi, ebx
je 0x4060d1
mov dword [ebp - 4], esi
cmp dword [0x4210c8], ebx
je 0x406114
push dword [ebp + 8]
call fcn.00409c8c
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.00404f71
pop ecx
cmp eax, 0xfffffffe
pop ecx
je 0x406154
mov dword [ebp - 0x18], esi
jmp 0x406117
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 0x406145
push dword [0x42440c]
push esi
push 0x10
push esi
call fcn.00405290
add esp, 0x10
mov dword [ebp - 8], esi
cmp dword [ebp - 0x18], ebx
je 0x40617e
call fcn.00404eea
cmp eax, 0xfffffffe
jne 0x40617e
mov dword [ebp - 8], esi
jmp 0x40617e
push dword [0x42440c]
push 1
pop esi
push esi
push 0x10
push esi
call fcn.00405290
add esp, 0x10
cmp dword [0x421c90], ebx
mov dword [ebp - 8], esi
jne 0x40617e
call fcn.00404ec5
cmp dword [ebp - 0xc], ebx
je 0x40618c
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