Function at 0x411250
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x468
mov eax, dword [0x630160]
xor eax, esp
mov dword [esp + 0x460], eax
mov eax, dword [edi]
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
push esi
jg 0x411688
push 0x206
lea ecx, [esp + 0x5e]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov word [esp + 0x64], ax
call fcn.00422f70
add esp, 0xc
push 0x206
lea eax, [esp + 0x266]
xor edx, edx
push ebx
push eax
mov word [esp + 0x26c], dx
call fcn.00422f70
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x20119
xor eax, eax
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
push reloc.WS2_32.dll_bind
mov byte [esp + 0x38], bl
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov byte [esp + 0x49], al
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411686
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x6c]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x411677
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
inc ebx
lea esi, [esp + 0x58]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], 0x104
call fcn.00410c50
mov esi, eax
cmp esi, 0xffffffff
je 0x411651
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x28]
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 0x411646
cmp dword [esp + 0x1c], 0
jne 0x411646
mov edx, dword [edi]
shl edx, 4
lea eax, [edx + edi + 0xc48]
push eax
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea edx, [esp + 0x58]
push edx
push edi
lea ecx, [esp + 0x2c]
call fcn.00410e30
test eax, eax
jne 0x4113df
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.0041a513
mov eax, dword [edi]
mov edx, dword [esp + 0x58]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 0x194]
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 0x4114cd
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.0041a513
mov eax, dword [edi]
mov edx, dword [esp + 0x58]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 0x2c]
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 0x411570
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.0041a513
mov eax, dword [edi]
mov edx, dword [esp + 0x58]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 0xe0]
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.00422f70
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 0x4115fa
cmp dword [esp + 0x10], 0
jbe 0x4115fa
lea ecx, [esp + 0x260]
push ecx
call fcn.004010c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4115fa
mov edx, dword [esp + 0x10]
mov ecx, dword [edi]
lea eax, [edx + edx]
push eax
shl ecx, 8
lea edx, [ecx + edi + 0x248]
push ebx
push edx
call fcn.00422ff0
add esp, 0xc
push ebx
call fcn.0041960a
add esp, 4
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], 0x1010e
call ebp
test eax, eax
je 0x411637
test byte [esp + 0x1c], 0x20
je 0x411637
mov eax, dword [edi]
mov dword [edi + eax*4 + 0x1738], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [edi]
mov ebx, dword [esp + 0x20]
jmp 0x411651
test esi, esi
je 0x411651
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x6c]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x411322
mov eax, dword [esp + 0x14]
test eax, eax
je 0x411686
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
mov ecx, dword [esp + 0x46c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418878
add esp, 0x468
ret