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

Disassembly:
sub esp, 0x218
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlClass4d36e972_e325_11ce_bfc1_08002be10318
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x40b943
xor al, al
pop esi
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
push ebx
push ebp
push edi
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x13c]
push edx
push ebp
mov edi, 0x100
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40ba9e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea esp, [esp]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x134]
push edx
push eax
inc ebp
call esi
test eax, eax
jne 0x40ba71
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push eax
push str.NdiInterfaces
push edx
call esi
test eax, eax
jne 0x40ba66
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push str.LowerRange
push eax
mov dword [esp + 0x28], edi
call ebx
test eax, eax
jne 0x40ba50
mov edi, str.ethernet
lea esi, [esp + 0x28]
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40ba50
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push str.DriverDesc
push eax
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x40ba50
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040b840
mov esi, dword [esp + 0x20]
mov edi, str.TAP_Win32_Adapter_V8
mov ecx, 0x15
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40bab6
lea ecx, [esp + 0x20]
call fcn.0040ab20
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 0x100
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x13c]
push eax
push ebp
push ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40b980
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop ebx
xor al, al
pop esi
add esp, 0x218
ret
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.NetCfgInstanceID
push edx
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x40bafa
mov edx, dword [esp + 0x22c]
lea eax, [esp + 0x28]
mov ecx, eax
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40baf0
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x218
ret