Function at 0x406707
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xbc
mov eax, 0x42da34
call fcn.0040fd23
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x98], ecx
xor ebx, ebx
mov byte [ebp - 0x85], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xac], eax
mov dword [ebp - 4], ebx
mov esi, 0x44e018
mov dword [ebp - 0xb0], esi
mov ecx, esi
mov eax, dword [0x44e018]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xb8]
push eax
mov ecx, 0x44f04c
call fcn.00405dd0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xc0], eax
mov al, byte [ebp - 0xb4]
mov byte [ebp - 0xbc], al
movzx ecx, bl
test al, al
push 1
pop edi
cmovne ecx, edi
mov dword [ebp - 0x90], ecx
mov byte [ebp - 0x85], cl
mov byte [ebp - 4], bl
mov ecx, esi
mov eax, dword [0x44e018]
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x90]
jmp 0x4067e4
test cl, cl
je 0x406aec
mov al, bl
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x85], al
mov dword [ebp - 4], 3
or dword [ebp - 4], 0xffffffff
jmp 0x406833
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x90], ebx
push 0x53
pop eax
mov word [ebp - 0x54], ax
push 0x4f
pop eax
mov word [ebp - 0x52], ax
push 0x46
pop eax
mov word [ebp - 0x50], ax
push 0x54
pop edx
mov word [ebp - 0x4e], dx
push 0x57
pop ecx
mov word [ebp - 0x4c], cx
push 0x41
pop eax
mov word [ebp - 0x4a], ax
push 0x52
pop eax
mov word [ebp - 0x48], ax
push 0x45
pop eax
mov word [ebp - 0x46], ax
push 0x5c
pop eax
mov word [ebp - 0x44], ax
mov word [ebp - 0x42], cx
push 0x69
pop eax
mov word [ebp - 0x40], ax
push 0x6c
pop eax
mov word [ebp - 0x3e], ax
push 0x64
pop eax
mov word [ebp - 0x3c], ax
mov word [ebp - 0x3a], dx
push 0x61
pop eax
mov word [ebp - 0x38], ax
push 0x6e
pop eax
mov word [ebp - 0x36], ax
push 0x67
pop edx
mov word [ebp - 0x34], dx
push 0x65
pop ecx
mov word [ebp - 0x32], cx
mov word [ebp - 0x30], ax
push 0x74
pop eax
mov word [ebp - 0x2e], ax
push 0x5c
pop eax
mov word [ebp - 0x2c], ax
push 0x44
pop eax
mov word [ebp - 0x2a], ax
mov word [ebp - 0x28], cx
push 0x62
pop eax
mov word [ebp - 0x26], ax
push 0x75
pop eax
mov word [ebp - 0x24], ax
mov word [ebp - 0x22], dx
mov word [ebp - 0x20], dx
push 0x69
pop eax
mov word [ebp - 0x1e], ax
push 0x6e
pop eax
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], dx
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x94]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x54]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406aae
mov dword [ebp - 0x8c], 4
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push 0x438b84
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0xa0], 0
je 0x406a52
mov dword [ebp - 0xa4], edi
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 4]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 6
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x98], eax
cmp dword [eax + 0x14], 8
jb 0x4069b3
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
push eax
push str._n_s_n_n_n_n__Click_OK_to_proceed_or_Cancel_to_Debug.
lea eax, [ebp - 0x6c]
push eax
call fcn.0040aeb5
add esp, 0xc
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 7
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
cmp dword [eax + 0x14], 8
jb 0x4069e9
mov eax, dword [eax]
mov dword [ebp - 0xb0], eax
push 0x31
push str.Exception_Thrown:
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6c]
call fcn.00402846
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x84]
call fcn.00402846
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x9c]
jmp 0x406a3f
movzx eax, al
cmp dword [ebp - 0xa4], 2
cmove eax, edi
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x8c], 4
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push str.ForceBreak
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x9c]
movzx ebx, al
cmp dword [ebp - 0x90], 0
cmovne ebx, edi
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x94], 0
test bl, bl
je 0x406aae
int3
mov dword [ebp - 4], 9
mov dword [ebp - 0xb4], esi
mov ecx, esi
mov eax, dword [0x44e018]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xac]
push eax
mov ecx, 0x44f04c
call fcn.00406fbd
mov byte [ebp - 4], 9
mov ecx, esi
mov eax, dword [0x44e018]
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
call fcn.0040fc70
ret