Function at 0x406740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448f5c
mov eax, dword fs:[0]
push eax
mov eax, 0x12dc
call fcn.0042aac0
mov eax, dword [0x466124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1278]
xor ebx, ebx
push eax
push 0x20019
push ebx
sub esp, 0x18
mov dword [ebp - 0x1280], ebx
mov ecx, esp
mov dword [ebp - 0x1278], connect
push 0x466f0c
call fcn.004233e0
lea ecx, [ebp - 0x1258]
call fcn.004061f0
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x4067b6
mov eax, dword [eax]
push eax
push dword [ebp - 0x1278]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x1244]
test eax, eax
sete al
mov byte [ebp - 0x1279], al
cmp edx, 0x10
jb 0x40680e
mov ecx, dword [ebp - 0x1258]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4067fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406d80
push edx
push ecx
call fcn.0042a0d6
mov al, byte [ebp - 0x1279]
add esp, 8
test al, al
je 0x406d64
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042b6f0
add esp, 0xc
mov dword [ebp - 0x1240], 0x104
lea eax, [ebp - 0x1274]
mov dword [ebp - 0x123c], ebx
mov dword [ebp - 0x1234], 0x1000
push eax
lea eax, [ebp - 0x125c]
push eax
lea eax, [ebp - 0x1260]
push eax
lea eax, [ebp - 0x1264]
push eax
lea eax, [ebp - 0x1238]
push eax
lea eax, [ebp - 0x1268]
push eax
lea eax, [ebp - 0x126c]
push eax
lea eax, [ebp - 0x123c]
push eax
push 0
lea eax, [ebp - 0x1240]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x1278]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x1238]
test eax, eax
je 0x406d58
xor edi, edi
test eax, eax
je 0x406d58
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1234]
mov dword [ebp - 0x1234], 0x1000
push eax
lea eax, [ebp - 0x1218]
mov byte [ebp - 0x1218], 0
push eax
push edi
push dword [ebp - 0x1278]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x406d4b
mov dword [ebp - 0x1258], eax
mov dword [ebp - 0x1248], eax
mov byte [ebp - 0x1258], al
lea eax, [ebp - 0x1218]
mov dword [ebp - 0x1244], 0xf
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406913
sub eax, edx
lea ecx, [ebp - 0x1258]
push eax
lea eax, [ebp - 0x1218]
push eax
call fcn.004242f0
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1258]
mov dword [ebp - 0x1280], esp
mov ecx, esp
push eax
call fcn.004233e0
sub esp, 0x18
mov byte [ebp - 4], 1
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x466f0c
call fcn.004233e0
mov ecx, esi
call fcn.004061f0
add esp, 0x18
mov byte [ebp - 4], 0
mov edx, connect
lea ecx, [ebp - 0x1230]
call fcn.00406320
add esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0x4678e0
call fcn.004233e0
lea ecx, [ebp - 0x12e4]
call fcn.004061f0
add esp, 0x18
mov byte [ebp - 4], 3
or ebx, 1
cmp dword [eax + 0x14], 0x10
mov edx, eax
mov dword [ebp - 0x1280], ebx
jb 0x4069bb
mov edx, dword [eax]
push dword [eax + 0x10]
cmp dword [ebp - 0x121c], 0x10
lea ecx, [ebp - 0x1230]
push edx
cmovae ecx, dword [ebp - 0x1230]
mov edx, dword [ebp - 0x1220]
call fcn.00425c70
add esp, 8
test al, al
jne 0x406b0a
sub esp, 0x18
mov ecx, esp
push 0x4672e4
call fcn.004233e0
lea ecx, [ebp - 0x12cc]
call fcn.004061f0
add esp, 0x18
mov dword [ebp - 4], 4
or ebx, 2
cmp dword [eax + 0x14], 0x10
mov edx, eax
mov dword [ebp - 0x1280], ebx
jb 0x406a20
mov edx, dword [eax]
push dword [eax + 0x10]
cmp dword [ebp - 0x121c], 0x10
lea ecx, [ebp - 0x1230]
push edx
cmovae ecx, dword [ebp - 0x1230]
mov edx, dword [ebp - 0x1220]
call fcn.00425c70
add esp, 8
test al, al
jne 0x406b0a
sub esp, 0x18
mov ecx, esp
push 0x4674f4
call fcn.004233e0
lea ecx, [ebp - 0x12b4]
call fcn.004061f0
add esp, 0x18
mov dword [ebp - 4], 5
or ebx, 4
cmp dword [eax + 0x14], 0x10
mov edx, eax
mov dword [ebp - 0x1280], ebx
jb 0x406a85
mov edx, dword [eax]
push dword [eax + 0x10]
cmp dword [ebp - 0x121c], 0x10
lea ecx, [ebp - 0x1230]
push edx
cmovae ecx, dword [ebp - 0x1230]
mov edx, dword [ebp - 0x1220]
call fcn.00425c70
add esp, 8
test al, al
jne 0x406b0a
sub esp, 0x18
mov ecx, esp
push 0x46762c
call fcn.004233e0
lea ecx, [ebp - 0x129c]
call fcn.004061f0
add esp, 0x18
or ebx, 8
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x406ad9
mov edx, dword [eax]
push dword [eax + 0x10]
cmp dword [ebp - 0x121c], 0x10
lea ecx, [ebp - 0x1230]
push edx
cmovae ecx, dword [ebp - 0x1230]
mov edx, dword [ebp - 0x1220]
call fcn.00425c70
add esp, 8
mov byte [ebp - 0x1279], 0
test al, al
je 0x406b11
mov byte [ebp - 0x1279], 1
test bl, 8
je 0x406b6e
mov edx, dword [ebp - 0x1288]
and ebx, 0xfffffff7
cmp edx, 0x10
jb 0x406b53
mov ecx, dword [ebp - 0x129c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406b49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406d80
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0x128c], 0
mov dword [ebp - 0x1288], 0xf
mov byte [ebp - 0x129c], 0
mov dword [ebp - 4], 4
test bl, 4
je 0x406bd2
mov edx, dword [ebp - 0x12a0]
and ebx, 0xfffffffb
cmp edx, 0x10
jb 0x406bb7
mov ecx, dword [ebp - 0x12b4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406bad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406d80
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0x12a4], 0
mov dword [ebp - 0x12a0], 0xf
mov byte [ebp - 0x12b4], 0
mov dword [ebp - 4], 3
test bl, 2
je 0x406c36
mov edx, dword [ebp - 0x12b8]
and ebx, 0xfffffffd
cmp edx, 0x10
jb 0x406c1b
mov ecx, dword [ebp - 0x12cc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406c11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406d80
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0x12bc], 0
mov dword [ebp - 0x12b8], 0xf
mov byte [ebp - 0x12cc], 0
mov dword [ebp - 4], 2
test bl, 1
je 0x406c9a
mov edx, dword [ebp - 0x12d0]
and ebx, 0xfffffffe
cmp edx, 0x10
jb 0x406c7f
mov ecx, dword [ebp - 0x12e4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406c75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406d80
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0x12d4], 0
mov dword [ebp - 0x12d0], 0xf
mov byte [ebp - 0x12e4], 0
movzx eax, byte [0x469bd5]
mov ecx, 1
cmp byte [ebp - 0x1279], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x121c]
cmovne eax, ecx
mov byte [0x469bd5], al
cmp edx, 0x10
jb 0x406cf3
mov ecx, dword [ebp - 0x1230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406ce9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406d80
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1244]
mov dword [ebp - 0x1220], 0
mov dword [ebp - 0x121c], 0xf
mov byte [ebp - 0x1230], 0
cmp edx, 0x10
jb 0x406d4b
mov ecx, dword [ebp - 0x1258]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406d41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406d80
push edx
push ecx
call fcn.0042a0d6
add esp, 8
inc edi
cmp edi, dword [ebp - 0x1238]
jb 0x4068b2
push dword [ebp - 0x1278]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429a60
mov esp, ebp
pop ebp
ret
call fcn.0042f0c9
int3