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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x624]
push ebx
xor ebx, ebx
sub esp, 0x648
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
call esi
add esp, 0xc
test eax, eax
jne 0x42a92b
sub esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x614]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
call esi
mov dword [ebp - 0x62c], eax
add esp, 0xc
test eax, eax
jne 0x42a919
lea eax, [ebp - 0x144]
push ecx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x449ec1
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x638], eax
mov eax, 0x12c
sub eax, dword [ebp - 0x638]
mov dword [ebp - 0x630], 0
add esp, 0x10
mov dword [ebp - 0x63c], eax
mov eax, dword [ebp - 0x63c]
lea esi, [ebp - 0x144]
lea ebx, [ebp - 0x61c]
push 0
push 0
mov dword [ebp - 0x61c], eax
mov eax, dword [ebp - 0x638]
push 0
add eax, esi
push 0
push ebx
push eax
push dword [ebp - 0x630]
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x42a901
test eax, eax
jne 0x42a8f6
sub esp, 0xc
lea eax, [ebp - 0x620]
push eax
push 0x20019
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
test eax, eax
jne 0x42a8f6
mov dword [ebp - 0x61c], 0x100
lea eax, [ebp - 0x618]
push esi
push esi
push ebx
lea ebx, [ebp - 0x544]
push ebx
push eax
push 0
push str.ComponentId
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop edi
pop edx
test eax, eax
je 0x42a6d4
lea eax, [ebp - 0x61c]
lea ebx, [ebp - 0x544]
push edi
push edi
push eax
lea eax, [ebp - 0x618]
push ebx
push eax
push 0
push str.DriverDesc
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop edx
pop ecx
test eax, eax
je 0x42a741
jmp 0x42a8f6
cmp dword [ebp - 0x618], 1
jne 0x42a69f
push esi
push esi
push dword [0x43dd20]
push ebx
call fcn.004034dd
add esp, 0x10
test eax, eax
je 0x42a69f
cmp eax, ebx
jne 0x42a735
lea edi, [ebp - 0x61c]
push eax
lea esi, [ebp - 0x618]
push eax
lea eax, [ebp - 0x444]
push edi
mov dword [ebp - 0x61c], 0x100
push eax
push esi
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop edx
pop ecx
test eax, eax
je 0x42a767
jmp 0x42a8f6
cmp byte [eax - 1], 0x5c
jne 0x42a69f
jmp 0x42a6f6
cmp dword [ebp - 0x618], 1
jne 0x42a8f6
push eax
push eax
push str.TAP_Windows
push ebx
call fcn.004034dd
add esp, 0x10
test eax, eax
jne 0x42a6f6
jmp 0x42a8f6
cmp dword [ebp - 0x618], 1
jne 0x42a8f6
sub esp, 0xc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x620]
call ebx
lea edx, [ebp - 0x244]
lea eax, [ebp - 0x444]
add esp, 0xc
push eax
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push str._s_sConnection
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x610]
lea edx, [ebp - 0x244]
mov dword [esp], eax
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
test eax, eax
jne 0x42a8f6
push ecx
push ecx
push edi
lea edi, [ebp - 0x344]
push edi
mov dword [ebp - 0x61c], 0x100
push esi
push 0
push str.Name
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push eax
push dword [ebp - 0x610]
call ebx
add esp, 0xc
test esi, esi
jne 0x42a8f6
cmp dword [ebp - 0x618], 1
jne 0x42a8f6
lea esi, [ebp - 0x60c]
push 0
push 0
push 0xc8
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 8]
mov eax, dword [eax*4 + 0x47aa8c]
test eax, eax
jne 0x42a8b8
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x634]
cmp dword [eax*4 + 0x47a968], edx
jne 0x42a8f0
mov edi, esi
cld
xor al, al
xor ecx, ecx
test edi, edi
je 0x42a873
dec ecx
repne scasb al, byte es:[edi]
inc ecx
not ecx
mov dword [ebp - 0x61c], ecx
sub esp, 0xc
add ecx, 2
push ecx
call fcn.0042d4e4
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [eax*4 + 0x47aa8c], edi
test edi, edi
je 0x42a8a0
test esi, esi
je 0x42a8a0
cld
lodsb al, byte [esi]
stosb byte es:[edi], al
or al, al
jne 0x42a89a
mov eax, dword [ebp + 0xc]
mov ecx, 0x100
lea edx, [ebp - 0x444]
call fcn.0042a2cc
add esp, 0x10
jmp 0x42a8e4
cmp byte [eax], 0
je 0x42a84c
push edx
push edx
push eax
push esi
call fcn.0040341a
add esp, 0x10
test eax, eax
jne 0x42a84c
mov eax, dword [ebp + 0xc]
mov ecx, 0x100
lea edx, [ebp - 0x444]
call fcn.0042a2cc
mov dword [ebp - 0x62c], 1
jmp 0x42a901
inc dword [ebp - 0x634]
inc dword [ebp - 0x630]
jmp 0x42a5f4
sub esp, 0xc
push dword [ebp - 0x614]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x62c]
add esp, 0xc
sub esp, 0xc
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret