Function at 0x402ae0
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1c]
push ebx
sub esp, 0x50
mov dword [ebp - 0x1c], 0
mov esi, dword [sym.imp.iphlpapi.dll_GetIpForwardTable]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0xc
mov ebx, eax
mov eax, 0x12e
call fcn.00401820
xor eax, eax
cmp ebx, 0x57
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__ld_n
mov dword [esp], eax
call fcn.00402000
mov dword [esp + 4], edi
mov dword [esp + 8], 0
mov dword [esp], 0
call esi
sub esp, 0xc
mov ebx, eax
mov eax, 0x131
call fcn.00401820
xor eax, eax
cmp ebx, 0x7a
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__ld_n
mov dword [esp], eax
call fcn.00402000
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [ebp - 0x38], eax
mov dword [esp + 4], edi
mov edi, eax
mov dword [esp + 8], 0
mov dword [esp], eax
call esi
sub esp, 0xc
mov ebx, eax
mov eax, 0x135
call fcn.00401820
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__ld_n
mov dword [esp], eax
call fcn.00402000
lea eax, [ebp - 0x18]
mov dword [esp], 2
mov dword [esp + 4], eax
call dword [sym.imp.iphlpapi.dll_GetIpForwardTable2]
sub esp, 8
mov ebx, eax
mov eax, 0x138
call fcn.00401820
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__ld_n
mov dword [esp], eax
call fcn.00402000
mov eax, 0x139
call fcn.00401820
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov eax, dword [edi]
mov dword [esp + 4], str.got__ld_vs__ld_n
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 0xc], edx
movzx eax, al
mov dword [esp], eax
call fcn.00402000
lea eax, [ebp - 0x14]
mov dword [esp], 2
mov dword [esp + 4], eax
call dword [sym.imp.iphlpapi.dll_GetUnicastIpAddressTable]
sub esp, 8
mov ebx, eax
mov eax, 0x13d
call fcn.00401820
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.got__ld_n
mov dword [esp], eax
call fcn.00402000
mov eax, 0x13f
call fcn.00401820
mov eax, dword [edi]
mov dword [esp], str.IP_forward_table:__lu_entries_n
mov dword [esp + 4], eax
call fcn.00401b30
mov edx, dword [edi]
test edx, edx
je 0x403140
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
lea edi, [eax + 4]
mov ebx, edi
jmp 0x402ecc
call fcn.0040f800
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x162
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], str.got__ld_n
cmp eax, 3
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402000
call fcn.0040f800
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x165
mov edx, dword [esi + 0x58]
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], str.got__ld_vs__d_n
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402000
call fcn.0040f800
mov ecx, 1
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x166
mov edx, dword [esi + 0x60]
mov eax, dword [ebx + 0x1c]
cmp edx, eax
je 0x402d56
lea ecx, [eax + 1]
cmp ecx, edx
sete cl
movzx ecx, cl
mov dword [esp], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.got__ld_vs__ld_n
call fcn.00402000
call fcn.0040f800
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x168
mov eax, dword [ebx + 0x20]
mov dword [esp + 4], str.got__08lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402000
call fcn.0040f800
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x16a
mov edx, dword [ebx + 0x24]
mov eax, dword [esi + 0x54]
mov dword [esp + 4], str.got__ld_vs__ld_n
mov dword [esp + 8], edx
cmp edx, eax
mov dword [esp + 0xc], eax
setae al
movzx eax, al
mov dword [esp], eax
call fcn.00402000
call fcn.0040f800
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x16b
mov eax, dword [ebx + 0x28]
mov dword [esp + 4], str.got__ld_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402000
call fcn.0040f800
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x16c
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], str.got__ld_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402000
call fcn.0040f800
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x16d
mov eax, dword [ebx + 0x30]
mov dword [esp + 4], str.got__ld_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402000
call fcn.0040f800
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x16e
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.got__ld_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402000
call fcn.0040f800
mov edx, dword [eax + 0xbec]
test edx, edx
je 0x402eb3
sub edx, 1
mov dword [eax + 0xbec], edx
mov edi, dword [ebp - 0x38]
add dword [ebp - 0x20], 1
add ebx, 0x38
add dword [ebp - 0x28], 0x68
mov eax, dword [ebp - 0x20]
cmp eax, dword [edi]
jae 0x403140
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
lea esi, [eax + edi + 8]
mov eax, dword [ebp - 0x20]
mov dword [esp], 0x4147cb
mov dword [esp + 4], eax
call fcn.004012c0
call fcn.0040f800
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x148
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
call fcn.00401340
mov edi, eax
mov eax, dword [ebx + 4]
call fcn.00401340
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx]
call fcn.00401340
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x18], ecx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x14], edx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov edi, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp], str.dest__s_mask__s_gw__s_if__lu_type__lu_proto__lu_n
call fcn.00401b30
call fcn.0040f800
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x14c
mov edx, dword [esi + 0x10]
mov eax, dword [ebx]
mov dword [esp + 4], str.got__08lx_vs__08lx_n
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402000
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
movzx eax, byte [esi + 0x28]
mov dword [esp], eax
call dword [sym.imp.iphlpapi.dll_ConvertLengthToIpv4Mask]
sub esp, 8
call fcn.0040f800
mov dword [eax], 0x4141a7
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], 0x14f
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.got__08lx_vs__08lx_n
movzx eax, al
mov dword [esp], eax
call fcn.00402000
call fcn.0040f800
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x150
mov eax, dword [ebx + 8]
mov dword [esp + 4], str.got__ld_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402000
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4030d0
mov dword [ebp - 0x24], ecx
call fcn.0040f800
mov ecx, dword [ebp - 0x24]
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x15e
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xc], ecx
cmp eax, ecx
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.got__08lx_vs__08lx_n
movzx eax, al
mov dword [esp], eax
call fcn.00402000
call fcn.0040f800
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x160
mov eax, dword [ebx + 0x10]
mov edx, dword [esi + 8]
mov dword [esp + 4], str.got__ld_vs__ld_n
mov dword [esp + 8], eax
cmp edx, eax
mov dword [esp + 0xc], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402000
mov eax, dword [esi + 0x30]
test eax, eax
je 0x402cc0
call fcn.0040f800
mov dword [eax], 0x4141a7
mov dword [eax + 4], 0x164
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], str.got__ld_n
cmp eax, 4
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402000
jmp 0x402cf2
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
mov dword [ebp - 0x3c], eax
test edi, edi
je 0x40301b
mov edx, dword [esi]
mov dword [ebp - 0x34], esi
add eax, 0x28
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 4]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x2c], edx
xor edx, edx
mov esi, dword [ebp - 0x2c]
jmp 0x40310a
add edx, 1
add eax, 0x50
cmp edx, edi
je 0x403130
mov ebx, dword [eax + 4]
mov ecx, dword [ebp - 0x24]
xor ecx, dword [eax]
xor ebx, esi
or ecx, ebx
jne 0x403100
mov edi, dword [ebp - 0x3c]
lea eax, [edx + edx*4]
mov ebx, dword [ebp - 0x30]
shl eax, 4
mov esi, dword [ebp - 0x34]
mov ecx, dword [edi + eax + 0xc]
jmp 0x40301b
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x34]
jmp 0x40301b
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.iphlpapi.dll_FreeMibTable]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x18]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x38]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_free]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret