Function at 0x4251c0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x442405
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x44f1a0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f1a0]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4256e2
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
push esi
push esi
push esi
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x40]
push eax
push esi
push esi
push esi
push ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x425263
mov edx, dword [esp + 0x18]
push edx
jmp 0x4256dc
cmp dword [esp + 0x1c], 0x400
ja 0x4256d7
mov eax, dword [esp + 0x24]
cmp eax, 0x400
ja 0x4256d7
xor ebx, ebx
cmp eax, esi
mov dword [esp + 0x28], ebx
jbe 0x4256c8
lea ebp, [ebx + 8]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042b93a
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x20]
add esp, 4
add eax, 1
push eax
push edi
push ebx
push ecx
mov dword [esp + 0x5c], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4256ae
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push 0x20019
push esi
mov word [edi + edx*2 + 2], si
mov ecx, dword [esp + 0x24]
push edi
push ecx
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4256ae
mov eax, 7
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd4], esi
mov word [esp + 0xc4], si
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], esi
mov word [esp + 0xe0], si
mov dword [esp + 0x110], eax
mov dword [esp + 0x10c], esi
mov word [esp + 0xfc], si
mov dword [esp + 0x124], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], esi
mov word [esp + 0x34], si
mov eax, str.ServiceName
lea esi, [esp + 0x30]
call fcn.00401633
mov byte [esp + 0x124], 1
mov edx, dword [esp + 0x20]
push edx
mov edx, esi
lea ecx, [esp + 0x54]
call fcn.004250b0
push 0xffffffffffffffff
lea ecx, [esp + 0xc4]
push ecx
xor ebx, ebx
mov byte [esp + 0x12c], 2
call fcn.00401709
cmp dword [esp + 0x68], ebp
jb 0x4253ad
mov edx, dword [esp + 0x54]
push edx
call fcn.0042bbfa
add esp, 4
xor ebx, ebx
mov esi, 7
mov byte [esp + 0x124], bl
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
jb 0x4253db
mov eax, dword [esp + 0x34]
push eax
call fcn.0042bbfa
add esp, 4
mov dword [esp + 0x48], esi
mov eax, str.Description
lea esi, [esp + 0x30]
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
call fcn.00401633
mov byte [esp + 0x124], 3
mov ecx, dword [esp + 0x20]
push ecx
mov edx, esi
lea ecx, [esp + 0x54]
call fcn.004250b0
push 0xffffffffffffffff
lea edx, [esp + 0xe0]
push edx
xor ebx, ebx
mov byte [esp + 0x12c], 4
call fcn.00401709
cmp dword [esp + 0x68], ebp
jb 0x42543a
mov eax, dword [esp + 0x54]
push eax
call fcn.0042bbfa
add esp, 4
xor ebx, ebx
mov edi, 7
mov byte [esp + 0x124], bl
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
jb 0x425468
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042bbfa
add esp, 4
cmp dword [esp + 0xd4], ebx
je 0x425665
mov eax, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
lea esi, [esp + 0xa4]
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], bx
call fcn.00401633
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xc8]
mov byte [esp + 0x12c], 5
call fcn.004038df
push str.Connection
mov edx, esi
push edx
call fcn.00403276
cmp dword [esp + 0xbc], ebp
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x14], ebx
jae 0x4254db
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4255b6
mov eax, str.Name
lea ecx, [esp + 0x6c]
call fcn.004015ff
mov byte [esp + 0x124], 6
mov edx, dword [esp + 0x14]
push edx
lea edx, [esp + 0x70]
lea ecx, [esp + 0x8c]
call fcn.004250b0
push 0xffffffffffffffff
lea ecx, [esp + 0xfc]
push ecx
xor ebx, ebx
mov byte [esp + 0x12c], 7
call fcn.00401709
cmp dword [esp + 0xa0], ebp
jb 0x425557
mov edx, dword [esp + 0x8c]
push edx
call fcn.0042bbfa
add esp, 4
xor esi, esi
mov edi, 7
mov byte [esp + 0x124], 5
cmp dword [esp + 0x84], ebp
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], esi
mov word [esp + 0x8c], si
jb 0x425592
mov eax, dword [esp + 0x70]
push eax
call fcn.0042bbfa
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], esi
mov word [esp + 0x74], si
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
xor ebx, ebx
cmp dword [esp + 0x10c], ebx
je 0x42562f
mov eax, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea esi, [esp + 0xa4]
call fcn.00401633
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xc8]
call fcn.004038df
cmp dword [esp + 0xbc], ebp
mov eax, dword [esp + 0xa8]
jae 0x4255f6
lea eax, [esp + 0xa8]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x425622
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
jmp 0x42562f
lea ecx, [esp + 0xf8]
push ecx
call fcn.00405167
mov byte [esp + 0x124], bl
cmp dword [esp + 0xbc], ebp
jb 0x42564f
mov edx, dword [esp + 0xa8]
push edx
call fcn.0042bbfa
add esp, 4
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], bx
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10c], ebx
je 0x42568d
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc0]
push ecx
add esi, 0x20
call fcn.00425af0
lea esi, [esp + 0xc0]
mov dword [esp + 0x124], 0xffffffff
call fcn.00425710
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x4c]
xor esi, esi
push edi
call fcn.0042c466
add ebx, 1
add esp, 4
cmp ebx, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
jb 0x425291
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x4256e4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042b9ba
add esp, 0x114
ret 4