Function at 0x416c3a
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x110
mov eax, 0x436433
call fcn.0041e3a7
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 0x416ffe
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 0x416ff2
mov eax, 0x400
cmp dword [ebp - 0x94], eax
ja 0x416ff2
cmp dword [ebp - 0xa0], eax
ja 0x416ff2
cmp dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], esi
jbe 0x416fe2
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.00419196
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 0x416fc3
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 0x416fc3
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.00416b4b
push 0xffffffffffffffff
lea ecx, [ebp - 0x88]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00401276
push ebx
push 1
lea esi, [ebp - 0xe0]
call fcn.00401197
push ebx
push 1
lea esi, [ebp - 0xc4]
mov byte [ebp - 4], bl
call fcn.00401197
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.00416b4b
push 0xffffffffffffffff
lea ecx, [ebp - 0x6c]
push ecx
mov byte [ebp - 4], 4
call fcn.00401276
push ebx
push 1
lea esi, [ebp - 0xe0]
call fcn.00401197
push ebx
push 1
lea esi, [ebp - 0xc4]
mov byte [ebp - 4], bl
call fcn.00401197
cmp dword [ebp - 0x74], ebx
je 0x416f80
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.00401315
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 0x416e89
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 0x416f11
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.00416b4b
push 0xffffffffffffffff
lea ecx, [ebp - 0x50]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 7
call fcn.00401276
push ebx
push 1
lea esi, [ebp - 0x118]
call fcn.00401197
push ebx
push 1
lea esi, [ebp - 0xfc]
mov byte [ebp - 4], 5
call fcn.00401197
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x90], ebx
cmp dword [ebp - 0x3c], ebx
je 0x416f72
mov eax, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea esi, [ebp - 0x2c]
call fcn.004010b5
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x88]
call fcn.00401315
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x416f3d
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 0x416f6a
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x90], ebx
jmp 0x416f72
lea eax, [ebp - 0x50]
call fcn.0040648e
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401197
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3c], ebx
je 0x416fa6
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x88]
push eax
add esi, 0x20
call fcn.004172cb
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x88]
call fcn.00417008
mov ebx, dword [ebp - 0xa8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
push ebx
call fcn.0041a1ed
inc dword [ebp - 0x9c]
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xa0]
pop ecx
jb 0x416ce7
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x417000
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
call fcn.0041e42a
ret 4