Function at 0x405ec4
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.00409af3
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 0x405f7e
lea eax, [ebp - 0x39c]
push str._HKEY_LOCAL_MACHINE_
push eax
call edi
call fcn.00409af3
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.00404eeb
pop ecx
cmp eax, 0xfffffffe
pop ecx
jne 0x405f7e
xor eax, eax
jmp 0x40610e
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 0x4060d3
cmp dword [0x421c90], ebx
push 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0x14
pop esi
jne 0x405fca
mov dword [0x421c90], esi
call fcn.00404e64
cmp eax, 0xfffffffe
je 0x4060ce
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 0x40602e
cmp dword [0x4210c8], ebx
jne 0x4060f8
mov eax, dword [ebp - 0x14]
dec eax
je 0x406021
dec eax
dec eax
je 0x406007
dec eax
je 0x40600d
jmp 0x40602e
cmp dword [ebp - 0x10], 4
jne 0x40602e
lea eax, [ebp - 0x2c]
push 4
push eax
lea eax, [ebp - 4]
push eax
call fcn.00411e10
add esp, 0xc
jmp 0x40602e
lea eax, [ebp - 0x2c]
push eax
call fcn.00411d10
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x40604b
cmp dword [ebp + 0xc], ebx
je 0x40604b
cmp dword [0x4210c8], ebx
jne 0x4060f8
cmp edi, ebx
je 0x40604b
mov dword [ebp - 4], esi
cmp dword [0x4210c8], ebx
je 0x40608e
push dword [ebp + 8]
call fcn.00409af3
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.00404eeb
pop ecx
cmp eax, 0xfffffffe
pop ecx
je 0x4060ce
mov dword [ebp - 0x18], esi
jmp 0x406091
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 0x4060bf
push dword [0x42440c]
push esi
push 0x10
push esi
call fcn.0040520a
add esp, 0x10
mov dword [ebp - 8], esi
cmp dword [ebp - 0x18], ebx
je 0x4060f8
call fcn.00404e64
cmp eax, 0xfffffffe
jne 0x4060f8
mov dword [ebp - 8], esi
jmp 0x4060f8
push dword [0x42440c]
push 1
pop esi
push esi
push 0x10
push esi
call fcn.0040520a
add esp, 0x10
cmp dword [0x421c90], ebx
mov dword [ebp - 8], esi
jne 0x4060f8
call fcn.00404e3f
cmp dword [ebp - 0xc], ebx
je 0x406106
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