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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c47d
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x42a040]
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 - 0x634], 0
lea eax, [ebp - 0x634]
push eax
push 0xf003f
push 0
push 0x424128
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a4b2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
jmp 0x40a6e7
mov dword [ebp - 0x63c], 0
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.0040fb70
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.0040fb70
add esp, 0xc
mov dword [ebp - 0x640], 0
mov dword [ebp - 0x62c], 0x104
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x63c]
push edx
mov eax, dword [ebp - 0x634]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 0
jne 0x40a6ac
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40a6ac
mov dword [ebp - 0x630], 0
lea edx, [ebp - 0x630]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x634]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a6ac
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x62c], 0x104
lea edx, [ebp - 0x62c]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x424180
mov ecx, dword [ebp - 0x630]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a5de
push 0x4241a0
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40a5de
mov dword [ebp - 0x638], 1
mov dword [ebp - 0x62c], 0x104
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
push 0x4241f0
mov edx, dword [ebp - 0x630]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a673
push 0x208
push 0
lea eax, [ebp - 0x628]
push eax
call fcn.0040fb70
add esp, 0xc
lea ecx, [ebp - 0x628]
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.0040aff0
add esp, 0x14
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40a673
mov dword [ebp - 0x638], 1
cmp dword [ebp - 0x638], 0
je 0x40a69f
mov ecx, dword [ebp - 0x630]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp - 0x634]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40a6bb
mov ecx, dword [ebp - 0x630]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x63c]
add edx, 1
mov dword [ebp - 0x63c], edx
cmp dword [ebp - 0x640], 0x103
jne 0x40a4f2
mov eax, dword [ebp - 0x634]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret