Function at 0x4156be
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x110
mov eax, 0x435d6a
call fcn.0041dca0
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 0x415a82
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 0x415a76
mov eax, 0x400
cmp dword [ebp - 0x94], eax
ja 0x415a76
cmp dword [ebp - 0xa0], eax
ja 0x415a76
cmp dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], esi
jbe 0x415a66
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.00418a8c
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 0x415a47
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 0x415a47
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.0040102d
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 1
push dword [ebp - 0x98]
lea ecx, [ebp - 0xe0]
call fcn.004155cf
push 0xffffffffffffffff
lea ecx, [ebp - 0x88]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00401296
push ebx
push 1
lea esi, [ebp - 0xe0]
call fcn.004011b7
push ebx
push 1
lea esi, [ebp - 0xc4]
mov byte [ebp - 4], bl
call fcn.004011b7
mov eax, str.Description
lea ecx, [ebp - 0xc4]
call fcn.0040102d
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 3
push dword [ebp - 0x98]
lea ecx, [ebp - 0xe0]
call fcn.004155cf
push 0xffffffffffffffff
lea ecx, [ebp - 0x6c]
push ecx
mov byte [ebp - 4], 4
call fcn.00401296
push ebx
push 1
lea esi, [ebp - 0xe0]
call fcn.004011b7
push ebx
push 1
lea esi, [ebp - 0xc4]
mov byte [ebp - 4], bl
call fcn.004011b7
cmp dword [ebp - 0x74], ebx
je 0x415a04
mov eax, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
lea ecx, [ebp - 0x2c]
call fcn.0040102d
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x88]
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401335
push str.Connection
mov eax, esi
push eax
call fcn.00401053
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x90], ebx
jae 0x41590d
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 0x415995
mov eax, str.Name
lea ecx, [ebp - 0xfc]
call fcn.0040102d
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 6
push dword [ebp - 0x90]
lea ecx, [ebp - 0x118]
call fcn.004155cf
push 0xffffffffffffffff
lea ecx, [ebp - 0x50]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 7
call fcn.00401296
push ebx
push 1
lea esi, [ebp - 0x118]
call fcn.004011b7
push ebx
push 1
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 5
call fcn.004011b7
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x90], ebx
cmp dword [ebp - 0x3c], ebx
je 0x4159f6
mov eax, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea esi, [ebp - 0x2c]
call fcn.004010d5
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x88]
call fcn.00401335
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4159c1
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 0x4159ee
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x90], ebx
jmp 0x4159f6
lea eax, [ebp - 0x50]
call fcn.0040617c
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004011b7
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3c], ebx
je 0x415a2a
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x88]
push eax
add esi, 0x20
call fcn.00415d4f
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x88]
call fcn.00415a8c
mov ebx, dword [ebp - 0xa8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
push ebx
call fcn.00419aed
inc dword [ebp - 0x9c]
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xa0]
pop ecx
jb 0x41576b
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x415a84
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
call fcn.0041dd23
ret 4