Function at 0x404975
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
jmp 0x404c15
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [esp], eax
call sub.WS2_32.dll_inet_addr
sub esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
add eax, 0x14
mov dword [esp], eax
call sub.WS2_32.dll_inet_addr
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x1c], 0
jne 0x4049b3
jmp 0x404c0d
mov dword [esp], str.255.255.255.255
call sub.WS2_32.dll_inet_addr
sub esp, 4
cmp eax, dword [ebp - 0xc]
jne 0x404b54
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x34], 0x800
mov dword [ebp - 0x14], 0x7a
jmp 0x404a42
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x404a22
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Couldnt_allocate__u_byte_MIB_IPFORWARDTABLE_buffer
mov dword [esp], 6
call fcn.00404254
mov eax, 0
jmp 0x404c24
mov dword [esp + 8], 0
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.IPHLPAPI.DLL_GetIpForwardTable
sub esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x7a
je 0x4049e2
cmp dword [ebp - 0x14], 0
je 0x404a86
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0040604c
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error_fetching_routing_table:__s
mov dword [esp], 6
call fcn.00404254
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0041ed88
mov eax, 0
jmp 0x404c24
mov dword [ebp - 0x18], 0
jmp 0x404b3b
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
shl eax, 3
lea ecx, [eax*8]
sub ecx, eax
mov eax, ecx
add eax, edx
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
shl eax, 3
lea ecx, [eax*8]
sub ecx, eax
mov eax, ecx
add eax, edx
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.WS2_32.dll_ntohl
sub esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x404b37
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x28]
jae 0x404b37
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
jne 0x404b37
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
shl eax, 3
lea ecx, [eax*8]
sub ecx, eax
mov eax, ecx
add eax, edx
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
ja 0x404a92
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0041ed88
mov dword [esp], 0x14
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x404b87
mov dword [esp + 4], str.Couldnt_allocate_ipx_interface_ip_
mov dword [esp], 6
call fcn.00404254
mov eax, 0
jmp 0x404c24
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xc]
not eax
or eax, dword [ebp - 0x1c]
mov edx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x404be8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0
jmp 0x404c0d
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [eax + 0x10], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x404980
mov eax, 1
leave
ret