Function at 0x40696d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x278
mov eax, 0x5b50a0
call fcn.00580bb4
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.00408150
push 0x68a290
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x24c], 1
call fcn.004081d4
cmp dword [edi + 0x18], 8
jb 0x4069e5
mov eax, dword [edi + 4]
jmp 0x4069e8
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004081d4
push 0x68a2a0
lea eax, [ebp - 0x234]
push eax
call fcn.004081d4
mov eax, dword [ebp - 0x240]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x234]
call fcn.004097a9
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x244], 0x104
mov dword [ebp - 0x238], ebx
jae 0x406a3f
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 closesocket
call esi
test eax, eax
jne 0x406b27
push dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp - 0x240]
push dword [ebp - 0x23c]
call fcn.0040e3a7
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 0x406c4d
cmp dword [ebp - 0x238], 1
je 0x406abe
cmp dword [ebp - 0x238], 2
jne 0x406c4d
mov eax, dword [ebp - 0x244]
shr eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x268]
call fcn.00408163
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x406ae8
mov eax, dword [eax + 4]
jmp 0x406aeb
add eax, 4
push eax
lea edi, [ebp - 0x284]
call fcn.00404bfd
pop ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x248]
push 0xffffffffffffffff
push ebx
call fcn.004098e6
mov byte [ebp - 4], 3
push ebx
push 1
mov esi, edi
call fcn.00409bbf
mov byte [ebp - 4], 2
lea esi, [ebp - 0x268]
jmp 0x406c45
push 6
pop eax
mov ecx, 0x68a2a4
lea edx, [ebp - 0x234]
call fcn.00409972
push 0xffffffffffffffff
push ebx
mov eax, edi
lea ecx, [ebp - 0x234]
call fcn.004097a9
push 0x68a2b4
lea eax, [ebp - 0x234]
push eax
call fcn.004081d4
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x406b70
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x23c]
push ecx
push 0x20019
push ebx
push eax
push closesocket
call esi
test eax, eax
jne 0x406c66
push dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp - 0x240]
push dword [ebp - 0x23c]
call fcn.0040e3a7
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 0x406c4d
cmp dword [ebp - 0x238], 1
je 0x406be1
cmp dword [ebp - 0x238], 2
jne 0x406c4d
mov eax, dword [ebp - 0x244]
shr eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x284]
call fcn.00408163
mov byte [ebp - 4], 6
cmp dword [eax + 0x18], 8
jb 0x406c0b
mov eax, dword [eax + 4]
jmp 0x406c0e
add eax, 4
push eax
lea edi, [ebp - 0x268]
call fcn.00404bfd
pop ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x248]
push 0xffffffffffffffff
push ebx
call fcn.004098e6
mov byte [ebp - 4], 6
push ebx
push 1
mov esi, edi
call fcn.00409bbf
mov byte [ebp - 4], 5
lea esi, [ebp - 0x284]
push ebx
push 1
call fcn.00409bbf
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.00409bbf
mov eax, dword [ebp - 0x248]
call fcn.00580c37
ret