Function at 0x402670
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0xfa14
call fcn.00413ba0
mov eax, dword [0x418a28]
xor eax, esp
mov dword [esp + 0xfa10], eax
push ebx
push ebp
push edi
mov edi, ecx
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x14], edi
xor ebx, ebx
xor ebp, ebp
call sub.wpcap.dll_pcap_findalldevs
add esp, 8
cmp eax, 0xffffffff
jne 0x4026d8
mov ecx, dword [esp + 0xfa24]
push ebp
push 4
push ecx
mov ebx, edi
call fcn.00405420
add esp, 0xc
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xfa10]
xor ecx, esp
call fcn.004075d7
add esp, 0xfa14
ret
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x402701
mov edx, dword [esp + 0xfa28]
push edi
push 5
push edx
mov ebx, str.No_interfaces_found__Make_sure_libpcap_WinPcap_is_properly_installed_and_you_have_the_right_to_access_to_the_remote_device.
call fcn.00405420
add esp, 0xc
or eax, 0xffffffff
jmp 0x4029b9
mov eax, dword [esi + 8]
add ebp, 1
test eax, eax
je 0x40271d
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402710
sub eax, edx
add ebx, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x402734
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402727
sub eax, edx
add ebx, eax
mov eax, dword [esi + 0xc]
add ebx, 0xc
test eax, eax
je 0x40274c
mov edi, edi
mov eax, dword [eax]
add ebx, 0x200
test eax, eax
jne 0x402740
mov esi, dword [esi]
test esi, esi
jne 0x402701
xor eax, eax
mov dword [esp + 0x20], eax
push ebp
lea edi, [esi + 8]
mov dword [esp + 0x28], eax
mov byte [esp + 0x24], al
mov byte [esp + 0x25], 0x82
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
movzx eax, bx
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, eax
je 0x402938
lea ebx, [esp + edi + 0x20]
add edi, 0xc
cmp edi, 0xfa00
mov dword [esp + 0x1c], edi
jg 0x402983
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov eax, dword [esi + 8]
xor ebp, ebp
cmp eax, ebp
je 0x4027d4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4027c0
sub eax, edx
movzx ecx, ax
mov dword [esp + 0x18], ecx
jmp 0x4027d8
mov dword [esp + 0x18], ebp
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4027f0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4027e2
sub eax, edx
movzx ebp, ax
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.WS2_32.dll_htons]
push edx
call edi
push ebp
mov word [ebx + 2], ax
call edi
mov word [ebx], ax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40282b
jmp 0x402820
add word [ebx + 8], 1
mov eax, dword [eax]
test eax, eax
jne 0x402820
movzx ecx, word [ebx + 8]
push ecx
call edi
mov edx, dword [esp + 0x1c]
mov word [ebx + 8], ax
mov ecx, dword [esi + 4]
movzx eax, bp
lea ebx, [eax + edx]
cmp ebx, 0xfa00
jg 0x402983
push eax
push ecx
lea edx, [esp + edx + 0x28]
push edx
call fcn.0040dcd0
movzx eax, word [esp + 0x24]
mov ecx, dword [esi + 8]
lea edi, [eax + ebx]
add esp, 0xc
cmp edi, 0xfa00
jg 0x402983
push eax
push ecx
lea eax, [esp + ebx + 0x28]
push eax
call fcn.0040dcd0
mov ebx, dword [esi + 0xc]
add esp, 0xc
test ebx, ebx
je 0x40292e
lea ebp, [esp + edi + 0x20]
jmp 0x4028a0
cmp edi, 0xf980
mov eax, ebp
jg 0x402983
mov ecx, dword [ebx + 4]
add edi, 0x80
add ebp, 0x80
call fcn.00403ae0
cmp edi, 0xf980
mov eax, ebp
jg 0x402983
mov ecx, dword [ebx + 8]
add edi, 0x80
add ebp, 0x80
call fcn.00403ae0
cmp edi, 0xf980
mov eax, ebp
jg 0x402983
mov ecx, dword [ebx + 0xc]
add edi, 0x80
add ebp, 0x80
call fcn.00403ae0
cmp edi, 0xf980
mov eax, ebp
jg 0x402983
mov ecx, dword [ebx + 0x10]
add edi, 0x80
add ebp, 0x80
call fcn.00403ae0
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4028a0
mov esi, dword [esi]
test esi, esi
jne 0x402790
mov esi, dword [esp + 0xfa28]
mov ebp, dword [sym.imp.WS2_32.dll_send]
push 0
lea ebx, [esp + 0x24]
push edi
mov ecx, ebx
push ecx
push esi
call ebp
cmp eax, 0xffffffff
je 0x40296b
cmp eax, edi
je 0x4029aa
push 0
sub edi, eax
push edi
add ebx, eax
push ebx
push esi
call ebp
cmp eax, 0xffffffff
jne 0x402957
mov esi, dword [esp + 0x10]
mov ebx, 0x100
mov edi, str.send__:
call fcn.00406290
or eax, 0xffffffff
jmp 0x4029b9
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40297e
push str.Not_enough_space_in_the_temporary_send_buffer.
push 0x100
push esi
call fcn.0040722a
add esp, 0xc
mov byte [esi + 0xff], 0
or eax, 0xffffffff
jmp 0x4029b9
mov edx, dword [esp + 0x14]
push edx
call sub.wpcap.dll_pcap_freealldevs
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xfa20]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004075d7
add esp, 0xfa14
ret