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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ad21
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x100bc1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0
push 8
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], 0
call fcn.100222f0
mov esi, dword [ebp - 0x448]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10040d7a
xor ebx, ebx
jmp 0x10040f7b
xor ebx, ebx
nop dword [eax]
lea eax, [ebp - 0x454]
mov dword [ebp - 0x424], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10040f6b
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x428]
push eax
push 1
push 0
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x430], 0
test eax, eax
jne 0x10040f5a
mov esi, dword [ebp - 0x428]
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x434], esi
push eax
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x428], 0x208
push eax
push 0
push str.BusType
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10040e8e
mov eax, dword [ebp - 0x44c]
cmp eax, 1
je 0x10040e49
cmp eax, 2
jne 0x10040e8e
mov ecx, dword [ebp - 0x428]
test ecx, ecx
je 0x10040e69
test cl, 1
jne 0x10040e8e
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x10040e72
jmp 0x10040e8e
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
shr ecx, 1
push eax
mov dword [ebp - 0x424], ecx
call fcn.10060849
add esp, 4
cmp eax, 5
je 0x10040eb8
mov byte [ebp - 4], 0
test esi, esi
je 0x10040ea3
push esi
call edi
mov dword [ebp - 0x434], 0
mov esi, dword [ebp - 0x448]
mov dword [ebp - 0x430], 0
jmp 0x10040f5e
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push str.NetCfgInstanceId
lea ecx, [ebp - 0x434]
call fcn.100380e0
test eax, eax
jne 0x10040e8e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.10040030
mov ecx, dword [ebp - 0x43c]
mov byte [ebp - 4], 2
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x10040f22
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.1003ffa0
mov eax, dword [ebp - 0x43c]
add dword [eax + 4], 4
jmp 0x10040f2f
lea edx, [ebp - 0x438]
push edx
push eax
call fcn.1003fd90
mov edx, dword [ebp - 0x438]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10040e8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10040e8e
mov byte [ebp - 4], 0
inc ebx
cmp ebx, 0x100
jl 0x10040d80
mov ecx, dword [ebp - 0x43c]
xor ebx, ebx
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
setne bl
test esi, esi
je 0x10040f82
push esi
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100536aa
mov esp, ebp
pop ebp
ret