Function at 0x401b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.00414350
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10008]
push eax
lea eax, [ebp - 0x4004]
mov dword [ebp - 0x10008], 0x3fff
push eax
push 0
push 0
mov esi, ecx
mov byte [ebp - 0x4004], 0
push str.FriendlyName
push esi
call edi
test eax, eax
jne 0x401b62
mov eax, dword [ebp - 0x10008]
cmp eax, 0x3fff
jb 0x401ba6
jmp 0x401e36
lea eax, [ebp - 0x10008]
mov byte [ebp - 0x4004], 0
push eax
lea eax, [ebp - 0x4004]
mov dword [ebp - 0x10008], 0x3fff
push eax
push 0
push 0
push str.DeviceDesc
push esi
call edi
test eax, eax
jne 0x401e24
mov eax, dword [ebp - 0x10008]
cmp eax, 0x3fff
jae 0x401e36
lea eax, [ebp + eax - 0x4004]
lea ecx, [ebp - 0x4004]
mov byte [eax], 0
cmp eax, ecx
jbe 0x401bd0
nop word [eax + eax]
cmp byte [eax], 0x3b
je 0x401bd0
dec eax
lea ecx, [ebp - 0x4004]
cmp eax, ecx
ja 0x401bc0
cmp byte [eax], 0x3b
lea ecx, [eax + 1]
lea edx, [ebp - 0x8004]
cmovne ecx, eax
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x401be1
mov byte [ebp - 0x4004], al
lea eax, [ebp - 0x10008]
push eax
lea eax, [ebp - 0x4004]
mov dword [ebp - 0x10008], 0x3fff
push eax
push 0
push 0
push str.Driver
push esi
call edi
test eax, eax
jne 0x401e24
mov eax, dword [ebp - 0x10008]
cmp eax, 0x3fff
jae 0x401e36
mov byte [ebp + eax - 0x4004], 0
lea eax, [ebp - 0x4004]
push eax
push str.SYSTEMCurrentControlSetControlClass
lea eax, [ebp - 0x10004]
push str._s_s
push eax
call fcn.00401050
add esp, 0x10
lea eax, [ebp - 0x1000c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x10004]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e24
mov byte [ebp - 0x4004], al
lea eax, [ebp - 0x10008]
push eax
lea eax, [ebp - 0x4004]
mov dword [ebp - 0x10008], 0x3fff
push eax
push 0
push 0
push str.QCDeviceControlFile
push dword [ebp - 0x1000c]
call edi
test eax, eax
jne 0x401e18
lea ecx, [ebp - 0x4004]
add ecx, dword [ebp - 0x10008]
cmp dword [ebp - 0x10008], 0x3fff
jae 0x401e36
mov byte [ecx], al
lea eax, [ebp - 0x4004]
cmp ecx, eax
jbe 0x401cf0
cmp byte [ecx], 0x5c
je 0x401cf0
dec ecx
lea eax, [ebp - 0x4004]
cmp ecx, eax
ja 0x401ce0
cmp byte [ecx], 0x5c
lea edx, [ecx + 1]
cmovne edx, ecx
lea ecx, [ebp - 0xc004]
sub ecx, edx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x401d01
imul esi, dword [0x4201dc], 0x384
lea ecx, [ebp - 0x8004]
mov edx, ecx
mov eax, esi
sub eax, edx
lea edx, [eax + 0x57fbc4]
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x401d30
lea ecx, [ebp - 0xc004]
mov eax, ecx
sub esi, eax
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx + 0x57fcc3], al
test al, al
jne 0x401d50
mov byte [ebp - 0x4004], al
lea eax, [ebp - 0x10008]
push eax
lea eax, [ebp - 0x4004]
mov dword [ebp - 0x10008], 0x3fff
push eax
push 0
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x1000c]
call edi
test eax, eax
jne 0x401ddf
mov eax, dword [ebp - 0x10008]
cmp eax, 0x3fff
jae 0x401e36
mov edx, dword [0x4201dc]
lea ecx, [ebp - 0x4004]
mov byte [ebp + eax - 0x4004], 0
mov esi, ecx
imul eax, edx, 0x384
sub eax, esi
lea esi, [eax + 0x57fdc4]
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x401dd0
jmp 0x401df2
mov edx, dword [0x4201dc]
imul eax, edx, 0x384
mov byte [eax + 0x57fdc4], 0
inc edx
mov dword [0x4201dc], edx
cmp edx, 0x640
jl 0x401e18
push str.WARNING:_max_num_adapters_reached__n
call fcn.00404060
add esp, 4
mov dword [0x4201dc], 0x63f
push dword [ebp - 0x1000c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004040bd
mov esp, ebp
pop ebp
ret
call fcn.004041f1
int3