Function at 0x4156b0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push esi
push edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], esp
push 0x55c888
lea ecx, [ebp - 0x14]
call fcn.004e1e9b
mov eax, dword [0x56b44c]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x14]
call fcn.004e2218
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push eax
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
jne 0x4158b5
mov eax, dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x28]
push ecx
push esi
push edx
push esi
push 0x55c87c
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
call ebx
mov eax, dword [ebp - 0x20]
cmp eax, esi
jbe 0x4157ee
push eax
mov byte [ebp - 4], 2
call fcn.004e24f0
add esp, 4
lea ecx, [ebp - 0x20]
mov edi, eax
mov eax, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edi
push edx
push esi
push 0x55c87c
push eax
mov dword [ebp - 4], 1
call ebx
push 0x55c888
lea ecx, [ebp - 0x14]
call fcn.004e1fbe
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ebx
call fcn.004e2218
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push esi
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push edx
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4157c4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push eax
push edi
push 3
push esi
push 0x55c87c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004e2519
add esp, 4
jmp 0x4157f1
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [ebp - 0x238]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x415883
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
call fcn.004e1fbe
push 0x55c3b8
lea ecx, [ebp - 0x14]
call fcn.004e2218
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004e2218
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004e1fbe
push 0x55c3b8
lea ecx, [ebp - 0x1c]
call fcn.004e2218
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x1c]
push edx
call fcn.004e2218
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004156b0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x238]
inc esi
push 0x104
push edx
push esi
push eax
call edi
test eax, eax
je 0x41580e
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x55c888
lea ecx, [ebp - 0x14]
call fcn.004e1fbe
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push edx
call fcn.004e2218
mov eax, dword [ebp - 0x14]
push eax
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004e1e27
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004e1e27
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8