Function at 0x401010
Capabilities:
Get routing table

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x280
mov eax, dword [ebp - 0x14]
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40105f
mov dword [ebp - 0x10], 8
jmp 0x4012da
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40109e
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call sub.msvcrt.dll_malloc
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40109e
mov dword [ebp - 0x10], 8
jmp 0x4012da
push 1
lea edx, [ebp - 0x18]
push edx
push 0
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
jne 0x4010d1
mov eax, dword [ebp - 0x18]
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4010d1
mov dword [ebp - 0x10], 8
jmp 0x4012da
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4012da
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.iphlpapi.dll_GetIpForwardTable
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4012da
mov edx, dword [ebp - 4]
add edx, 0x1d8
push edx
push 0x403244
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push str._n
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 4
push str.Interface_List_n
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 4
cmp dword [ebp - 4], 0
je 0x401171
mov ecx, dword [ebp - 4]
add ecx, 0x10c
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x19c]
push eax
push str.0x_lu_...........................__hs_n
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
jmp 0x40113f
push str._n
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 4
push str._n
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 4
push str.Active_Routes:_n
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 4
push str.Metric
push str.Interface
push str.Gateway
push str.Netmask
push str.Network_Destination
push str.__27s__17s__14s__11s__10s_n
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x18
mov dword [ebp - 0xc], 0
jmp 0x4011d4
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx]
jae 0x40128e
imul eax, dword [ebp - 0xc], 0x38
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax + 4]
push edx
call dword [sym.imp.ws2_32.dll_inet_ntoa]
push eax
push 0x403244
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
imul ecx, dword [ebp - 0xc], 0x38
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 8]
push eax
call dword [sym.imp.ws2_32.dll_inet_ntoa]
push eax
push 0x403244
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
imul edx, dword [ebp - 0xc], 0x38
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 0x10]
push ecx
call dword [sym.imp.ws2_32.dll_inet_ntoa]
push eax
push 0x403244
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
imul eax, dword [ebp - 0xc], 0x38
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax + 0x28]
push edx
imul eax, dword [ebp - 0xc], 0x38
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax + 0x14]
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0xa4]
push edx
push str._17s_17s_17s_16ld_9ld_n
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x18
jmp 0x4011cb
lea eax, [ebp - 0x38]
push eax
push str.Default_Gateway:_18s_n
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 8
push str._n
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 4
push str.Persistent_Routes:_n
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call sub.msvcrt.dll_free
add esp, 4
mov edx, dword [ebp - 4]
push edx
call sub.msvcrt.dll_free
add esp, 4
xor eax, eax
jmp 0x40131d
cmp dword [ebp - 4], 0
je 0x4012ec
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_free
add esp, 4
cmp dword [ebp - 8], 0
je 0x4012fe
mov ecx, dword [ebp - 8]
push ecx
call sub.msvcrt.dll_free
add esp, 4
push str.Route_enumerate_failed_n
mov edx, 0x20
shl edx, 1
add edx, dword [sym.imp.msvcrt.dll__iob]
push edx
call dword [sym.imp.msvcrt.dll_fwprintf]
add esp, 8
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret