Function at 0x50e920
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x5d100c
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x894], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x8ac]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8bc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov esi, 0x20019
call fcn.004ff5a0
test eax, eax
je 0x50e97d
mov esi, 0x20119
push 0x42
xor ebx, ebx
mov edi, 0xf
push str.SYSTEMCurrentControlSetServicesIANSPROTOCOLParametersAdapters
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.00409790
mov eax, dword [esp + 0x74]
mov ebp, 0x10
cmp dword [esp + 0x88], ebp
mov dword [esp + 0x8b4], ebx
jae 0x50e9c3
lea eax, [esp + 0x74]
lea edx, [esp + 0x14]
push edx
push esi
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x50e9f7
cmp dword [esp + 0x88], ebp
jb 0x50e9f0
mov eax, dword [esp + 0x74]
push eax
call fcn.00595eb8
add esp, 4
xor eax, eax
jmp 0x50ec79
xor esi, esi
mov dword [esp + 0x1c], esi
lea ecx, [ecx]
push 0x400
lea ecx, [esp + 0x4ac]
push ebx
push ecx
call fcn.005b5540
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x4bc]
push eax
push esi
push ecx
mov dword [esp + 0x38], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x50ec53
push 0x3ff
lea edx, [esp + 0xad]
push ebx
push edx
mov byte [esp + 0xb4], bl
call fcn.005b5540
push 1
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x40]
push edx
push str.MiniportBindingList
lea eax, [esp + 0x4c8]
push eax
push ecx
mov dword [esp + 0x40], 0x3ff
call fcn.004fff40
add esp, 0x28
cmp eax, ebx
je 0x50ec3f
lea edx, [esp + 0xa8]
push edx
push str.Adapter:__s_r_n
call fcn.005b505f
add esp, 8
push 8
push str.Device_
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
call fcn.00409790
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x98]
mov byte [esp + 0x8c0], 1
call fcn.00408200
lea eax, [esp + 0xa8]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x50eb10
sub eax, esi
push eax
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00409790
push 4
push ebx
push str.__t_r_n
lea ecx, [esp + 0x60]
mov byte [esp + 0x8c0], 2
call fcn.0049f210
push eax
push ebx
lea ecx, [esp + 0x5c]
call fcn.00407f00
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [esp + 0x64]
call fcn.004ca290
add eax, 1
push eax
lea ecx, [esp + 0x5c]
call fcn.00407f00
cmp dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x58]
jae 0x50eb80
lea eax, [esp + 0x58]
mov edx, dword [esp + 0x68]
push edx
push eax
mov eax, dword [esp + 0xa8]
push eax
push ebx
lea ecx, [esp + 0x9c]
call fcn.00415560
test eax, eax
jne 0x50ec00
lea eax, [esp + 0x4a8]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x50ebb5
sub eax, edx
push eax
lea ecx, [esp + 0x4ac]
push ecx
lea ecx, [esp + 0x34]
call fcn.00409790
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x8bc], 3
call fcn.0045a3e0
cmp dword [esp + 0x44], ebp
jb 0x50ec00
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x6c], ebp
jb 0x50ec13
mov edx, dword [esp + 0x58]
push edx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0xa4], ebp
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov byte [esp + 0x8b4], bl
jb 0x50ec3f
mov eax, dword [esp + 0x90]
push eax
call fcn.00595eb8
add esp, 4
mov esi, dword [esp + 0x1c]
add esi, 1
cmp esi, 0x20
mov dword [esp + 0x1c], esi
jl 0x50ea00
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x88], ebp
jb 0x50ec74
mov edx, dword [esp + 0x74]
push edx
call fcn.00595eb8
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x8ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x894]
xor ecx, esp
call fcn.005b1988
add esp, 0x8a4
ret