Function at 0x406a40
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x460
mov eax, dword [0x487fb0]
xor eax, esp
mov dword [esp + 0x45c], eax
push ebx
xor ebx, ebx
cmp dword [edi], ebx
ja 0x406e74
push 0x206
lea ecx, [esp + 0x56]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x18], ebx
mov word [esp + 0x5c], ax
call fcn.00453a00
push 0x206
lea eax, [esp + 0x26a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x270], dx
call fcn.00453a00
add esp, 0x18
lea ecx, [esp + 0xc]
push ecx
push 0x20019
xor eax, eax
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x30], bl
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov byte [esp + 0x41], al
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406e74
mov ecx, dword [esp + 0xc]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x64]
push eax
push ebx
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x406e65
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
lea ecx, [ecx]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x264]
mov edx, 0x104
push str.._s
inc ebx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edx
call fcn.00401360
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0x80
lea edx, [esp + 0x278]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406e3d
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push esi
mov dword [esp + 0x2c], 0x10114
call ebp
test eax, eax
je 0x406e36
cmp dword [esp + 0x1c], 0
jne 0x406e36
mov eax, dword [edi]
add eax, 0xc2
shl eax, 4
add eax, edi
push eax
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea edx, [esp + 0x24]
push edx
lea ebx, [esp + 0x5c]
call fcn.00408000
test eax, eax
jne 0x406bfe
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x14]
push eax
push 0x12
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push esi
mov dword [esp + 0x2c], 0x10205
call ebp
movzx eax, byte [esp + 0x29]
movzx ecx, byte [esp + 0x28]
movzx edx, byte [esp + 0x27]
push eax
movzx eax, byte [esp + 0x2a]
push ecx
movzx ecx, byte [esp + 0x2d]
push edx
movzx edx, byte [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0045261f
mov eax, dword [edi]
mov edx, dword [esp + 0x58]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 0x16c]
mov dword [eax], edx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x64]
add esp, 0x20
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x48]
push 0
mov byte [eax + 0x10], dl
lea eax, [esp + 0x14]
push eax
push 0x12
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push esi
mov dword [esp + 0x2c], 0x1010101
call ebp
test eax, eax
je 0x406cec
movzx eax, byte [esp + 0x29]
movzx ecx, byte [esp + 0x28]
movzx edx, byte [esp + 0x27]
push eax
movzx eax, byte [esp + 0x2a]
push ecx
movzx ecx, byte [esp + 0x2d]
push edx
movzx edx, byte [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0045261f
mov eax, dword [edi]
mov edx, dword [esp + 0x58]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 4]
mov dword [eax], edx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x68]
add esp, 0x20
mov byte [eax + 0x10], dl
xor eax, eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x14]
push eax
push 0x12
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push 0x170002
push esi
mov dword [esp + 0x2c], 0x1010102
call ebp
test eax, eax
je 0x406d8f
movzx eax, byte [esp + 0x29]
movzx ecx, byte [esp + 0x28]
movzx edx, byte [esp + 0x27]
push eax
movzx eax, byte [esp + 0x2a]
push ecx
movzx ecx, byte [esp + 0x2d]
push edx
movzx edx, byte [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0045261f
mov eax, dword [edi]
mov edx, dword [esp + 0x58]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 0xb8]
mov dword [eax], edx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x68]
add esp, 0x20
mov byte [eax + 0x10], dl
push 0x208
lea eax, [esp + 0x264]
push 0
push eax
mov dword [esp + 0x18], 0x1010d
call fcn.00453a00
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x208
lea edx, [esp + 0x26c]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push 0x170002
push esi
call ebp
test eax, eax
je 0x406e06
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
push ecx
lea edx, [esp + 0x264]
shl eax, 8
push edx
lea ecx, [eax + edi + 0x220]
push ecx
call fcn.00453d50
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [edi]
mov ebx, dword [esp + 0x20]
jmp 0x406e3d
mov edx, dword [edi]
shl edx, 8
lea ecx, [esp + 0x58]
lea edx, [edx + edi + 0x220]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x406e16
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [edi]
mov ebx, dword [esp + 0x20]
jmp 0x406e3d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x6c]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x406b10
pop esi
pop ebp
mov eax, dword [esp + 0xc]
test eax, eax
je 0x406e74
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x460]
mov eax, dword [edi]
pop ebx
xor ecx, esp
call fcn.00451380
add esp, 0x460
ret