Function at 0x406938
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x278
mov eax, 0x5bbead
call fcn.005870c4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x24c], ebx
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x248], esi
mov edi, edx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 1
call fcn.0040813b
push 0x691948
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x24c], 1
call fcn.004081bf
cmp dword [edi + 0x18], 8
jb 0x4069b0
mov eax, dword [edi + 4]
jmp 0x4069b3
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004081bf
push 0x691958
lea eax, [ebp - 0x234]
push eax
call fcn.004081bf
mov eax, dword [ebp - 0x240]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x234]
call fcn.004097db
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x244], 0x104
mov dword [ebp - 0x238], ebx
jae 0x406a0a
lea eax, [ebp - 0x230]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x23c]
push ecx
push 0x20019
push ebx
push eax
push connect
call esi
test eax, eax
jne 0x406af2
push dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp - 0x240]
push dword [ebp - 0x23c]
call fcn.0040e469
mov byte [ebp - 4], 2
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
push ebx
push ebx
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406c18
cmp dword [ebp - 0x238], 1
je 0x406a89
cmp dword [ebp - 0x238], 2
jne 0x406c18
mov eax, dword [ebp - 0x244]
shr eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x268]
call fcn.0040814e
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x406ab3
mov eax, dword [eax + 4]
jmp 0x406ab6
add eax, 4
push eax
lea edi, [ebp - 0x284]
call fcn.00404bf7
pop ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x248]
push 0xffffffffffffffff
push ebx
call fcn.00409918
mov byte [ebp - 4], 3
push ebx
push 1
mov esi, edi
call fcn.00409bf1
mov byte [ebp - 4], 2
lea esi, [ebp - 0x268]
jmp 0x406c10
push 6
pop eax
mov ecx, 0x69195c
lea edx, [ebp - 0x234]
call fcn.004099a4
push 0xffffffffffffffff
push ebx
mov eax, edi
lea ecx, [ebp - 0x234]
call fcn.004097db
push 0x69196c
lea eax, [ebp - 0x234]
push eax
call fcn.004081bf
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x406b3b
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x23c]
push ecx
push 0x20019
push ebx
push eax
push connect
call esi
test eax, eax
jne 0x406c31
push dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp - 0x240]
push dword [ebp - 0x23c]
call fcn.0040e469
mov byte [ebp - 4], 5
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
push ebx
push ebx
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406c18
cmp dword [ebp - 0x238], 1
je 0x406bac
cmp dword [ebp - 0x238], 2
jne 0x406c18
mov eax, dword [ebp - 0x244]
shr eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x284]
call fcn.0040814e
mov byte [ebp - 4], 6
cmp dword [eax + 0x18], 8
jb 0x406bd6
mov eax, dword [eax + 4]
jmp 0x406bd9
add eax, 4
push eax
lea edi, [ebp - 0x268]
call fcn.00404bf7
pop ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x248]
push 0xffffffffffffffff
push ebx
call fcn.00409918
mov byte [ebp - 4], 6
push ebx
push 1
mov esi, edi
call fcn.00409bf1
mov byte [ebp - 4], 5
lea esi, [ebp - 0x284]
push ebx
push 1
call fcn.00409bf1
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x240]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], bl
push ebx
push 1
lea esi, [ebp - 0x234]
call fcn.00409bf1
mov eax, dword [ebp - 0x248]
call fcn.00587147
ret