Function at 0x4075c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x470
mov eax, dword [0x487fb0]
xor eax, esp
mov dword [esp + 0x46c], eax
push ebx
xor ebx, ebx
cmp dword [edi], ebx
ja 0x407fda
push ebp
push esi
push 0x206
lea ecx, [esp + 0x276]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x28], ebx
mov word [esp + 0x27c], ax
call fcn.00453a00
push 0x206
lea eax, [esp + 0x7a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x80], dx
call fcn.00453a00
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
push 0x20019
xor eax, eax
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x48], bl
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov byte [esp + 0x59], al
mov dword [esp + 0x28], ebx
xor ebp, ebp
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407ba2
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x284]
push eax
push ebx
push ecx
xor esi, esi
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x407b7c
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x27c]
push eax
inc esi
push ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407b53
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push ebp
lea eax, [esp + 0x30]
push eax
push ebx
push str.ServiceName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407b53
mov esi, dword [esp + 0x1c]
cmp esi, ebx
jbe 0x407b53
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041206b
mov ebp, eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax]
push ecx
push ebx
push ebp
call fcn.00453a00
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
push ebp
lea eax, [esp + 0x30]
push eax
push ebx
push str.ServiceName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407b53
push ebp
lea edx, [esp + 0x6c]
push str.._s
push edx
mov edx, 0x104
call fcn.00401360
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4077ad
cmp ebp, ebx
je 0x407b53
push ebp
call fcn.0045141a
add esp, 4
xor ebp, ebp
jmp 0x407b53
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x38]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push 0x170002
push esi
mov dword [esp + 0x2c], 0x10114
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407f1a
cmp dword [esp + 0x2c], ebx
jne 0x407f1a
mov ecx, dword [edi]
add ecx, 0xc2
shl ecx, 4
add ecx, edi
push ecx
push ebp
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea edx, [esp + 0x34]
push edx
mov ebx, ebp
call fcn.00408000
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40784b
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x18]
push eax
push 0x12
lea ecx, [esp + 0x40]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push esi
mov dword [esp + 0x2c], 0x10205
call ebx
test ebp, ebp
je 0x40785a
push ebp
call fcn.0045141a
add esp, 4
xor ebp, ebp
movzx eax, byte [esp + 0x39]
movzx ecx, byte [esp + 0x38]
movzx edx, byte [esp + 0x37]
push eax
movzx eax, byte [esp + 0x3a]
push ecx
movzx ecx, byte [esp + 0x3d]
push edx
movzx edx, byte [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0x60]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0045261f
mov eax, dword [edi]
mov edx, dword [esp + 0x68]
lea ecx, [eax + eax*8]
mov dword [edi + ecx*2 + 0x16c], edx
lea eax, [edi + ecx*2 + 0x16c]
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x78]
mov byte [eax + 0x10], dl
add esp, 0x20
xor eax, eax
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x18]
push eax
push 0x12
lea ecx, [esp + 0x40]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push esi
mov dword [esp + 0x2c], 0x1010101
call ebx
test eax, eax
je 0x407963
movzx eax, byte [esp + 0x39]
movzx ecx, byte [esp + 0x38]
movzx edx, byte [esp + 0x37]
push eax
movzx eax, byte [esp + 0x3a]
push ecx
movzx ecx, byte [esp + 0x3d]
push edx
movzx edx, byte [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0x60]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0045261f
mov eax, dword [edi]
mov edx, dword [esp + 0x68]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 4]
mov dword [eax], edx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], dl
xor eax, eax
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x18]
push eax
push 0x12
lea ecx, [esp + 0x40]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push esi
mov dword [esp + 0x2c], 0x1010102
call ebx
test eax, eax
je 0x407a06
movzx eax, byte [esp + 0x39]
movzx ecx, byte [esp + 0x38]
movzx edx, byte [esp + 0x37]
push eax
movzx eax, byte [esp + 0x3a]
push ecx
movzx ecx, byte [esp + 0x3d]
push edx
movzx edx, byte [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0x60]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0045261f
mov eax, dword [edi]
mov edx, dword [esp + 0x68]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 0xb8]
mov dword [eax], edx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], dl
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push str.Description
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407ad2
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x407b31
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041206b
mov ebx, eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax]
push ecx
push 0
push ebx
mov dword [esp + 0x34], ebx
call fcn.00453a00
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x30]
push eax
push 0
push str.Description
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407acc
mov edx, dword [edi]
shl edx, 8
mov ecx, ebx
lea edx, [edx + edi + 0x220]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x407aa0
test ebx, ebx
je 0x407b31
mov eax, dword [esp + 0x24]
push eax
call fcn.0045141a
add esp, 4
mov dword [esp + 0x24], 0
jmp 0x407b31
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x208
lea ecx, [esp + 0x6c]
push 0
push ecx
mov dword [esp + 0x18], 0x1010d
call fcn.00453a00
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push 0x208
lea eax, [esp + 0x74]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x170002
push esi
call ebx
test eax, eax
je 0x407b31
mov edx, dword [esp + 0x14]
mov ecx, dword [edi]
push edx
lea eax, [esp + 0x6c]
shl ecx, 8
push eax
lea edx, [ecx + edi + 0x220]
push edx
call fcn.00453d50
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
inc dword [edi]
test eax, eax
je 0x407b51
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
xor ebx, ebx
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x284]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4076a5
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x407b8f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x407ba2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
cmp dword [edi], ebx
ja 0x407fc0
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParametersAdapters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407f9e
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x284]
push edx
push ebx
push eax
xor esi, esi
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x407f9e
lea esp, [esp]
lea ecx, [esp + 0x270]
push ecx
lea eax, [esp + 0x6c]
mov edx, 0x104
push str.._s
inc esi
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], edx
call fcn.00401360
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407f75
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x38]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x170002
push esi
mov dword [esp + 0x2c], 0x10114
call ebp
test eax, eax
je 0x407f6e
cmp dword [esp + 0x2c], ebx
jne 0x407f6e
mov edx, dword [edi]
add edx, 0xc2
shl edx, 4
add edx, edi
push edx
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea ecx, [esp + 0x34]
push ecx
lea ebx, [esp + 0x274]
call fcn.00408000
test eax, eax
jne 0x407cf7
push eax
lea edx, [esp + 0x18]
push edx
push 0x12
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x40]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x170002
push esi
mov dword [esp + 0x2c], 0x10205
call ebp
movzx edx, byte [esp + 0x39]
movzx eax, byte [esp + 0x38]
movzx ecx, byte [esp + 0x37]
push edx
movzx edx, byte [esp + 0x3a]
push eax
movzx eax, byte [esp + 0x3d]
push ecx
movzx ecx, byte [esp + 0x40]
push edx
push eax
push ecx
lea edx, [esp + 0x60]
push str._02X__02X__02X__02X__02X__02X
push edx
call fcn.0045261f
mov eax, dword [edi]
mov ecx, dword [esp + 0x68]
lea eax, [eax + eax*8]
mov dword [edi + eax*2 + 0x16c], ecx
mov edx, dword [esp + 0x6c]
mov dword [edi + eax*2 + 0x170], edx
mov ecx, dword [esp + 0x70]
lea eax, [edi + eax*2 + 0x16c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x78]
mov byte [eax + 0x10], cl
add esp, 0x20
xor eax, eax
push eax
lea edx, [esp + 0x18]
push edx
push 0x12
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x40]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x170002
push esi
mov dword [esp + 0x2c], 0x1010101
call ebp
test eax, eax
je 0x407e06
movzx edx, byte [esp + 0x39]
movzx eax, byte [esp + 0x38]
movzx ecx, byte [esp + 0x37]
push edx
movzx edx, byte [esp + 0x3a]
push eax
movzx eax, byte [esp + 0x3d]
push ecx
movzx ecx, byte [esp + 0x40]
push edx
push eax
push ecx
lea edx, [esp + 0x60]
push str._02X__02X__02X__02X__02X__02X
push edx
call fcn.0045261f
mov eax, dword [edi]
mov ecx, dword [esp + 0x68]
lea eax, [eax + eax*8]
mov dword [edi + eax*2 + 4], ecx
mov edx, dword [esp + 0x6c]
lea eax, [edi + eax*2 + 4]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], cl
xor eax, eax
push eax
lea edx, [esp + 0x18]
push edx
push 0x12
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x40]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x170002
push esi
mov dword [esp + 0x2c], 0x1010102
call ebp
test eax, eax
je 0x407eae
movzx edx, byte [esp + 0x39]
movzx eax, byte [esp + 0x38]
movzx ecx, byte [esp + 0x37]
push edx
movzx edx, byte [esp + 0x3a]
push eax
movzx eax, byte [esp + 0x3d]
push ecx
movzx ecx, byte [esp + 0x40]
push edx
push eax
push ecx
lea edx, [esp + 0x60]
push str._02X__02X__02X__02X__02X__02X
push edx
call fcn.0045261f
mov eax, dword [edi]
mov ecx, dword [esp + 0x68]
lea eax, [eax + eax*8]
mov dword [edi + eax*2 + 0xb8], ecx
mov edx, dword [esp + 0x6c]
lea eax, [edi + eax*2 + 0xb8]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x78]
add esp, 0x20
mov byte [eax + 0x10], cl
push 0x208
lea edx, [esp + 0x6c]
push 0
push edx
mov dword [esp + 0x18], 0x1010d
call fcn.00453a00
add esp, 0xc
push 0
lea eax, [esp + 0x18]
push eax
push 0x208
lea ecx, [esp + 0x74]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push esi
call ebp
mov edx, dword [edi]
shl edx, 8
test eax, eax
je 0x407f3d
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea eax, [edx + edi + 0x220]
push eax
call fcn.00453d50
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [edi]
xor ebx, ebx
jmp 0x407f75
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x407b53
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
jmp 0x407b53
lea ecx, [esp + 0x270]
lea edx, [edx + edi + 0x220]
jmp 0x407f50
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x407f50
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [edi]
xor ebx, ebx
jmp 0x407f75
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x284]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x407c00
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x407fb1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x407fc0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x46c]
xor ecx, esp
call fcn.00451380
add esp, 0x470
ret
mov ecx, dword [esp + 0x470]
mov eax, dword [edi]
pop ebx
xor ecx, esp
call fcn.00451380
add esp, 0x470
ret