Function at 0x42a3a5
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 0x42a78b
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 0x42a779
lea eax, [ebp - 0x144]
push ecx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x448e81
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 0x42a761
test eax, eax
jne 0x42a756
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 0x42a756
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 0x42a534
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 0x42a5a1
jmp 0x42a756
cmp dword [ebp - 0x618], 1
jne 0x42a4ff
push esi
push esi
push dword [0x43dbe0]
push ebx
call fcn.004034dd
add esp, 0x10
test eax, eax
je 0x42a4ff
cmp eax, ebx
jne 0x42a595
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 0x42a5c7
jmp 0x42a756
cmp byte [eax - 1], 0x5c
jne 0x42a4ff
jmp 0x42a556
cmp dword [ebp - 0x618], 1
jne 0x42a756
push eax
push eax
push str.TAP_Windows
push ebx
call fcn.004034dd
add esp, 0x10
test eax, eax
jne 0x42a556
jmp 0x42a756
cmp dword [ebp - 0x618], 1
jne 0x42a756
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 0x42a756
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 0x42a756
cmp dword [ebp - 0x618], 1
jne 0x42a756
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 + 0x479a8c]
test eax, eax
jne 0x42a718
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x634]
cmp dword [eax*4 + 0x479968], edx
jne 0x42a750
mov edi, esi
cld
xor al, al
xor ecx, ecx
test edi, edi
je 0x42a6d3
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.0042d128
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [eax*4 + 0x479a8c], edi
test edi, edi
je 0x42a700
test esi, esi
je 0x42a700
cld
lodsb al, byte [esi]
stosb byte es:[edi], al
or al, al
jne 0x42a6fa
mov eax, dword [ebp + 0xc]
mov ecx, 0x100
lea edx, [ebp - 0x444]
call fcn.0042a12c
add esp, 0x10
jmp 0x42a744
cmp byte [eax], 0
je 0x42a6ac
push edx
push edx
push eax
push esi
call fcn.0040341a
add esp, 0x10
test eax, eax
jne 0x42a6ac
mov eax, dword [ebp + 0xc]
mov ecx, 0x100
lea edx, [ebp - 0x444]
call fcn.0042a12c
mov dword [ebp - 0x62c], 1
jmp 0x42a761
inc dword [ebp - 0x634]
inc dword [ebp - 0x630]
jmp 0x42a454
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