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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
push ebx
push esi
push edi
mov dword [ebp - 0x218], 0
mov dword [ebp - 0xc], 0
cmp dword [0x461140], 0
jne 0x407212
mov dword [0x461140], 0xb
mov edi, 0xb60500
xor eax, eax
mov ecx, 0x1e
rep stosd dword es:[edi], eax
mov edi, 0xb60580
xor eax, eax
mov ecx, 0x3c
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
push 0x4611c0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x407596
mov dword [ebp - 8], 0
mov dword [ebp - 0x218], 0
cmp dword [ebp - 8], 0
jne 0x407589
mov byte [ebp - 0x864], 0
mov dword [ebp - 4], 0x320
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x864]
push eax
mov eax, dword [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 8], eax
inc dword [ebp - 0x218]
cmp dword [ebp - 8], 0
jne 0x407584
lea eax, [ebp - 0x540]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x864]
push eax
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x407584
mov dword [ebp - 0x544], 4
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x544]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x461200
mov eax, dword [ebp - 0x540]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407308
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x214]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
mov dword [ebp - 0x544], 0x1ff
lea eax, [ebp - 0x544]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x461210
mov eax, dword [ebp - 0x540]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4073a6
lea eax, [ebp - 0x214]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
mov dword [ebp - 0x544], 0x1ff
lea eax, [ebp - 0x544]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x461220
mov eax, dword [ebp - 0x540]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4073a6
movsx eax, byte [ebp - 0x214]
test eax, eax
je 0x4073f2
lea eax, [ebp - 0x214]
push eax
call fcn.00407e86
add esp, 4
test eax, eax
je 0x4073f2
cmp dword [0x45e03c], 0
je 0x4073ed
lea eax, [ebp - 0x214]
push eax
push 0x46122c
call fcn.00452380
add esp, 8
jmp 0x407570
movsx eax, byte [ebp - 0x214]
test eax, eax
je 0x407570
lea eax, [ebp - 0x53c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.00407034
add esp, 8
cmp dword [0x45e03c], 0
je 0x40746b
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x214]
push eax
push str._r_nACTIVE_NETCFG___s____s__VPN__d_
call fcn.00452380
add esp, 0x10
cmp dword [ebp - 0x10], 0
jne 0x4074e5
push 0x461288
lea eax, [ebp - 0x53c]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x4074e5
push 0x461294
lea eax, [ebp - 0x53c]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x4074e5
push 0x4612a0
lea eax, [ebp - 0x53c]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x4074e5
push 0x4612b0
lea eax, [ebp - 0x53c]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x407570
mov dword [0x461140], 3
mov byte [ebp - 0x19c], 0
inc dword [ebp - 0xc]
lea edi, [ebp - 0x214]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov edi, 0xb60500
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x53c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov edi, 0xb60580
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [0x45e03c], 0
je 0x407570
push 0xb60500
mov eax, dword [ebp - 0xc]
push eax
push str._r_n__d_ESTABLISHING_BIND_OVERRIDE___s_
call fcn.00452380
add esp, 0xc
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x540]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40724e
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
jne 0x4075bc
mov edi, 0xb60500
xor eax, eax
mov ecx, 0x1e
rep stosd dword es:[edi], eax
mov edi, 0xb60580
xor eax, eax
mov ecx, 0x3c
rep stosd dword es:[edi], eax
xor eax, eax
jmp 0x4075c3
pop edi
pop esi
pop ebx
leave
ret