Function at 0x401ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.0040a5c0
mov eax, dword [0x411014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, ecx
lea eax, [ebp - 0x10008]
push eax
lea ecx, [ebp - 0x4004]
push ecx
xor ebx, ebx
push ebx
push ebx
push str.FriendlyName
push esi
mov dword [ebp - 0x10008], 0x3fff
mov byte [ebp - 0x4004], bl
call edi
test eax, eax
je 0x401c20
lea edx, [ebp - 0x10008]
push edx
lea eax, [ebp - 0x4004]
push eax
push ebx
push ebx
push str.DeviceDesc
push esi
mov byte [ebp - 0x4004], bl
mov dword [ebp - 0x10008], 0x3fff
call edi
test eax, eax
jne 0x401e5d
mov eax, dword [ebp - 0x10008]
lea eax, [ebp + eax - 0x4004]
lea ecx, [ebp - 0x4004]
mov byte [eax], bl
cmp eax, ecx
jbe 0x401c50
lea esp, [esp]
cmp byte [eax], 0x3b
je 0x401c55
dec eax
lea edx, [ebp - 0x4004]
cmp eax, edx
ja 0x401c40
cmp byte [eax], 0x3b
jne 0x401c56
inc eax
lea edx, [ebp - 0x8004]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401c60
lea eax, [ebp - 0x10008]
push eax
lea ecx, [ebp - 0x4004]
push ecx
push ebx
push ebx
push str.Driver
push esi
mov byte [ebp - 0x4004], bl
mov dword [ebp - 0x10008], 0x3fff
call edi
test eax, eax
jne 0x401e5d
mov edx, dword [ebp - 0x10008]
lea eax, [ebp - 0x4004]
push eax
push str.SYSTEMCurrentControlSetControlClass
lea ecx, [ebp - 0x10004]
push str._s_s
push ecx
mov byte [ebp + edx - 0x4004], bl
call fcn.0040400d
add esp, 0x10
lea edx, [ebp - 0x1000c]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x10004]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e5d
mov eax, dword [ebp - 0x1000c]
lea ecx, [ebp - 0x10008]
push ecx
lea edx, [ebp - 0x4004]
push edx
push ebx
push ebx
push str.QCDeviceControlFile
push eax
mov byte [ebp - 0x4004], bl
mov dword [ebp - 0x10008], 0x3fff
call edi
test eax, eax
jne 0x401e50
mov eax, dword [ebp - 0x10008]
lea eax, [ebp + eax - 0x4004]
lea ecx, [ebp - 0x4004]
mov byte [eax], bl
cmp eax, ecx
jbe 0x401d50
lea ecx, [ecx]
cmp byte [eax], 0x5c
je 0x401d55
dec eax
lea edx, [ebp - 0x4004]
cmp eax, edx
ja 0x401d40
cmp byte [eax], 0x5c
jne 0x401d56
inc eax
lea edx, [ebp - 0xc004]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401d60
mov esi, dword [0x412b90]
imul esi, esi, 0x384
lea eax, [ebp - 0x8004]
lea edx, [esi + 0x5736c4]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401d86
lea eax, [ebp - 0xc004]
lea edx, [esi + 0x5737c4]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401da0
mov ecx, dword [ebp - 0x1000c]
lea edx, [ebp - 0x10008]
push edx
lea eax, [ebp - 0x4004]
push eax
push ebx
push ebx
push str.NetCfgInstanceId
push ecx
mov byte [ebp - 0x4004], bl
mov dword [ebp - 0x10008], 0x3fff
call edi
mov esi, dword [0x412b90]
test eax, eax
jne 0x401e13
mov edx, dword [ebp - 0x10008]
mov ecx, esi
imul ecx, ecx, 0x384
mov byte [ebp + edx - 0x4004], bl
lea eax, [ebp - 0x4004]
lea edx, [ecx + 0x5738c4]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401e07
jmp 0x401e21
mov edx, esi
imul edx, edx, 0x384
mov byte [edx + 0x5738c4], bl
inc esi
mov dword [0x412b90], esi
cmp esi, 0x640
jl 0x401e47
push str.WARNING:_max_num_adapters_reached__n
call fcn.00403fb0
add esp, 4
mov dword [0x412b90], 0x63f
mov eax, dword [ebp - 0x1000c]
push eax
jmp 0x401e57
mov ecx, dword [ebp - 0x1000c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00403ffe
mov esp, ebp
pop ebp
ret