Function at 0x413190
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ba5b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x106c
call fcn.00426290
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x103c], eax
mov edi, dword [ebp + 0xc]
mov byte [ebp + 0x10], 0
xor edx, edx
mov dword [ebp - 0x1024], edx
mov dword [ebp - 0x1028], edx
mov dword [ebp - 0x102c], 0x400
mov dword [ebp - 0x1038], edx
mov dword [ebp - 4], edx
cmp eax, edx
je 0x4134a3
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, dx
jne 0x413202
sub eax, esi
sar eax, 1
je 0x4134a3
lea esi, [ebp - 0x1078]
call fcn.00415640
mov byte [ebp - 4], 1
cmp byte [eax + 0x18], 0
sete bl
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00415720
test bl, bl
je 0x413240
mov byte [ebp + 0x10], 0
test edi, edi
jne 0x413249
mov edi, 0x80000002
mov ebx, dword [ebp - 0x103c]
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [ebp - 0x1020], eax
test eax, eax
je 0x4133d2
mov dword [ebp - 0x104c], 0xf003f
lea eax, [ebp - 0x1024]
push eax
push 0xf003f
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1020], eax
test eax, eax
je 0x4132a6
mov dword [ebp - 0x1048], eax
push 0x4499d0
lea ecx, [ebp - 0x1048]
push ecx
call fcn.0042623c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x1028]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x1024]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x1020], eax
test eax, eax
je 0x4132ef
mov dword [ebp - 0x1044], eax
push 0x4499d0
lea ecx, [ebp - 0x1044]
push ecx
call fcn.0042623c
mov esi, dword [ebp - 0x1028]
add esi, 0xffffffff
mov dword [ebp - 0x1030], esi
test esi, esi
jl 0x413399
push 0x800
push 0
lea edx, [ebp - 0x101c]
push edx
call fcn.004260b0
add esp, 0xc
mov dword [ebp - 0x102c], 0x800
lea eax, [ebp - 0x105c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x102c]
push ecx
lea edx, [ebp - 0x101c]
push edx
push esi
mov eax, dword [ebp - 0x1024]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x1020], eax
test eax, eax
jne 0x413391
push eax
mov ecx, dword [ebp - 0x1024]
push ecx
lea edx, [ebp - 0x101c]
push edx
call fcn.00413190
add esp, 0xc
mov dword [ebp - 0x1020], eax
test eax, eax
je 0x413391
mov dword [ebp - 0x1040], eax
push 0x4499d0
lea eax, [ebp - 0x1040]
push eax
call fcn.0042623c
sub esi, 1
jmp 0x4132f8
mov eax, dword [ebp - 0x1024]
test eax, eax
je 0x4133b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1024], 0
xor eax, eax
je 0x4133c4
push eax
push pe_nt_image_headers32
push ebx
push edi
call eax
jmp 0x4133cc
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x1020], eax
push 0x800
push 0
lea ecx, [ebp - 0x81c]
push ecx
call fcn.004260b0
add esp, 0xc
push ebx
push 0x400
lea edx, [ebp - 0x81c]
push edx
call fcn.004245b9
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
mov esi, dword [ebp + 0x10]
push 0x5c
lea eax, [ebp - 0x81c]
push eax
call fcn.00424764
add esp, 8
test eax, eax
je 0x413458
mov word [eax], 0
push esi
push edi
lea edx, [ebp - 0x81c]
call fcn.00413500
add esp, 8
test al, al
je 0x413458
xor eax, eax
je 0x41344a
push eax
push pe_nt_image_headers32
lea ecx, [ebp - 0x81c]
push ecx
push edi
call eax
jmp 0x413454
lea edx, [ebp - 0x81c]
push edx
push edi
call ebx
test eax, eax
je 0x413406
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1024]
test eax, eax
je 0x413470
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1038]
test eax, eax
je 0x413481
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1020]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042397a
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x1034], eax
push 0x4499d0
lea eax, [ebp - 0x1034]
push eax
call fcn.0042623c
mov ecx, dword [ebp - 0x1054]
mov dword [ebp - 0x1020], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4134de
ret