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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a59d5
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x62819c]
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 eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x160], edi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x178], esi
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
lea eax, [ebp - 0x16c]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x51dd22
mov eax, dword [ebp - 0x184]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x51e2e3
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x180], 0
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x15c], 0x100
push eax
push 0
push dword [ebp - 0x16c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x51e2cf
mov ecx, dword [0x633954]
mov eax, dword fs:[0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x164]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x16c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x51e281
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x15c], 4
push eax
lea eax, [ebp - 0x168]
push eax
push 0
push str.Characteristics
push dword [ebp - 0x164]
call ebx
test eax, eax
jne 0x51e279
test byte [ebp - 0x17c], 4
je 0x51e279
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x15c], 0x100
push eax
lea eax, [ebp - 0x168]
push eax
push 0
push str.ComponentId
push dword [ebp - 0x164]
call ebx
test eax, eax
jne 0x51e03c
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51de40
sub ecx, edx
lea eax, [ebp - 0x110]
cmp byte [ebp + 0xc], 0
push ecx
push eax
je 0x51dea8
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
call fcn.00437dd0
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 1
or edi, 2
push eax
mov dword [ebp - 0x160], edi
call fcn.0051eab0
add esp, 4
test al, al
je 0x51e03c
xor bl, bl
jmp 0x51e03e
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
call fcn.00437dd0
mov eax, dword [ebp - 0x188]
or edi, 4
mov dword [ebp - 4], 2
mov dword [ebp - 0x160], edi
mov ecx, dword [eax]
mov eax, dword [0x6334fc]
cmp eax, dword [ecx + 4]
jg 0x51e304
mov eax, dword [0x6334f0]
cmp eax, dword [0x6334f4]
jne 0x51dfe4
push 7
push str.msloop
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
call fcn.00437dd0
mov ecx, dword [0x6334f4]
mov dword [ebp - 4], 3
cmp ecx, dword [0x6334f8]
je 0x51df94
mov eax, dword [ebp - 0x128]
mov edx, 0xf
mov dword [ecx], eax
mov eax, dword [ebp - 0x124]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x11c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x114]
mov dword [ecx + 0x14], eax
add dword [0x6334f4], 0x18
mov byte [ebp - 0x128], 0
jmp 0x51dfac
lea eax, [ebp - 0x128]
push eax
push ecx
mov ecx, 0x6334f0
call fcn.004a0020
mov edx, dword [ebp - 0x114]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x51dfe4
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51dfda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51e2ff
push edx
push ecx
call fcn.00546044
add esp, 8
mov esi, dword [0x6334f0]
cmp esi, dword [0x6334f4]
je 0x51e02c
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x51dffc
mov ecx, dword [esi]
push dword [esi + 0x10]
cmp dword [ebp - 0x12c], 0x10
lea eax, [ebp - 0x140]
push ecx
cmovae eax, dword [ebp - 0x140]
push eax
call fcn.00569bb0
add esp, 0xc
test eax, eax
je 0x51e036
add esi, 0x18
cmp esi, dword [0x6334f4]
jne 0x51dff2
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x51e03e
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 4], 1
test cl, 4
je 0x51e0b6
mov eax, dword [ebp - 0x12c]
and ecx, 0xfffffffb
mov dword [ebp - 0x160], ecx
cmp eax, 0x10
jb 0x51e09b
mov ecx, dword [ebp - 0x140]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x51e08b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51e2ff
push edx
push ecx
call fcn.00546044
mov ecx, dword [ebp - 0x160]
add esp, 8
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
mov dword [ebp - 4], 0
test cl, 2
je 0x51e107
mov eax, dword [ebp - 0x144]
and ecx, 0xfffffffd
mov dword [ebp - 0x160], ecx
cmp eax, 0x10
jb 0x51e107
mov ecx, dword [ebp - 0x158]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x51e0fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51e2ff
push edx
push ecx
call fcn.00546044
add esp, 8
test bl, bl
je 0x51e124
push dword [ebp - 0x164]
call esi
mov edi, dword [ebp - 0x160]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x51e281
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x168], 0
push eax
lea eax, [ebp - 0x168]
mov dword [ebp - 0x15c], 0x100
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x164]
call ebx
test eax, eax
jne 0x51e269
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x128], al
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51e190
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00437dd0
mov ecx, dword [ebp - 0x174]
mov byte [ebp - 4], 4
cmp ecx, dword [ebp - 0x170]
je 0x51e218
mov eax, dword [ebp - 0x128]
mov edx, 0xf
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0x124]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x11c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x114]
mov dword [ecx + 0x14], eax
add ecx, 0x18
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x174], ecx
jmp 0x51e231
lea eax, [ebp - 0x128]
push eax
push ecx
lea ecx, [ebp - 0x178]
call fcn.004a0020
mov edx, dword [ebp - 0x114]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x51e269
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51e25f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51e2ff
push edx
push ecx
call fcn.00546044
add esp, 8
push dword [ebp - 0x164]
call esi
mov edi, dword [ebp - 0x160]
jmp 0x51e281
push dword [ebp - 0x164]
call esi
mov eax, dword [ebp - 0x180]
lea ecx, [ebp - 0x15c]
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x15c], 0x100
inc eax
push ecx
push eax
push dword [ebp - 0x16c]
mov dword [ebp - 0x180], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x51dd83
mov esi, dword [ebp - 0x178]
mov ebx, dword [ebp - 0x174]
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x170]
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
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.00545ec7
mov esp, ebp
pop ebp
ret
call fcn.00555394
push 0x6334fc
call fcn.00546388
add esp, 4
cmp dword [0x6334fc], 0xffffffff
jne 0x51def7
push 0x5aa5c0
mov dword [0x6334f0], 0
mov dword [0x6334f4], 0
mov dword [0x6334f8], 0
call fcn.0054669a
push 0x6334fc
call fcn.0054633e
add esp, 8
jmp 0x51def7