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

Disassembly:
push 0xffffffffffffffff
push 0x42af56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov eax, dword [0x438180]
push esi
mov dword [esp + 0x22c], eax
mov dword [esp + 0x20], ecx
call fcn.00401e70
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
lea ecx, [esp + 0x18]
call fcn.00402240
push str.SystemCurrentControlSetControlClass4d36e972_e325_11ce_bfc1_08002be10318
lea ecx, [esp + 0x14]
mov dword [esp + 0x23c], 0
call fcn.00402240
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x24c], 1
call esi
test eax, eax
je 0x402bb4
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x402bb4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x238], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x402dcf
mov edx, dword [esp + 8]
push ebp
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x144]
push ecx
push esi
mov ebp, pe_nt_image_headers32
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402d6f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea esp, [esp]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x140]
push ecx
inc esi
push edx
mov dword [esp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402d41
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push 0x20019
push 0
push str.NdiInterfaces
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402d36
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.LowerRange
push edx
mov dword [esp + 0x24], ebp
call edi
test eax, eax
jne 0x402d2b
push str.ethernet
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x402d2b
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push str.DriverDesc
push ecx
mov dword [esp + 0x24], ebp
call edi
test eax, eax
jne 0x402d2b
push 0x1c
call fcn.0041e22b
add esp, 4
test eax, eax
je 0x402cc3
mov ecx, eax
call fcn.00401710
mov esi, eax
jmp 0x402cc5
xor esi, esi
lea edx, [esp + 0x34]
push edx
lea ecx, [esi + 4]
mov dword [esp + 0x30], esi
call fcn.00402100
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push str.NetCfgInstanceID
push eax
mov dword [esp + 0x24], ebp
call edi
test eax, eax
jne 0x402d19
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 0x18]
call fcn.00402100
mov ecx, dword [esp + 0x28]
push 0
lea edx, [esp + 0x38]
push edx
push esi
call fcn.004022f0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
call fcn.00402a70
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x148]
push ecx
push esi
push edx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402bf0
pop edi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x23c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebp
jg 0x402da1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402dca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x22c]
pop esi
call fcn.0041092e
add esp, 0x238
ret