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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b385b
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x639354]
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 ebx, dword [ebp + 8]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x144], esi
lea eax, [ebp - 0x138]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x59494e
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
jmp 0x594c1d
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x13c], 0
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x12c], 0x100
push eax
push 0
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x594c0f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x130]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x594bc7
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x12c], 4
push eax
lea eax, [ebp - 0x134]
push eax
push 0
push str.Characteristics
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x594bbf
test byte [ebp - 0x140], 4
je 0x594bbf
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x12c], 0x100
push eax
lea eax, [ebp - 0x134]
push eax
push 0
push str.ComponentId
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x594bbf
push 3
lea eax, [ebp - 0x110]
push 0x5d8f30
push eax
call fcn.00582410
add esp, 0xc
test eax, eax
je 0x594a88
push 3
lea eax, [ebp - 0x110]
push 0x5d8f34
push eax
call fcn.00582410
add esp, 0xc
test eax, eax
jne 0x594bbf
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x134], 0
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x12c], 0x100
push eax
lea eax, [ebp - 0x134]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x594bbf
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x128], al
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - 0x114], 0xf
call fcn.004d8630
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0x144]
je 0x594b66
mov eax, dword [ebp - 0x128]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x124]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x11c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x114]
mov dword [esi + 0x14], eax
mov eax, 0xf
add esi, 0x18
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x148], esi
jmp 0x594b85
lea eax, [ebp - 0x128]
push eax
push esi
lea ecx, [ebp - 0x14c]
call fcn.004aa580
mov esi, dword [ebp - 0x148]
mov eax, dword [ebp - 0x114]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x594bbf
mov ecx, dword [ebp - 0x128]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x594bb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x594c3b
push edx
push ecx
call fcn.0055c524
add esp, 8
push dword [ebp - 0x130]
call edi
mov eax, dword [ebp - 0x13c]
lea ecx, [ebp - 0x12c]
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x12c], 0x100
inc eax
push ecx
push eax
push dword [ebp - 0x138]
mov dword [ebp - 0x13c], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x594994
mov edi, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x144]
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
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.0055c3a9
mov esp, ebp
pop ebp
ret
call fcn.0056af64
int3