Function at 0x40e9d0
Capabilities:
Get local ipv4 addresses

Disassembly:
sub esp, 0xf8
mov eax, dword [0x4ba8b4]
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x110]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
je 0x40ebaa
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40ea4f
mov eax, 0xcccccccd
mul dword [esp + 0x10]
shr edx, 9
lea ecx, [edx + edx*4]
shl ecx, 7
push ecx
call fcn.0045d558
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x40ea53
push esi
call fcn.0045d55d
add esp, 4
xor esi, esi
jmp 0x40ea53
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x40eade
jmp 0x40ea60
cmp dword [esi + 0x190], ebx
mov dword [esp + 0x18], ebx
jl 0x40eaca
lea edi, [esi + 0x1d8]
push edi
lea ecx, [esp + 0x20]
call fcn.00407060
mov eax, dword [eax]
mov ecx, dword [ebp]
push eax
push ecx
call fcn.0043e16e
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eab1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x40ead2
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x190]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jle 0x40ea72
xor ebx, ebx
mov esi, dword [esi]
cmp esi, ebx
jne 0x40ea60
jmp 0x40eade
mov eax, dword [esi + 0x19c]
mov dword [esp + 0x14], eax
xor ebx, ebx
push 0x49501c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x40ece9
push str.GetIpInterfaceEntry
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
cmp edx, ebx
je 0x40eb30
xor eax, eax
mov ecx, 0x2a
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x5c]
push eax
mov word [esp + 0x60], 2
mov dword [esp + 0x70], ecx
call edx
test eax, eax
jne 0x40ece2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x10c]
mov eax, dword [ecx]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call edi
mov edx, dword [esp + 0x110]
mov dword [esp + 0x24], eax
mov eax, dword [edx]
push eax
call edi
mov ebp, dword [ebp]
push ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
call edi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, 3
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
or eax, 0xffffffff
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call sub.iphlpapi.dll_CreateIpForwardEntry
jmp 0x40edc8
lea edx, [esp + 0x14]
push edx
xor eax, eax
mov ecx, 0xe
lea edi, [esp + 0x28]
push ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40ec08
mov eax, 0xcccccccd
mul dword [esp + 0x14]
shr edx, 9
lea eax, [edx + edx*4]
shl eax, 7
push eax
call fcn.0045d558
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x18], esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x40ec0c
push esi
call fcn.0045d55d
add esp, 4
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x40ec92
cmp dword [esi + 0x190], ebx
mov dword [esp + 0x1c], ebx
jl 0x40ec7e
lea edi, [esi + 0x1b0]
push edi
lea ecx, [esp + 0x24]
call fcn.00407060
mov eax, dword [eax]
mov ecx, dword [ebp]
push eax
push ecx
call fcn.0043e16e
mov ebx, eax
mov eax, dword [esp + 0x28]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ec65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x40ec86
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x190]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jle 0x40ec26
xor ebx, ebx
mov esi, dword [esi]
cmp esi, ebx
jne 0x40ec14
jmp 0x40ec92
mov eax, dword [esi + 0x19c]
mov dword [esp + 0x18], eax
xor ebx, ebx
push 0x49501c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x40ece9
push str.GetIpInterfaceEntry
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
cmp edx, ebx
jne 0x40ecbb
mov dword [esp + 0x48], ebx
jmp 0x40ed0e
xor eax, eax
mov ecx, 0x2a
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x5c]
push eax
mov word [esp + 0x60], 2
mov dword [esp + 0x70], ecx
call edx
test eax, eax
je 0x40ed03
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xf4]
call fcn.0043d9f4
add esp, 0xf8
ret
mov ecx, dword [esp + 0xf0]
mov dword [esp + 0x48], ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10c]
mov eax, dword [eax]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], edx
call esi
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
push eax
call esi
mov ebp, dword [ebp]
push ebp
mov dword [esp + 0x2c], eax
call esi
mov dword [esp + 0x30], eax
mov eax, 3
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
or eax, 0xffffffff
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call sub.iphlpapi.dll_CreateIpForwardEntry
cmp eax, 0x57
je 0x40edbb
cmp eax, 0x32
je 0x40edbb
cmp eax, 5
jne 0x40edbb
push ebx
push 0x40
push 0x494fa8
call fcn.0046a191
pop edi
pop esi
pop ebp
mov eax, 0xffffff9c
pop ebx
mov ecx, dword [esp + 0xf4]
call fcn.0043d9f4
add esp, 0xf8
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0043eda7
add esp, 4
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
call fcn.0043d9f4
add esp, 0xf8
ret