Function at 0x404e20
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 [esi], ebx
ja 0x405165
push 0x206
lea ecx, [esp + 0x56]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x10], ebx
mov word [esp + 0x5c], ax
call fcn.00451da0
push 0x206
lea eax, [esp + 0x26a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x270], dx
call fcn.00451da0
add esp, 0x18
lea ecx, [esp + 4]
push ecx
push 0x20019
xor eax, eax
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x1010101
mov dword [esp + 0x24], 0x1010102
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 + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405165
mov ecx, dword [esp + 4]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x64]
push eax
push ebx
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x405156
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
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 + 0x1c], edx
call fcn.00401330
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 edi, eax
cmp edi, 0xffffffff
je 0x40512e
mov eax, dword [esi]
add eax, 0xc2
shl eax, 4
add eax, esi
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.00406420
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.00450247
mov eax, dword [esi]
mov edx, dword [esp + 0x58]
lea ecx, [eax + eax*8]
lea eax, [esi + 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 + 0x18]
push eax
push 0x12
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x30]
push edx
push 0x170002
push edi
call ebp
test eax, eax
je 0x40505f
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.00450247
mov eax, dword [esi]
mov edx, dword [esp + 0x58]
lea ecx, [eax + eax*8]
lea eax, [esi + 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 + 0x18]
push eax
push 0x12
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x2c]
push edx
push 0x170002
push edi
call ebp
test eax, eax
je 0x4050fa
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.00450247
mov eax, dword [esi]
mov edx, dword [esp + 0x58]
lea ecx, [eax + eax*8]
lea eax, [esi + 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
mov eax, dword [esi]
shl eax, 8
lea ecx, [esp + 0x58]
lea edx, [eax + esi + 0x220]
lea ebx, [ebx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x405110
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esi]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x6c]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404f00
pop edi
pop ebp
mov eax, dword [esp + 4]
test eax, eax
je 0x405165
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x460]
mov eax, dword [esi]
pop ebx
xor ecx, esp
call fcn.0044f3b0
add esp, 0x460
ret