Function at 0x40ce10
Capabilities:
Get local ipv4 addresses

Disassembly:
sub esp, 0xf8
mov eax, dword [0x4a9e6c]
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 0x40cfea
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40ce8f
mov eax, 0xcccccccd
mul dword [esp + 0x10]
shr edx, 9
lea ecx, [edx + edx*4]
shl ecx, 7
push ecx
call fcn.00456408
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x40ce93
push esi
call fcn.0045640d
add esp, 4
xor esi, esi
jmp 0x40ce93
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x40cf1e
jmp 0x40cea0
cmp dword [esi + 0x190], ebx
mov dword [esp + 0x18], ebx
jl 0x40cf0a
lea edi, [esi + 0x1d8]
push edi
lea ecx, [esp + 0x20]
call fcn.00406f90
mov eax, dword [eax]
mov ecx, dword [ebp]
push eax
push ecx
call fcn.0043701e
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 0x40cef1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x40cf12
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x190]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jle 0x40ceb2
xor ebx, ebx
mov esi, dword [esi]
cmp esi, ebx
jne 0x40cea0
jmp 0x40cf1e
mov eax, dword [esi + 0x19c]
mov dword [esp + 0x14], eax
xor ebx, ebx
push 0x484bfc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x40d129
push str.GetIpInterfaceEntry
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
cmp edx, ebx
je 0x40cf70
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 0x40d122
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 0x40d208
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 0x40d048
mov eax, 0xcccccccd
mul dword [esp + 0x14]
shr edx, 9
lea eax, [edx + edx*4]
shl eax, 7
push eax
call fcn.00456408
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 0x40d04c
push esi
call fcn.0045640d
add esp, 4
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x40d0d2
cmp dword [esi + 0x190], ebx
mov dword [esp + 0x1c], ebx
jl 0x40d0be
lea edi, [esi + 0x1b0]
push edi
lea ecx, [esp + 0x24]
call fcn.00406f90
mov eax, dword [eax]
mov ecx, dword [ebp]
push eax
push ecx
call fcn.0043701e
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 0x40d0a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x40d0c6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x190]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jle 0x40d066
xor ebx, ebx
mov esi, dword [esi]
cmp esi, ebx
jne 0x40d054
jmp 0x40d0d2
mov eax, dword [esi + 0x19c]
mov dword [esp + 0x18], eax
xor ebx, ebx
push 0x484bfc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x40d129
push str.GetIpInterfaceEntry
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
cmp edx, ebx
jne 0x40d0fb
mov dword [esp + 0x48], ebx
jmp 0x40d14e
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 0x40d143
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.004368a4
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 0x40d1fb
cmp eax, 0x32
je 0x40d1fb
cmp eax, 5
jne 0x40d1fb
push ebx
push 0x40
push 0x484b88
call fcn.00463041
pop edi
pop esi
pop ebp
mov eax, 0xffffff9c
pop ebx
mov ecx, dword [esp + 0xf4]
call fcn.004368a4
add esp, 0xf8
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00437b65
add esp, 4
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
call fcn.004368a4
add esp, 0xf8
ret