Function at 0x406aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, ecx
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 8]
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], esi
cmp dword [edx], edi
je 0x406d88
test eax, eax
je 0x406d88
test ecx, ecx
je 0x406d88
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea esi, [edx + 4]
push eax
mov ecx, esi
call fcn.00407720
test eax, eax
je 0x406ba2
mov ecx, dword [ebp - 0x44]
mov eax, dword [eax + 4]
mov dword [ecx], eax
cmp dword [ebp - 0x48], edi
je 0x406d8d
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
call fcn.00402ed0
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 0x20]
call fcn.004072b0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x406b83
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406b79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406dad
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov eax, dword [ebp - 0x38]
cmp eax, dword [esi + 0x20]
je 0x406b98
mov ecx, dword [ebp - 0x48]
mov eax, dword [eax + 0x28]
mov dword [ecx], eax
jmp 0x406d8d
mov edi, 0x80010080
jmp 0x406d8d
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
mov eax, dword [ebp - 0x40]
push 0
push edi
mov dword [ebp - 0x34], 0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406b98
push dword [ebp - 0x34]
call fcn.0055074c
add esp, 4
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x40]
push 0
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406b98
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x38]
mov dword [ecx], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
push edi
call fcn.00407720
mov edi, eax
test edi, edi
jne 0x406cfd
mov eax, dword [esi + 4]
test eax, eax
jne 0x406c74
mov edi, dword [esi + 8]
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055074c
mov ecx, eax
add esp, 4
mov dword [esi + 4], ecx
test ecx, ecx
je 0x406db2
lea eax, [edi*4]
push eax
push 0
push ecx
call fcn.00571c00
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [esi + 8], edi
test eax, eax
je 0x406db7
cmp dword [esi + 0x10], 0
jne 0x406cb1
push 0x10
push dword [esi + 0x18]
lea eax, [esi + 0x14]
push eax
call fcn.00551731
mov ecx, dword [esi + 0x18]
mov edx, eax
mov eax, ecx
shl eax, 4
add eax, 0xfffffff8
add edx, eax
add ecx, 0xffffffff
js 0x406cb1
nop dword [eax]
mov eax, dword [esi + 0x10]
mov dword [edx + 8], eax
mov dword [esi + 0x10], edx
sub edx, 0x10
sub ecx, 1
jns 0x406ca0
mov edi, dword [esi + 0x10]
test edi, edi
je 0x406dbc
mov eax, dword [edi + 8]
xorps xmm0, xmm0
push dword [ebp - 0x3c]
movups xmmword [edi], xmm0
mov dword [edi + 8], eax
mov ecx, edi
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
inc dword [esi + 0xc]
mov dword [esi + 0x10], eax
call fcn.00403320
mov eax, dword [ebp - 0x44]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x50]
lea ecx, [eax*4]
mov eax, dword [esi + 4]
mov eax, dword [ecx + eax]
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov dword [ecx + eax], edi
mov edx, dword [ebp - 0x3c]
mov ecx, edx
mov eax, dword [ebp - 0x38]
mov dword [edi + 4], eax
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
lea esi, [ecx + 2]
mov word [ebp - 0x30], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d20
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.004035d0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea ecx, [ecx + 0x20]
call fcn.00407670
lea ecx, [ebp - 0x30]
call fcn.00403570
mov ecx, dword [ebp - 0x48]
xor edi, edi
test ecx, ecx
je 0x406d8d
mov eax, dword [ebp - 0x34]
mov dword [ecx], eax
jmp 0x406d8d
mov edi, 0x80010001
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0xc
call fcn.00574908
call fcn.005511b9
call fcn.005511b9
call fcn.005511b9
int3