Function at 0x4176bc
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x110
mov eax, 0x436fe9
call fcn.0041edd0
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x8c]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x8c], esi
call edi
test eax, eax
jne 0x417a80
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xa0]
push eax
push esi
push esi
push esi
push dword [ebp - 0x8c]
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x94], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x417a74
mov eax, 0x400
cmp dword [ebp - 0x94], eax
ja 0x417a74
cmp dword [ebp - 0xa0], eax
ja 0x417a74
cmp dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], esi
jbe 0x417a64
mov eax, dword [ebp - 0x94]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419bd8
mov ebx, eax
mov eax, dword [ebp - 0x94]
pop ecx
inc eax
push eax
push ebx
push dword [ebp - 0x9c]
mov dword [ebp - 0xa8], ebx
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x417a45
mov eax, dword [ebp - 0x94]
mov word [ebx + eax*2 + 2], si
lea eax, [ebp - 0x98]
push eax
push 0x20019
push esi
push ebx
push dword [ebp - 0x8c]
mov dword [ebp - 0x98], esi
call edi
test eax, eax
jne 0x417a45
push 7
pop eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], esi
mov word [ebp - 0x84], si
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], esi
mov word [ebp - 0x68], si
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x4c], si
mov eax, str.ServiceName
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], esi
call fcn.004017b2
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 1
push dword [ebp - 0x98]
lea ecx, [ebp - 0xe0]
call fcn.004175cd
push 0xffffffffffffffff
lea ecx, [ebp - 0x88]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00401a1b
push ebx
push 1
lea esi, [ebp - 0xe0]
call fcn.0040193c
push ebx
push 1
lea esi, [ebp - 0xc4]
mov byte [ebp - 4], bl
call fcn.0040193c
mov eax, str.Description
lea ecx, [ebp - 0xc4]
call fcn.004017b2
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 3
push dword [ebp - 0x98]
lea ecx, [ebp - 0xe0]
call fcn.004175cd
push 0xffffffffffffffff
lea ecx, [ebp - 0x6c]
push ecx
mov byte [ebp - 4], 4
call fcn.00401a1b
push ebx
push 1
lea esi, [ebp - 0xe0]
call fcn.0040193c
push ebx
push 1
lea esi, [ebp - 0xc4]
mov byte [ebp - 4], bl
call fcn.0040193c
cmp dword [ebp - 0x74], ebx
je 0x417a02
mov eax, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
lea ecx, [ebp - 0x2c]
call fcn.004017b2
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x88]
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401aba
push str.Connection
mov eax, esi
push eax
call fcn.004017d8
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x90], ebx
jae 0x41790b
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x90]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x417993
mov eax, str.Name
lea ecx, [ebp - 0xfc]
call fcn.004017b2
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 6
push dword [ebp - 0x90]
lea ecx, [ebp - 0x118]
call fcn.004175cd
push 0xffffffffffffffff
lea ecx, [ebp - 0x50]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 7
call fcn.00401a1b
push ebx
push 1
lea esi, [ebp - 0x118]
call fcn.0040193c
push ebx
push 1
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 5
call fcn.0040193c
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x90], ebx
cmp dword [ebp - 0x3c], ebx
je 0x4179f4
mov eax, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea esi, [ebp - 0x2c]
call fcn.0040185a
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x88]
call fcn.00401aba
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4179bf
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x90]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4179ec
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x90], ebx
jmp 0x4179f4
lea eax, [ebp - 0x50]
call fcn.00407242
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040193c
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3c], ebx
je 0x417a28
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x88]
push eax
add esi, 0x20
call fcn.00417d4d
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x88]
call fcn.00417a8a
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [ebp - 0xa8]
xor esi, esi
push ebx
call fcn.0041ac2d
inc dword [ebp - 0x9c]
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xa0]
pop ecx
jb 0x417769
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x417a82
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
call fcn.0041ee53
ret 4