Function at 0x405d70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48da08
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.00465cc0
mov eax, dword [0x4b1d00]
xor eax, esp
mov dword [esp + 0x2020], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1d00]
xor eax, esp
push eax
lea eax, [esp + 0x203c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x204c]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebx
mov eax, dword [esi]
xor ebp, ebp
cmp eax, ebp
jne 0x405dd1
xor eax, eax
jmp 0x406037
mov ecx, dword [esi + 8]
lea edi, [esi + 8]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
cmp dword [ecx - 0xc], ebp
jne 0x405eb5
mov ecx, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 0xc]
or edx, 8
push edx
push ebp
push ecx
mov ebx, 0x1000
push eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x406033
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
push ecx
push ebp
push edx
xor esi, esi
call edi
test eax, eax
jne 0x406020
or ebp, 0xffffffff
lea ebx, [ebx]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
call fcn.00404be0
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2048], 0
call fcn.0040a790
mov dword [esp + 0x2044], ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405e8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x48]
push edx
inc esi
push esi
push eax
mov dword [esp + 0x44], ebx
call edi
test eax, eax
je 0x405e40
jmp 0x406020
mov edx, dword [esi + 4]
mov ecx, dword [edx - 0xc]
lea eax, [esi + 4]
cmp ecx, ebp
je 0x405ef8
push 0x499254
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00404cd0
mov ecx, 1
mov dword [esp + 0x2050], ecx
push edi
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0040a5e0
add esp, 0x18
mov ebx, 3
jmp 0x405efa
mov eax, edi
mov ecx, dword [esi + 0xc]
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi]
or ecx, 1
push ecx
push ebp
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete byte [esp + 0x1b]
or ebp, 0xffffffff
test bl, 2
je 0x405f48
mov eax, dword [esp + 0x24]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2044], ebp
test bl, 1
je 0x405f73
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
je 0x406033
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor esi, esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x48]
push edx
push esi
mov ebx, 0x1000
push eax
mov dword [esp + 0x3c], ebx
call edi
test eax, eax
jne 0x406020
lea esp, [esp]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00404be0
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2048], 2
call fcn.0040a790
mov dword [esp + 0x2044], ebp
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ffd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x48]
push edx
inc esi
push esi
push eax
mov dword [esp + 0x3c], ebx
call edi
test eax, eax
je 0x405fb0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x203c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2020]
xor ecx, esp
call fcn.00464fe1
add esp, 0x2034
ret