Function at 0x5174d0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x573eee
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x640], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x658]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x660], ebx
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x20]
push eax
push 0x2001f
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
mov byte [esp + 0x670], 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x51768f
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ebx
push 0x206
lea ecx, [esp + 0x42]
push ebx
push ecx
mov word [esp + 0x48], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x28]
push ebx
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x50]
push ecx
push edx
mov esi, 0x103
push eax
mov dword [esp + 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x51777f
cmp dword [esp + 0x28], ebx
je 0x51777f
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
call fcn.0040ff50
lea edx, [esp + 0x3c]
push edx
push 0x5ac83c
lea edi, [esp + 0x1c]
mov byte [esp + 0x668], 2
call fcn.00410c20
mov ecx, dword [esp + 0x1c]
add esp, 8
lea eax, [esp + 0x18]
push eax
push 0x2001f
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x517671
mov ebp, dword [esp + 0x18]
push 0x206
lea ecx, [esp + 0x24a]
push ebx
push ecx
mov dword [esp + 0x24], ebp
mov word [esp + 0x250], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.NetCfgInstanceId
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esi
push edx
lea edi, [esp + 0x24]
lea esi, [esp + 0x24c]
call fcn.0041a310
cmp eax, ebx
jne 0x5176c4
cmp dword [esp + 0x1c], ebx
je 0x5176c4
mov ecx, dword [esp + 0x668]
mov eax, esi
push eax
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x517701
cmp ebp, ebx
je 0x517671
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x660], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x5176eb
mov dword [esp + 0x660], 0xffffffff
mov eax, dword [esp + 0x668]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5176bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x5177c0
cmp ebp, ebx
je 0x5176cf
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x660], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5176f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x24], 1
jmp 0x517553
push 0x206
lea ecx, [esp + 0x452]
push ebx
push ecx
mov word [esp + 0x458], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.OpMode
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x24]
lea esi, [esp + 0x454]
mov dword [esp + 0x24], 0x103
call fcn.0041a310
cmp eax, ebx
jne 0x51776b
cmp dword [esp + 0x1c], ebx
je 0x51776b
mov eax, esi
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
add esp, 4
lea esi, [esp + 0x18]
mov dword [esp + 0x2c], eax
call fcn.0041a3b0
call fcn.0041a3d0
jmp 0x517776
cmp ebp, ebx
je 0x517776
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
call fcn.00410000
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x51778e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x660], 0xffffffff
mov eax, dword [esp + 0x668]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5177bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x658]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x640]
xor ecx, esp
call fcn.00569ed6
add esp, 0x650
ret