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

Disassembly:
push 0xffffffffffffffff
push 0x42b146
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x43d768]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43d768]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x260]
mov esi, dword [esp + 0x25c]
push edi
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
call fcn.00409040
add esp, 8
test eax, eax
je 0x409cbc
lea eax, [esp + 0x14]
push eax
push 8
xor ebx, ebx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x409ca4
push 0xa
lea ecx, [esp + 0x28]
call fcn.0040c093
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x54]
push edx
push ebx
mov ebp, 0x104
push eax
mov dword [esp + 0x274], ebx
xor esi, esi
mov dword [esp + 0x38], ebp
call edi
cmp eax, ebx
jne 0x409b3d
lea ebx, [ebx]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040c64d
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x54]
push eax
inc esi
push esi
push ecx
mov dword [esp + 0x38], ebp
call edi
cmp eax, ebx
je 0x409b10
cmp dword [esp + 0x30], ebx
je 0x409c10
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
je 0x409c10
mov eax, ebp
cmp ebp, ebx
je 0x409c49
mov esi, dword [eax + 8]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov ebp, dword [ebp]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x409b89
cmp eax, dword [esi]
jne 0x409b89
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x409bc4
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
je 0x409c4e
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00419f54
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x14]
push esi
push ecx
mov byte [esp + 0x25c], 1
call fcn.00409a50
add esp, 8
cmp eax, ebx
je 0x409c53
lea eax, [esi - 0x10]
mov byte [esp + 0x254], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409c08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, ebx
jne 0x409b53
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
je 0x409ca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push ecx
mov edi, eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x409c90
call fcn.0040ed93
call fcn.004014c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esi - 0x10]
mov byte [esp + 0x254], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409c90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x254], 0xffffffff
call fcn.0040c2db
xor eax, eax
jmp 0x409cc1
lea ecx, [esp + 0x24]
mov dword [esp + 0x254], 0xffffffff
call fcn.0040c2db
mov eax, 1
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.00419ef4
add esp, 0x244
ret