Function at 0x409ad0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x42b336
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x43d838]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43d838]
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.00409280
add esp, 8
test eax, eax
je 0x409d3c
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 0x409d24
push 0xa
lea ecx, [esp + 0x28]
call fcn.0040e4e7
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 0x409bbd
lea ebx, [ebx]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040ea1f
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 0x409b90
cmp dword [esp + 0x30], ebx
je 0x409c90
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
je 0x409c90
mov eax, ebp
cmp ebp, ebx
je 0x409cc9
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 0x409c09
cmp eax, dword [esi]
jne 0x409c09
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x409c44
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 0x409cce
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.0041a169
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.00409ad0
add esp, 8
cmp eax, ebx
je 0x409cd3
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 0x409c88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, ebx
jne 0x409bd3
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 0x409d28
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 0x409d10
call fcn.0040ed90
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 0x409d10
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.0040e72f
xor eax, eax
jmp 0x409d41
lea ecx, [esp + 0x24]
mov dword [esp + 0x254], 0xffffffff
call fcn.0040e72f
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.00419ef2
add esp, 0x244
ret