Function at 0x4080e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4605cf
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x47ccc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
add eax, 1
push eax
call fcn.00410812
add esp, 4
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0
jne 0x40816b
jmp 0x4088f4
mov edx, dword [ebp - 0x24]
add edx, 1
push edx
call fcn.00410812
add esp, 4
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4081ac
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00410807
add esp, 4
jmp 0x4088f4
push str._Default_
lea ecx, [ebp - 0x1c]
call fcn.00406510
mov dword [ebp - 4], 0
push str._value_not_set_
lea ecx, [ebp - 0x30]
call fcn.00406510
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48], 0
je 0x408479
cmp dword [ebp - 0x48], 0xffffffff
je 0x408479
cmp dword [ebp - 0x54], 0
jne 0x408479
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
jmp 0x408208
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x48]
jae 0x408479
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx], 0
mov edx, dword [ebp - 0x34]
mov byte [edx], 0
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x60]
push edx
push 0
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x408474
push 0xc
call fcn.004107d8
add esp, 4
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x4082a3
mov ecx, dword [ebp - 0xa0]
call fcn.004064b0
mov ecx, dword [ebp - 0xa0]
add ecx, 4
call fcn.004064b0
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x180], ecx
jmp 0x4082ad
mov dword [ebp - 0x180], 0
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x68], 0
jne 0x4082c1
jmp 0x4081ff
lea ecx, [ebp - 0x7c]
call fcn.0042af16
mov byte [ebp - 4], 2
cmp dword [ebp - 0x64], 0
jne 0x40839f
mov eax, dword [ebp - 0x50]
push eax
call fcn.00446240
add esp, 4
test eax, eax
jne 0x40839f
cmp dword [ebp - 0x5c], 0
jne 0x408333
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00446240
add esp, 4
test eax, eax
jne 0x408333
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0xe4], edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x68]
call fcn.004068b0
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x68]
add ecx, 4
call fcn.0040ca70
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0xe4]
mov dword [edx + 8], eax
jmp 0x40839a
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.00406510
mov dword [ebp - 0x184], eax
mov edx, dword [ebp - 0x184]
mov dword [ebp - 0xf0], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xf4], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x68]
call fcn.004068b0
mov edx, dword [ebp - 0xf0]
push edx
mov ecx, dword [ebp - 0x68]
add ecx, 4
call fcn.0040ca70
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xf4]
mov dword [eax + 8], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.00406870
jmp 0x408449
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
lea edx, [ebp - 0xa8]
push edx
call fcn.00408910
add esp, 0x10
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0xac]
call fcn.00406510
mov dword [ebp - 0x18c], eax
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x104], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0x68]
call fcn.004068b0
mov edx, dword [ebp - 0x108]
push edx
mov ecx, dword [ebp - 0x68]
add ecx, 4
call fcn.0040ca70
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x10c]
mov dword [eax + 8], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xac]
call fcn.00406870
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa8]
call fcn.00406870
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x118]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0042ceb1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.0042b0cd
jmp 0x4081ff
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0
jne 0x4086cf
mov dword [ebp - 0x40], 1
cmp dword [ebp - 0x20], 1
jg 0x4084a5
jmp 0x4086cf
mov dword [ebp - 0x80], 0
cmp dword [ebp - 0x40], 0
je 0x4086ca
mov edx, dword [ebp - 0x20]
sub edx, 1
cmp dword [ebp - 0x80], edx
jge 0x4086ca
cmp dword [ebp - 0x80], 0
jl 0x4084d6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [eax + 8]
jl 0x4084db
call fcn.0041f3ea
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x80]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x80]
add eax, 1
mov dword [ebp - 0x11c], eax
js 0x408509
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x11c]
cmp edx, dword [ecx + 8]
jl 0x40850e
call fcn.0041f3ea
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x11c]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x88], 0
je 0x4086bc
cmp dword [ebp - 0x84], 0
je 0x4086bc
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, dword [ebp - 0x88]
call fcn.00407ad0
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x124]
push eax
call fcn.00446dd2
add esp, 8
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xad], al
lea ecx, [ebp - 0xb4]
call fcn.00406870
movzx ecx, byte [ebp - 0xad]
test ecx, ecx
je 0x4085b3
mov edx, dword [ebp - 0x80]
add edx, 1
mov dword [ebp - 0x80], edx
jmp 0x4084ac
lea eax, [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0x84]
call fcn.00407ad0
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0x130], ecx
mov byte [ebp - 4], 6
lea edx, [ebp - 0xbc]
push edx
mov ecx, dword [ebp - 0x88]
call fcn.00407ad0
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax]
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call fcn.00446dd2
add esp, 8
xor ecx, ecx
test eax, eax
setg cl
mov byte [ebp - 0xb5], cl
lea ecx, [ebp - 0xbc]
call fcn.00406870
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc0]
call fcn.00406870
movzx edx, byte [ebp - 0xb5]
test edx, edx
je 0x4086bc
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x80], 0
jl 0x40866f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [eax + 8]
jl 0x408674
call fcn.0041f3ea
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x84]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0x80]
add eax, 1
mov dword [ebp - 0x148], eax
js 0x4086a2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x148]
cmp edx, dword [ecx + 8]
jl 0x4086a7
call fcn.0041f3ea
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x88]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp - 0x80]
add ecx, 1
mov dword [ebp - 0x80], ecx
jmp 0x4084ac
jmp 0x408489
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x4c], 0
jne 0x4087ed
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x20]
jge 0x4087ed
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jl 0x408713
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14c]
cmp edx, dword [ecx + 8]
jl 0x408718
call fcn.0041f3ea
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x14c]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x8c], 0
je 0x4087e8
lea edx, [ebp - 0xc4]
push edx
mov ecx, dword [ebp - 0x8c]
call fcn.00407ad0
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x150], ecx
xor edx, edx
cmp dword [ebp - 0x150], 0
setne dl
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x154], edx
jne 0x408798
push 0x80004005
call fcn.00401510
xor eax, eax
jne 0x408774
xor ecx, ecx
jne 0x40879c
mov edx, dword [ebp - 0x15c]
mov eax, dword [edx]
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.004475b6
add esp, 8
mov dword [ebp - 0x160], eax
xor eax, eax
cmp dword [ebp - 0x160], 0
sete al
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc4]
call fcn.00406870
jmp 0x4086dd
cmp dword [ebp - 0x4c], 0
jne 0x4088a9
push 0xc
call fcn.004107d8
add esp, 4
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x40883d
call fcn.0042aa20
push eax
mov ecx, dword [ebp - 0xc8]
call fcn.00405d10
mov ecx, dword [ebp - 0xc8]
add ecx, 4
call fcn.004064b0
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x198], ecx
jmp 0x408847
mov dword [ebp - 0x198], 0
mov edx, dword [ebp - 0x198]
mov dword [ebp - 0x90], edx
cmp dword [ebp - 0x90], 0
je 0x4088a9
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x90]
call fcn.004068b0
mov ecx, dword [ebp - 0x90]
add ecx, 4
mov dword [ebp - 0x174], ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x174]
call fcn.004068b0
mov eax, dword [ebp - 0x90]
mov dword [eax + 8], 1
push 1
mov ecx, dword [ebp - 0x90]
push ecx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0042cee5
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0xcc]
push eax
call fcn.00410807
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0xd0]
push edx
call fcn.00410807
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00406870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00406870
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret