Function at 0x414970
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4bd131
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x4e97d0]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e97d0]
xor eax, esp
push eax
lea eax, [esp + 0x45c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x46c]
xor ebx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x20]
push ecx
push 8
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov dword [esp + 0x474], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x414aa7
mov edi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], eax
lea ecx, [ecx]
lea edx, [esp + 0x3c]
push edx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x260]
push edx
push eax
mov esi, 0x104
push edi
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x414b72
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x28]
push eax
push 1
push ebx
lea ecx, [esp + 0x258]
push ecx
mov byte [esp + 0x474], 1
push edi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x414aae
mov ebp, dword [esp + 0x28]
push str.BusType
lea edx, [esp + 0x18]
mov dword [esp + 0x20], esi
push edx
lea edi, [esp + 0x24]
lea esi, [esp + 0x4c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
call fcn.004125f0
test eax, eax
je 0x414abe
mov byte [esp + 0x464], bl
cmp ebp, ebx
je 0x414a9e
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jmp 0x414b5a
xor eax, eax
jmp 0x414b9d
mov byte [esp + 0x464], bl
mov dword [esp + 0x18], ebx
jmp 0x414b5a
lea eax, [esp + 0x44]
push eax
call fcn.0048af4f
add esp, 4
cmp eax, 5
jne 0x414a88
push str.NetCfgInstanceId
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x24]
lea esi, [esp + 0x4c]
mov dword [esp + 0x24], 0x104
call fcn.004125f0
test eax, eax
jne 0x414a88
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.00415060
mov edi, dword [esp + 0x24]
lea ebx, [esp + 0x30]
mov byte [esp + 0x464], 2
call fcn.00415290
mov byte [esp + 0x464], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414b3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov byte [esp + 0x464], bl
cmp ebp, ebx
je 0x414b54
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
inc eax
cmp eax, 0x100
mov dword [esp + 0x2c], eax
jl 0x414a00
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 0x10]
sub esi, dword [eax + 0xc]
mov dword [esp + 0x464], 0xffffffff
and esi, 0xfffffffc
neg esi
sbb esi, esi
neg esi
cmp edi, ebx
je 0x414b9b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x45c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.00484647
add esp, 0x454
ret