Function at 0x40e4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WSOCK32.dll_bind
call edi
test eax, eax
jne 0x40e4f8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
push ecx
push edx
push eax
call fcn.0040e6e0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov bl, al
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x40e4f8
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20]
mov byte [ebp - 1], 0
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpipLinkage
push reloc.WSOCK32.dll_bind
call edi
test eax, eax
jne 0x40e6ce
mov byte [ebp - 0x434], al
lea eax, [ebp - 0x2c]
push esi
lea ecx, [ebp - 0x434]
push eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x34]
push ecx
xor ebx, ebx
push edx
push ebx
mov esi, 0x400
push str.Bind
push eax
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e6c3
mov al, byte [ebp - 0x434]
test al, al
je 0x40e6c3
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x30]
push eax
push ecx
call fcn.0040eb80
add esp, 0xc
test al, al
je 0x40e6c3
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 8]
call fcn.0040ef30
push esi
lea ecx, [ebp - 8]
call fcn.0040f170
push 0x4208a8
lea ecx, [ebp - 8]
call fcn.0040fda0
mov esi, eax
cmp esi, ebx
jbe 0x40e692
lea ecx, [ebp - 0x14]
call fcn.0040ef30
dec esi
push 0x4208a8
lea edx, [ebp - 0x14]
push esi
push edx
lea ecx, [ebp - 8]
call fcn.0040fdf0
lea ecx, [ebp - 0x10]
call fcn.0040ef30
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040f340
lea ecx, [ebp - 0x14]
call fcn.00404a20
lea ecx, [ebp - 0xc]
call fcn.0040ef30
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea ecx, [ebp - 0xc]
call fcn.0040f170
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
call fcn.0040f5a0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x18]
push edx
push 0x20019
push ebx
push eax
push reloc.WSOCK32.dll_bind
call edi
test eax, eax
jne 0x40e646
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
push ecx
push edx
push eax
call fcn.0040e6e0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov byte [ebp - 1], al
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x40e66c
cmp byte [eax], 0
jne 0x40e657
mov dword [ebp - 0xc], ebx
jmp 0x40e66c
lea ecx, [ebp - 0xc]
call fcn.00410680
cmp dword [ebp - 0xc], ebx
je 0x40e66c
lea ecx, [ebp - 0xc]
call fcn.00410680
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x40e692
cmp byte [eax], 0
jne 0x40e67d
mov dword [ebp - 0x10], ebx
jmp 0x40e692
lea ecx, [ebp - 0x10]
call fcn.00410680
cmp dword [ebp - 0x10], ebx
je 0x40e692
lea ecx, [ebp - 0x10]
call fcn.00410680
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x40e6b8
cmp byte [eax], 0
jne 0x40e6a3
mov dword [ebp - 8], ebx
jmp 0x40e6b8
lea ecx, [ebp - 8]
call fcn.00410680
cmp dword [ebp - 8], ebx
je 0x40e6b8
lea ecx, [ebp - 8]
call fcn.00410680
mov al, byte [ebp - 1]
test al, al
je 0x40e56d
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret