Function at 0x52e0f0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x573734
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x648], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x660]
mov dword fs:[0], eax
mov eax, dword [esp + 0x674]
mov dword [esp + 0x34], eax
xor ebp, ebp
mov dword [esp + 0x668], ebp
mov eax, dword [esp + 0x670]
cmp dword [eax - 0xc], ebp
mov dword [esp + 0x30], ebp
jne 0x52e17d
add eax, 0xfffffff0
mov dword [esp + 0x668], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e176
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x52e457
lea ecx, [esp + 0x24]
push ecx
push 0xf003f
push ebp
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov byte [esp + 0x678], 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x52e425
mov edx, dword [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], ebp
jmp 0x52e1c0
push 0x206
lea eax, [esp + 0x4a]
push ebp
push eax
mov word [esp + 0x50], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x2c]
push ebp
push ebp
push ebp
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x58]
push eax
push ecx
mov esi, 0x103
push edx
mov dword [esp + 0x4c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebp
jne 0x52e416
cmp dword [esp + 0x2c], ebp
je 0x52e416
lea eax, [esp + 0x14]
push eax
mov ecx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
call fcn.0040ff50
lea ecx, [esp + 0x44]
push ecx
push 0x5ac83c
lea edi, [esp + 0x1c]
mov byte [esp + 0x670], 2
call fcn.00410c20
add esp, 8
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x2001f
push ebp
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x52e3ad
mov ebx, dword [esp + 0x18]
push 0x206
lea ecx, [esp + 0x252]
push ebp
push ecx
mov dword [esp + 0x24], ebx
mov word [esp + 0x258], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.MatchingDeviceId
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esi
push edx
lea edi, [esp + 0x24]
lea esi, [esp + 0x254]
call fcn.0041a310
cmp eax, ebp
jne 0x52e3a2
cmp dword [esp + 0x1c], ebp
je 0x52e3a2
mov ecx, dword [esp + 0x670]
mov eax, esi
push eax
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x52e37c
push 0x206
lea edx, [esp + 0x45a]
push ebp
push edx
mov word [esp + 0x460], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.NetCfgInstanceId
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x24]
lea esi, [esp + 0x45c]
mov dword [esp + 0x24], 0x103
call fcn.0041a310
cmp eax, ebp
jne 0x52e404
cmp dword [esp + 0x1c], ebp
je 0x52e404
lea esi, [esp + 0x20]
call fcn.0040ff30
lea ecx, [esp + 0x454]
push ecx
push str.._s
mov edi, esi
mov byte [esp + 0x670], 4
call fcn.00410c00
mov edx, dword [esp + 0x28]
add esp, 8
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x52e3df
mov ecx, esi
call fcn.00410000
cmp ebx, ebp
je 0x52e387
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x668], 1
call fcn.00410000
add dword [esp + 0x28], 1
jmp 0x52e1c0
cmp ebx, ebp
je 0x52e3ad
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x668], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e3d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x28], 1
jmp 0x52e1c0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x20]
call fcn.004101e0
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 1
call fcn.00410000
lea esi, [esp + 0x18]
call fcn.0041a3d0
lea ecx, [esp + 0x14]
call fcn.00410000
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x52e425
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x668], 0xffffffff
mov eax, dword [esp + 0x670]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e453
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x660]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x648]
xor ecx, esp
call fcn.00569ed6
add esp, 0x658
ret 8