Function at 0x4076df
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa88
push ebx
push esi
push edi
push 0x3fb
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push ebx
push 0x1009
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x3c
call esi
pop ecx
mov edi, eax
lea eax, [ebp - 0x14]
push ebx
push eax
push edi
mov dword [ebp - 0xc], edi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
jne 0x407742
push edi
call dword [sym.imp.MSVCRT.dll_free]
push dword [ebp - 0x14]
call esi
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
mov edi, eax
lea eax, [ebp - 0x14]
push ebx
push eax
push edi
call sub.iphlpapi.dll_GetIpForwardTable
test eax, eax
jne 0x407a09
lea eax, [ebp - 0x1c]
mov dword [ebp + 8], ebx
push eax
call fcn.004018c1
test eax, eax
pop ecx
jne 0x407a17
cmp dword [edi], ebx
mov dword [ebp - 0x18], ebx
jbe 0x407a17
add edi, 4
mov ebx, 0x100
mov dword [ebp - 0x10], edi
mov esi, dword [ebp - 0x10]
push 0xe
pop ecx
lea edi, [ebp - 0x88]
push 0x7f
xor eax, eax
rep movsd dword es:[edi], dword [esi]
pop edx
xor esi, esi
mov ecx, edx
lea edi, [ebp - 0x486]
mov word [ebp - 0x488], si
mov word [ebp - 0x888], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x886]
mov word [ebp - 0x688], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x686]
mov word [ebp - 0x288], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x286]
mov word [ebp - 0xa88], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xa86]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x1c], eax
jne 0x4079ee
push 0x34
lea eax, [ebp - 0x50]
push esi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.WSOCK32.dll_ntohl]
add esp, 0xc
inc dword [ebp + 8]
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x38], ebx
push dword [ebp - 0x88]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], esi
call edi
mov ecx, eax
mov dword [ebp - 4], eax
and ecx, 0xff
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push ecx
xor ecx, ecx
mov cl, ah
push ecx
xor ecx, ecx
mov cl, byte [ebp - 2]
shr eax, 0x18
push ecx
push eax
push 0x4253e4
lea eax, [ebp - 0x488]
push ebx
push eax
call esi
lea eax, [ebp - 0x488]
add esp, 0x1c
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
push 0x104d
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x84]
mov dword [ebp - 0x48], 1
call edi
mov ecx, eax
mov dword [ebp - 4], eax
and ecx, 0xff
push ecx
xor ecx, ecx
mov cl, ah
push ecx
xor ecx, ecx
mov cl, byte [ebp - 2]
shr eax, 0x18
push ecx
push eax
push 0x4253e4
lea eax, [ebp - 0x888]
push ebx
push eax
call esi
lea eax, [ebp - 0x888]
add esp, 0x1c
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
push 0x104c
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x7c]
mov dword [ebp - 0x48], 2
call edi
mov ecx, eax
mov dword [ebp - 4], eax
and ecx, 0xff
push ecx
xor ecx, ecx
mov cl, ah
push ecx
xor ecx, ecx
mov cl, byte [ebp - 2]
shr eax, 0x18
push ecx
push eax
push 0x4253e4
lea eax, [ebp - 0x688]
push ebx
push eax
call esi
lea eax, [ebp - 0x688]
add esp, 0x1c
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
push 0x104c
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x78]
mov dword [ebp - 0x48], 3
call fcn.00407491
pop ecx
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x407983
mov ecx, eax
and ecx, 0xff
push ecx
xor ecx, ecx
mov cl, ah
push ecx
xor ecx, ecx
mov cl, byte [ebp - 2]
shr eax, 0x18
push ecx
push eax
push 0x4253e4
lea eax, [ebp - 0x288]
push ebx
push eax
call esi
add esp, 0x1c
jmp 0x407998
push dword [ebp - 0x78]
lea eax, [ebp - 0x288]
push 0x4256f4
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x288]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
push 0x104c
push dword [ebp - 8]
call edi
push dword [ebp - 0x64]
lea eax, [ebp - 0xa88]
mov dword [ebp - 0x48], 4
push 0x4248d0
push ebx
push eax
call esi
lea eax, [ebp - 0xa88]
add esp, 0x10
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
push 0x104c
push dword [ebp - 8]
call edi
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
add dword [ebp - 0x10], 0x38
cmp ecx, dword [eax]
jb 0x407780
xor ebx, ebx
mov edi, eax
jmp 0x407a17
push 0x4256bc
push 3
call fcn.0040148c
pop ecx
pop ecx
cmp edi, ebx
je 0x407a23
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret