Function at 0x40e8e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ed85
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x5d2fec]
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
mov edi, ecx
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 4], 0
or ebx, 0xffffffff
mov dword [ebp - 0x450], 0x20019
mov dword [ebp - 0x454], 0
mov esi, 0x5af8f0
call fcn.00417ce3
test eax, eax
je 0x40eff5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 1
test esi, 0xffff0000
jne 0x40e97e
movzx esi, si
push esi
call fcn.00419421
test eax, eax
je 0x40e990
push esi
push eax
lea ecx, [ebp - 0x42c]
call fcn.004066a0
jmp 0x40e990
push 0
push 0x5af8f0
lea ecx, [ebp - 0x42c]
call fcn.00406bd0
push ecx
mov ecx, esp
mov byte [ebp - 4], 2
push edi
mov dword [ebp - 0x434], 0
lea esi, [ebp - 0x42c]
mov dword [ebp - 0x448], ecx
call fcn.004069a0
mov edx, esi
lea ecx, [ebp - 0x434]
call fcn.004047c0
mov ecx, esp
mov byte [ebp - 4], 3
lea eax, [ebp - 0x434]
mov dword [ebp - 0x448], ecx
push eax
call fcn.004069a0
call fcn.00404900
mov edi, dword [ebp - 0x42c]
add esp, 4
mov esi, eax
cmp dword [edi - 0xc], 0
jge 0x40e9f3
or ecx, 0xffffffff
jmp 0x40ea10
push str.Wow6432Node_
push edi
call fcn.00550fb4
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x40ea0c
or ecx, 0xffffffff
jmp 0x40ea10
sub ecx, edi
sar ecx, 1
mov edx, dword [ebp - 0x450]
lea eax, [ebp - 0x444]
or edx, 0x100
test ecx, ecx
push eax
cmovns edx, dword [ebp - 0x450]
push edx
push 0
push edi
push esi
mov dword [ebp - 0x450], edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x20a
mov esi, eax
mov dword [ebp - 0x448], 0
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00551910
add esp, 0xc
mov dword [ebp - 0x430], 0x20a
test esi, esi
jne 0x40ef59
call fcn.00417ce3
test eax, eax
je 0x40eff5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x438], esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40ef32
mov edi, dword [ebp - 0x448]
lea eax, [ebp - 0x21c]
inc edi
push eax
lea eax, [ebp - 0x438]
push 0x5af300
push eax
call fcn.00406ff0
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00551910
push 0x20a
lea eax, [ebp - 0x428]
mov dword [ebp - 0x430], 0x20a
push 0
push eax
call fcn.00551910
mov esi, dword [ebp - 0x438]
lea eax, [ebp - 0x43c]
add esp, 0x24
mov dword [ebp - 0x43c], 0x20a
mov dword [ebp - 0x440], 2
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x440]
push eax
push 0
push esi
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ef01
lea ecx, [ebp - 0x480]
call fcn.0040c890
mov byte [ebp - 4], 5
lea ecx, [esi - 0x10]
mov ebx, dword [ebp - 0x480]
add ebx, 0xfffffff0
cmp ecx, ebx
je 0x40ebc7
cmp dword [ebx + 0xc], 0
jl 0x40ebb8
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x40ebb8
push ecx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x448], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ebad
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x448]
add eax, 0x10
mov dword [ebp - 0x480], eax
jmp 0x40ebc7
push dword [esi - 0xc]
lea ecx, [ebp - 0x480]
push esi
call fcn.00406bd0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x47c]
push 0x5af300
push eax
call fcn.00406ff0
mov ecx, dword [ebp - 0x47c]
add esp, 0xc
mov eax, 0x5af8f0
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40ec16
test dx, dx
je 0x40ec12
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40ec16
add ecx, 4
add eax, 4
test dx, dx
jne 0x40ebf0
xor eax, eax
jmp 0x40ec1b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x40ec3b
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 4
call fcn.0040ca30
or ebx, 0xffffffff
jmp 0x40ef01
mov edx, dword [ebp - 0x47c]
mov ebx, dword [ebp - 0x464]
add ebx, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x40eca3
cmp dword [ebx + 0xc], 0
jl 0x40ec94
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x40ec94
push ecx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x448], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ec89
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x448]
add eax, 0x10
mov dword [ebp - 0x464], eax
jmp 0x40eca3
push dword [edx - 0xc]
lea ecx, [ebp - 0x464]
push edx
call fcn.00406bd0
push ecx
mov ecx, esp
lea eax, [ebp - 0x47c]
push eax
mov dword [ebp - 0x448], ecx
call fcn.004069a0
lea ecx, [ebp - 0x484]
call fcn.004031f0
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov ebx, dword [ebp - 0x47c]
add ebx, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x40ed2e
cmp dword [ebx + 0xc], 0
jl 0x40ed1f
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x40ed1f
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x448], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ed14
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x448]
add eax, 0x10
mov dword [ebp - 0x47c], eax
jmp 0x40ed2e
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x47c]
call fcn.00406bd0
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x484]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ed50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x44c]
mov ebx, dword [ebp - 0x460]
add ebx, 0xfffffff0
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x40edba
cmp dword [ebx + 0xc], 0
jl 0x40edab
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x40edab
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x448], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40eda0
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x448]
add eax, 0x10
mov dword [ebp - 0x460], eax
jmp 0x40edba
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x460]
call fcn.00406bd0
lea ecx, [ebp - 0x480]
call fcn.004136a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x46c]
lea edx, [eax - 0x10]
lea ebx, [ecx - 0x10]
cmp edx, ebx
je 0x40ee2a
cmp dword [ebx + 0xc], 0
jl 0x40ee1b
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x40ee1b
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x448], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ee10
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x448]
add eax, 0x10
mov dword [ebp - 0x46c], eax
jmp 0x40ee2a
push dword [eax - 0xc]
lea ecx, [ebp - 0x46c]
push eax
call fcn.00406bd0
push ecx
mov ecx, esp
lea eax, [ebp - 0x47c]
push eax
mov dword [ebp - 0x448], ecx
call fcn.004069a0
lea ecx, [ebp - 0x488]
call fcn.004045b0
add esp, 4
mov byte [ebp - 4], 7
mov ecx, dword [eax]
mov ebx, dword [ebp - 0x45c]
add ebx, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x40eeb5
cmp dword [ebx + 0xc], 0
jl 0x40eea6
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x40eea6
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x448], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ee9b
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x448]
add eax, 0x10
mov dword [ebp - 0x45c], eax
jmp 0x40eeb5
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x45c]
call fcn.00406bd0
mov byte [ebp - 4], 5
or ebx, 0xffffffff
mov edx, dword [ebp - 0x488]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40eed9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 0x2c
lea eax, [ebp - 0x480]
mov ecx, esp
push eax
call fcn.0040d1a0
call fcn.0040f000
add esp, 0x2c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x480]
call fcn.0040ca30
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40eac4
mov edi, dword [ebp - 0x42c]
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ef59
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x434]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ef7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40ef95
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x454]
mov edi, dword [ebp - 0x44c]
inc esi
add edi, 4
mov dword [ebp - 0x454], esi
mov dword [ebp - 0x44c], edi
cmp esi, 4
jl 0x40e934
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40efd9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0054e73a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407010
int3