Function at 0x401ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.004159b0
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
je 0x401c23
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 0x401eb4
mov eax, dword [ebp - 0x10008]
cmp eax, 0x3fff
jae 0x401ec6
lea eax, [ebp + eax - 0x4004]
lea ecx, [ebp - 0x4004]
mov byte [eax], 0
cmp eax, ecx
jbe 0x401c58
cmp byte [eax], 0x3b
je 0x401c58
dec eax
lea ecx, [ebp - 0x4004]
cmp eax, ecx
ja 0x401c48
cmp byte [eax], 0x3b
lea ecx, [eax + 1]
lea edx, [ebp - 0x8004]
cmovne ecx, eax
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x401c70
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 0x401eb4
mov eax, dword [ebp - 0x10008]
cmp eax, 0x3fff
jae 0x401ec6
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 0x401eb4
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 0x401ea8
lea ecx, [ebp - 0x4004]
add ecx, dword [ebp - 0x10008]
cmp dword [ebp - 0x10008], 0x3fff
jae 0x401ec6
mov byte [ecx], al
lea eax, [ebp - 0x4004]
cmp ecx, eax
jbe 0x401d80
nop
cmp byte [ecx], 0x5c
je 0x401d80
dec ecx
lea eax, [ebp - 0x4004]
cmp ecx, eax
ja 0x401d70
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 0x401d91
imul esi, dword [0x4202f4], 0x384
lea ecx, [ebp - 0x8004]
mov edx, ecx
mov eax, esi
sub eax, edx
lea edx, [eax + 0x57fce4]
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x401dc0
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 + 0x57fde3], al
test al, al
jne 0x401de0
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 0x401e6f
mov eax, dword [ebp - 0x10008]
cmp eax, 0x3fff
jae 0x401ec6
mov edx, dword [0x4202f4]
lea ecx, [ebp - 0x4004]
mov byte [ebp + eax - 0x4004], 0
mov esi, ecx
imul eax, edx, 0x384
sub eax, esi
lea esi, [eax + 0x57fee4]
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x401e60
jmp 0x401e82
mov edx, dword [0x4202f4]
imul eax, edx, 0x384
mov byte [eax + 0x57fee4], 0
inc edx
mov dword [0x4202f4], edx
cmp edx, 0x640
jl 0x401ea8
push str.WARNING:_max_num_adapters_reached__n
call fcn.00403f40
add esp, 4
mov dword [0x4202f4], 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.00403f9d
mov esp, ebp
pop ebp
ret
call fcn.004040cf
int3