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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x42d084]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 2]
mov dword [ebp - 8], eax
mov ecx, dword [0x42f5cc]
and ecx, 1
je 0x404655
push str.icmp_input
push 0x428b4c
mov edx, dword [0x42f5c8]
push edx
call fcn.00414be4
add esp, 0xc
mov eax, dword [0x42f5c8]
push eax
call fcn.00414b88
add esp, 4
mov ecx, dword [0x42f5cc]
and ecx, 1
je 0x4046a8
mov edx, dword [0x42f5c8]
push edx
push 0x20
call fcn.00415811
add esp, 8
mov eax, dword [ebp + 8]
push eax
push str.m___lx
mov ecx, dword [0x42f5c8]
push ecx
call fcn.00414be4
add esp, 0xc
mov edx, dword [0x42f5c8]
push edx
push 0xa
call fcn.00415811
add esp, 8
mov eax, dword [0x42f5c8]
push eax
call fcn.00414b88
add esp, 4
mov ecx, dword [0x42f5cc]
and ecx, 1
je 0x4046fe
mov edx, dword [0x42f5c8]
push edx
push 0x20
call fcn.00415811
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
push str.m_len___d
mov edx, dword [0x42f5c8]
push edx
call fcn.00414be4
add esp, 0xc
mov eax, dword [0x42f5c8]
push eax
push 0xa
call fcn.00415811
add esp, 8
mov ecx, dword [0x42f5c8]
push ecx
call fcn.00414b88
add esp, 4
mov edx, dword [0x42f29c]
add edx, 1
mov dword [0x42f29c], edx
cmp dword [ebp - 8], 8
jge 0x404736
mov eax, dword [0x42f2a0]
add eax, 1
mov dword [0x42f2a0], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406de0
add esp, 4
jmp 0x404aa5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
sub eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401700
add esp, 8
test eax, eax
je 0x404780
mov eax, dword [0x42f2a4]
add eax, 1
mov dword [0x42f2a4], eax
jmp 0x404720
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
add edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
sub edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], edx
mov ecx, dword [0x42f5cc]
and ecx, 1
je 0x4047f4
mov edx, dword [0x42f5c8]
push edx
push 0x20
call fcn.00415811
add esp, 8
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
push ecx
push str.icmp_type___d
mov edx, dword [0x42f5c8]
push edx
call fcn.00414be4
add esp, 0xc
mov eax, dword [0x42f5c8]
push eax
push 0xa
call fcn.00415811
add esp, 8
mov ecx, dword [0x42f5c8]
push ecx
call fcn.00414b88
add esp, 4
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
sub ecx, 3
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0xe
ja case.0x40481a.3
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0x404ac0]
jmp dword [eax*4 + 0x404ab4]
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 2]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov word [ecx + 2], ax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
cmp eax, dword [0x42f3a4]
jne 0x404857
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404fb0
add esp, 4
jmp 0x404a6b
call fcn.0040cb50
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40486a
jmp 0x404720
mov edx, dword [ebp - 0x24]
push edx
call fcn.004145a0
add esp, 4
cmp eax, 0xffffffff
jne 0x4048e1
mov eax, dword [0x42f5cc]
and eax, 2
je 0x4048bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0041528e
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.icmp_input_udp_attach_errno___d__s_n
mov ecx, dword [0x42f5c8]
push ecx
call fcn.00414be4
add esp, 0x10
mov edx, dword [0x42f5c8]
push edx
call fcn.00414b88
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040cba0
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406de0
add esp, 4
jmp 0x404aa5
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x18], edx
push 7
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x24]
mov word [ecx + 0x20], ax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x1c], eax
push 9
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x24]
mov word [edx + 0x22], ax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 1]
mov byte [eax + 0x24], dl
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x26], 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x27], 4
mov edx, 2
mov word [ebp - 0x20], dx
push 0xffffff00
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp - 0x24]
and eax, dword [ecx + 0x18]
cmp eax, dword [0x42f39c]
jne 0x404997
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
and eax, 0xff
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
je 0x40497c
jmp 0x40498c
call fcn.0040bcc0
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
jmp 0x404995
mov edx, dword [0x42f3e0]
mov dword [ebp - 0x1c], edx
jmp 0x4049a0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x24]
mov ax, word [edx + 0x20]
mov word [ebp - 0x1e], ax
mov dword [ebp - 0x34], str.This_is_a_psuedo_PING_packet_used_by_Slirp_to_emulate_ICMP_ECHO_REQUEST_packets._n
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x34]
mov al, byte [edx]
mov byte [ebp - 0x39], al
add dword [ebp - 0x34], 1
cmp byte [ebp - 0x39], 0
jne 0x4049bb
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x38]
mov dword [ebp - 0x40], ecx
push 0x10
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x40]
push eax
push str.This_is_a_psuedo_PING_packet_used_by_Slirp_to_emulate_ICMP_ECHO_REQUEST_packets._n
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x404a6b
mov eax, dword [0x42f5cc]
and eax, 2
je 0x404a3d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0041528e
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.icmp_input_udp_sendto_tx_errno___d__s_n
mov ecx, dword [0x42f5c8]
push ecx
call fcn.00414be4
add esp, 0x10
mov edx, dword [0x42f5c8]
push edx
call fcn.00414b88
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0041528e
add esp, 4
push eax
push 0
push 0
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.00404ad0
add esp, 0x14
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00414680
add esp, 4
jmp 0x404aa5
mov edx, dword [0x42f2a8]
add edx, 1
mov dword [0x42f2a8], edx
mov eax, dword [ebp + 8]
push eax
call fcn.00406de0
add esp, 4
jmp 0x404aa5
mov ecx, dword [0x42f2ac]
add ecx, 1
mov dword [0x42f2ac], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406de0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004149ef
mov esp, ebp
pop ebp
ret