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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41264d
mov eax, dword fs:[0]
push eax
mov eax, 0x181c
call fcn.00412270
mov eax, dword [0x41f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x181c], 0
lea eax, [ebp - 0x181c]
push eax
push 0xf003f
push 0
push 0x419938
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4041c6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004015b0
jmp 0x4043fb
mov dword [ebp - 0x1824], 0
push 0x800
push 0
lea ecx, [ebp - 0x810]
push ecx
call fcn.00407830
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x1010]
push edx
call fcn.00407830
add esp, 0xc
mov dword [ebp - 0x1828], 0
mov dword [ebp - 0x1814], 0x104
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1814]
push eax
lea ecx, [ebp - 0x1010]
push ecx
mov edx, dword [ebp - 0x1824]
push edx
mov eax, dword [ebp - 0x181c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x1828], eax
cmp dword [ebp - 0x1828], 0
jne 0x4043c0
lea ecx, [ebp - 0x1010]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4043c0
mov dword [ebp - 0x1818], 0
lea edx, [ebp - 0x1818]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp - 0x181c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4043c0
mov dword [ebp - 0x1820], 0
mov dword [ebp - 0x1814], 0x104
lea edx, [ebp - 0x1814]
push edx
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push 0x419990
mov ecx, dword [ebp - 0x1818]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4042f2
push 0x4199b0
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4042f2
mov dword [ebp - 0x1820], 1
mov dword [ebp - 0x1814], 0x104
lea eax, [ebp - 0x1814]
push eax
lea ecx, [ebp - 0x810]
push ecx
push 0
push 0
push 0x419a00
mov edx, dword [ebp - 0x1818]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404387
push 0x800
push 0
lea eax, [ebp - 0x1810]
push eax
call fcn.00407830
add esp, 0xc
lea ecx, [ebp - 0x1810]
push ecx
sub esp, 0x10
mov edx, esp
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 0x14]
mov dword [edx + 0xc], ecx
call fcn.00404840
add esp, 0x14
lea edx, [ebp - 0x1810]
push edx
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x404387
mov dword [ebp - 0x1820], 1
cmp dword [ebp - 0x1820], 0
je 0x4043b3
mov ecx, dword [ebp - 0x1818]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x1010]
push edx
mov eax, dword [ebp - 0x181c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x4043cf
mov ecx, dword [ebp - 0x1818]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1824]
add edx, 1
mov dword [ebp - 0x1824], edx
cmp dword [ebp - 0x1828], 0x103
jne 0x404206
mov eax, dword [ebp - 0x181c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004015b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405f6e
mov esp, ebp
pop ebp
ret