Function at 0x596e10
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 0x596e8e
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
jmp 0x597152
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 0x597144
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 0x5970fc
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 0x5970f4
test byte [ebp - 0x140], 4
je 0x5970f4
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 0x5970f4
push 3
lea eax, [ebp - 0x110]
push 0x5d8f30
push eax
call fcn.00582410
add esp, 0xc
test eax, eax
jne 0x5970f4
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.NetCfgInstanceId
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5970f4
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x118], eax
lea edx, [ecx + 1]
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x597013
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00438630
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0x144]
je 0x59709b
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 0x5970ba
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 0x5970f4
mov ecx, dword [ebp - 0x128]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x5970ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x597170
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 0x596ed4
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