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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aad96
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x61ce74]
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 0x53b1de
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
jmp 0x53b4a1
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 0x53b493
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 0x53b44b
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 0x53b443
test byte [ebp - 0x140], 4
je 0x53b443
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 0x53b443
push 3
lea eax, [ebp - 0x110]
push 0x5d6ea0
push eax
call fcn.0055e246
add esp, 0xc
test eax, eax
je 0x53b318
push 3
lea eax, [ebp - 0x110]
push 0x5d6ea4
push eax
call fcn.0055e246
add esp, 0xc
test eax, eax
jne 0x53b443
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 0x53b443
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 0x128], al
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - 0x114], 0xf
call fcn.004c90c0
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0x144]
je 0x53b3ea
mov eax, dword [ebp - 0x128]
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 0x53b409
lea eax, [ebp - 0x128]
push eax
push esi
lea ecx, [ebp - 0x14c]
call fcn.00497ef0
mov esi, dword [ebp - 0x148]
mov eax, dword [ebp - 0x114]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x53b443
mov ecx, dword [ebp - 0x128]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x53b439
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53b4bf
push edx
push ecx
call fcn.0053d0af
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 0x53b224
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.0053d079
mov esp, ebp
pop ebp
ret
call fcn.0054b0c3
int3