Function at 0x405b70
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x435b10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x448fb0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x44], ebx
call fcn.0041583d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x405bb9
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x28]
call fcn.00401f40
mov eax, dword [esp + 0x4c]
push 1
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
push eax
mov byte [esp + 0x50], 2
mov dword [esp + 0x28], 0x200
mov dword [esp + 0x24], ebx
call fcn.00402730
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [edi], eax
call dword [esp + 0x58]
mov edi, eax
cmp edi, ebx
jne 0x405ed1
test byte [ebp + 0x68], 1
jne 0x405ed1
push 0x20019
push ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x58]
push edx
mov ecx, ebp
call fcn.00405110
mov edi, eax
cmp edi, ebx
jne 0x405ed1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x200
or eax, ecx
jge 0x405c62
push 0x200
lea ecx, [esp + 0x18]
call fcn.004026e0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp + 0x44], eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00421ff5
add esp, 8
cmp eax, ebx
jl 0x405dd2
cmp eax, dword [esi - 8]
jg 0x405dd2
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
mov dword [esp + 0x20], 1
cmp dword [ebp + 0x44], ebx
jne 0x405d5d
push ecx
lea edi, [esi - 0x10]
mov dword [esp + 0x28], esp
mov ebx, esp
push edi
call fcn.00402730
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [ebx], eax
call fcn.00404cc0
mov dword [esp + 0x1c], 0x200
mov eax, dword [edi + 8]
mov ecx, 1
sub ecx, dword [edi + 0xc]
sub eax, 0x200
or eax, ecx
jge 0x405d02
push 0x200
lea ecx, [esp + 0x18]
call fcn.004026e0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp + 0x44], eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00421ff5
add esp, 8
test eax, eax
jl 0x405dd2
cmp eax, dword [esi - 8]
jg 0x405dd2
inc dword [esp + 0x20]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp + 0x44], ecx
je 0x405cb3
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp dword [ebp + 0x44], 0x103
je 0x405ddc
cmp edi, ebx
je 0x405d71
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.004033d0
lea eax, [esi - 0x10]
mov byte [esp + 0x44], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405da0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405dc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x17
jmp 0x405f26
push 0x80070057
call fcn.00401090
mov dword [ebp + 0x44], ebx
cmp edi, ebx
je 0x405dea
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp dword [esp + 0x30], ebx
jle 0x405e71
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
push ecx
push 0x4397d4
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00403ce0
add esp, 0xc
mov byte [esp + 0x48], 3
test edi, edi
jl 0x405ecc
cmp edi, dword [esp + 0x34]
jge 0x405ecc
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
push eax
push ecx
call fcn.00403c20
add esp, 0xc
mov ecx, ebp
call fcn.00405b70
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x44], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405e67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
add ebx, 4
cmp edi, dword [esp + 0x30]
jl 0x405df6
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.004033d0
lea eax, [esi - 0x10]
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ea0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ec8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x405f26
call fcn.00414d29
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.004033d0
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x44], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x44], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8