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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10b8
call fcn.6337fa50
sub esp, eax
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 3
je 0x631eadb5
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 4
je 0x631eadb5
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 5
je 0x631eadb5
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 6
je 0x631eadb5
mov dword [esp + 4], str.Sys_SendPacket:_bad_address_type
mov dword [esp], 0
call fcn.63181eb4
mov eax, 0
jmp 0x631eb028
mov eax, dword [0x633ae3b4]
cmp eax, 0xffffffff
jne 0x631eadc9
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 4
je 0x631eadf1
mov eax, dword [0x633ae3b8]
cmp eax, 0xffffffff
jne 0x631eaddd
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 5
je 0x631eadf1
mov eax, dword [0x633ae3b8]
cmp eax, 0xffffffff
jne 0x631eadfb
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 6
jne 0x631eadfb
mov eax, 0
jmp 0x631eb028
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 6
jne 0x631eae1e
mov eax, dword [0x6757a35c]
mov eax, dword [eax + 0xc]
and eax, 8
test eax, eax
je 0x631eae1e
mov eax, 0
jmp 0x631eb028
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0
lea eax, [ebp - 0x90]
mov dword [esp], eax
call sub.msvcr100.dll_memset
lea eax, [ebp - 0x90]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.631e9927
mov eax, dword [0x6757a354]
test eax, eax
je 0x631eaf17
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 4
jne 0x631eaf17
mov byte [ebp - 0x1090], 0
mov byte [ebp - 0x108f], 0
mov byte [ebp - 0x108e], 0
mov byte [ebp - 0x108d], 1
lea eax, [ebp - 0x90]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x1090]
add eax, 4
mov dword [eax], edx
lea eax, [ebp - 0x90]
movzx edx, word [eax + 2]
lea eax, [ebp - 0x1090]
add eax, 8
mov word [eax], dx
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1090]
add eax, 0xa
mov dword [esp], eax
call sub.msvcr100.dll_memcpy
mov eax, dword [ebp + 8]
lea edx, [eax + 0xa]
mov eax, dword [0x633ae3b4]
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0x6757a37c
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea edx, [ebp - 0x1090]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_sendto]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
jmp 0x631eafad
movzx eax, word [ebp - 0x90]
cmp ax, 2
jne 0x631eaf63
mov eax, dword [0x633ae3b4]
mov dword [esp + 0x14], 0x10
lea edx, [ebp - 0x90]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov edx, dword [ebp + 8]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_sendto]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
jmp 0x631eafad
movzx eax, word [ebp - 0x90]
cmp ax, 0x17
jne 0x631eafad
mov eax, dword [0x633ae3b8]
mov dword [esp + 0x14], 0x1c
lea edx, [ebp - 0x90]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov edx, dword [ebp + 8]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_sendto]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x631eb023
mov eax, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
jne 0x631eafcd
mov eax, 0
jmp 0x631eb028
cmp dword [ebp - 0x10], 0x2741
jne 0x631eafe7
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 3
jne 0x631eafe7
mov eax, 0
jmp 0x631eb028
mov dword [esp], 0x14
call fcn.631f9faf
call fcn.631e9415
mov dword [esp + 8], eax
mov dword [esp + 4], str.NET_SendPacket:__s_n
mov dword [esp], 0x1e
call fcn.631a9790
mov dword [esp], 0x14
call fcn.631fa002
mov eax, 0
jmp 0x631eb028
mov eax, 1
leave
ret