Function at 0x406680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
push ebx
push esi
push edi
push 0x47408c
lea eax, [ebp - 0x88]
push eax
call fcn.0041d13c
add esp, 8
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x4066cd
push 0x4740b0
lea eax, [ebp - 0x88]
push eax
call fcn.0041d138
add esp, 8
call fcn.0040d608
mov dword [ebp - 8], eax
jmp 0x4066fa
mov eax, dword [ebp + 0x10]
cmp dword [eax], 1
jne 0x4066fa
push str.VxdHasp95
lea eax, [ebp - 0x88]
push eax
call fcn.0041d138
add esp, 8
push 3
call fcn.00413f18
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x118], 0
cmp dword [ebp + 0xc], 0x2b0
jbe 0x40672b
test byte [ebp - 8], 2
je 0x40672b
mov eax, dword [ebp + 8]
mov dword [eax + 0x118], 2
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x88]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x406792
cmp dword [ebp - 0x28c], 2
jne 0x406769
jmp 0x40678d
push 0x2002000
call fcn.0040648e
add esp, 4
push 0x10001
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x406f72
jmp 0x406f4a
mov eax, dword [ebp + 8]
or dword [eax + 0x118], 1
mov dword [ebp - 4], pe_nt_image_headers32
push 0x4740c4
lea eax, [ebp - 0x310]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x288]
push eax
push 0
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x406800
push 0x4740cc
mov eax, dword [ebp + 8]
push eax
call fcn.0041d13c
add esp, 8
mov dword [ebp - 4], 0x14
push 0x4740d4
lea eax, [ebp - 0x310]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, 0x80
push eax
lea eax, [ebp - 0x288]
push eax
push 0
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x40686e
push 0x4740dc
mov eax, dword [ebp + 8]
add eax, 0x80
push eax
call fcn.0041d13c
add esp, 8
mov dword [ebp - 4], pe_nt_image_headers32
push 0x4740e4
lea eax, [ebp - 0x310]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, 0x120
push eax
lea eax, [ebp - 0x288]
push eax
push 0
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x4068dc
push 0x4740f0
mov eax, dword [ebp + 8]
add eax, 0x120
push eax
call fcn.0041d13c
add esp, 8
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x40692d
cmp dword [ebp - 0x28c], 6
je 0x40692d
push 0x2002000
call fcn.0040648e
add esp, 4
push 0x10002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x406f72
push 0x4740f8
lea eax, [ebp - 0x88]
push eax
call fcn.0041d138
add esp, 8
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x88]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
jne 0x406ea2
mov dword [ebp - 4], pe_nt_image_headers32
push 0x474104
lea eax, [ebp - 0x310]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x390]
push eax
push 0
push 0
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x4069d0
mov eax, dword [ebp + 8]
mov dword [eax + 0x94], 0xffffffff
jmp 0x406a39
push 0x474114
lea eax, [ebp - 0x390]
push eax
call fcn.0041d434
add esp, 8
test eax, eax
jne 0x4069fe
mov eax, dword [ebp + 8]
mov dword [eax + 0x94], 1
jmp 0x406a39
push 0x474118
lea eax, [ebp - 0x390]
push eax
call fcn.0041d434
add esp, 8
test eax, eax
jne 0x406a2c
mov eax, dword [ebp + 8]
mov dword [eax + 0x94], 2
jmp 0x406a39
mov eax, dword [ebp + 8]
mov dword [eax + 0x94], 0xffffffff
mov dword [ebp - 4], pe_nt_image_headers32
push 0x47411c
lea eax, [ebp - 0x310]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, 0x98
push eax
lea eax, [ebp - 0x288]
push eax
push 0
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x406aa7
push 0x47412c
mov eax, dword [ebp + 8]
add eax, 0x98
push eax
call fcn.0041d13c
add esp, 8
mov dword [ebp - 4], pe_nt_image_headers32
push 0x474134
lea eax, [ebp - 0x310]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x288]
push eax
push 0
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x406b0f
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], 0xffffffff
jmp 0x406bd4
push 0x474140
lea eax, [ebp - 0x390]
push eax
call fcn.0041d3d4
add esp, 8
test eax, eax
je 0x406b3d
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], 1
jmp 0x406bd4
push 0x474148
lea eax, [ebp - 0x390]
push eax
call fcn.0041d3d4
add esp, 8
test eax, eax
je 0x406b6b
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], 2
jmp 0x406bd4
push 0x47414c
lea eax, [ebp - 0x390]
push eax
call fcn.0041d3d4
add esp, 8
test eax, eax
je 0x406b99
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], 4
jmp 0x406bd4
push 0x474154
lea eax, [ebp - 0x390]
push eax
call fcn.0041d3d4
add esp, 8
test eax, eax
je 0x406bc7
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], 8
jmp 0x406bd4
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], 0xffffffff
cmp dword [ebp + 0xc], 0x2b4
jne 0x406d0e
mov dword [ebp - 4], pe_nt_image_headers32
push 0x47415c
lea eax, [ebp - 0x310]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x288]
push eax
push 0
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x406c49
mov eax, dword [ebp + 8]
mov dword [eax + 0x2b0], 0xffffffff
jmp 0x406d0e
push 0x474168
lea eax, [ebp - 0x390]
push eax
call fcn.0041e370
add esp, 8
test eax, eax
jne 0x406c77
mov eax, dword [ebp + 8]
mov dword [eax + 0x2b0], 3
jmp 0x406d0e
push 0x474178
lea eax, [ebp - 0x390]
push eax
call fcn.0041e370
add esp, 8
test eax, eax
jne 0x406ca5
mov eax, dword [ebp + 8]
mov dword [eax + 0x2b0], 2
jmp 0x406d0e
push 0x474184
lea eax, [ebp - 0x390]
push eax
call fcn.0041e370
add esp, 8
test eax, eax
jne 0x406cd3
mov eax, dword [ebp + 8]
mov dword [eax + 0x2b0], 1
jmp 0x406d0e
push 0x474188
lea eax, [ebp - 0x390]
push eax
call fcn.0041e370
add esp, 8
test eax, eax
jne 0x406d01
mov eax, dword [ebp + 8]
mov dword [eax + 0x2b0], 4
jmp 0x406d0e
mov eax, dword [ebp + 8]
mov dword [eax + 0x2b0], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x406e76
mov dword [ebp - 4], pe_nt_image_headers32
push 0x474190
lea eax, [ebp - 0x310]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x288]
push eax
push 0
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x406d82
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a4], 0xffffffff
jmp 0x406d91
mov eax, dword [ebp - 0x390]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1a4], eax
push 0x474198
lea eax, [ebp - 0x310]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x288]
push eax
push 0
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x406df2
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a8], 0xffffffff
jmp 0x406e01
mov eax, dword [ebp - 0x390]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1a8], eax
push 0x4741a0
lea eax, [ebp - 0x310]
push eax
call fcn.0041d13c
add esp, 8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x288]
push eax
push 0
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x406e62
mov eax, dword [ebp + 8]
mov dword [eax + 0x1ac], 0xffffffff
jmp 0x406e71
mov eax, dword [ebp - 0x390]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1ac], eax
jmp 0x406e9d
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a8], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x1ac], 0xffffffff
jmp 0x406ef9
mov eax, dword [ebp + 8]
mov dword [eax + 0x94], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a0], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a8], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x1ac], 0xffffffff
push 0x4741a8
mov eax, dword [ebp + 8]
add eax, 0x98
push eax
call fcn.0041d13c
add esp, 8
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x406f4a
cmp dword [ebp - 0x28c], 6
je 0x406f4a
push 0x2002000
call fcn.0040648e
add esp, 4
push 0x10002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x406f72
mov eax, dword [ebp + 8]
mov dword [eax + 0x11c], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x1b0], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x230], 0
xor eax, eax
jmp 0x406f72
pop edi
pop esi
pop ebx
leave
ret