Function at 0x10004b20
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x10036008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x9c], eax
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], ecx
test eax, eax
je 0x10004d90
test ecx, ecx
je 0x10004d90
push ebx
push edi
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
mov dword [ebp - 0x94], ebx
cmp ebx, 0xffffffff
je 0x10004d7c
push edi
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x3c], eax
mov eax, 2
push edi
mov word [ebp - 0x40], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x3e], ax
lea eax, [ebp - 0x40]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10004d75
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x2c]
push 4
push eax
push 0x1006
push 0xffff
push ebx
mov dword [ebp - 0x2c], 0x3e8
call esi
cmp eax, 0xffffffff
je 0x10004d74
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
push eax
push 0x20
push 0xffff
push ebx
call esi
cmp eax, 0xffffffff
je 0x10004d74
mov eax, 2
mov byte [ebp - 8], 0
mov word [ebp - 0x88], ax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x98]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x84], 0xffffffff
movups xmmword [ebp - 0x18], xmm0
movzx eax, word [eax + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov esi, dword [ebp - 0x9c]
mov word [ebp - 0x86], ax
nop word [eax + eax]
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x78]
mov byte [ebp - 0x78], 0x37
movups xmmword [ebp - 0x62], xmm0
mov byte [ebp - 0x65], 0x64
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebp - 0x52], xmm0
movups xmm0, xmmword [eax + 0x10]
xor eax, eax
mov word [ebp - 0x67], ax
movups xmmword [ebp - 0x77], xmm0
mov word [ebp - 0x64], ax
lea edx, [eax + 0x37]
call fcn.10001300
push 0
push 0
mov edx, 0x36
mov word [ebp - 0x67], ax
lea ecx, [ebp - 0x77]
call fcn.100049a0
add esp, 8
lea eax, [ebp - 0x88]
push 0x10
push eax
push 0
push 0x37
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x89]
push eax
lea eax, [ebp - 0x88]
push eax
push ebx
call fcn.10004db0
test eax, eax
je 0x10004d62
mov ebx, dword [ebp - 0x84]
cmp ebx, 0xffffffff
je 0x10004d5c
cmp word [ebp - 0x90], 0
je 0x10004d5c
cmp byte [ebp - 0x89], 0x65
jne 0x10004d5c
mov eax, esi
mov byte [ebp - 8], 0
lea edx, [ebp - 0x28]
mov esi, 0x1c
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10004d56
add edx, 4
add eax, 4
sub esi, 4
jae 0x10004d10
push ebx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [ebp - 0xa0]
mov ecx, eax
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10004d32
mov ecx, dword [ebp - 0xa4]
mov edi, 1
mov ax, word [ebp - 0x90]
mov word [ecx], ax
jmp 0x10004d6e
mov esi, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0x94]
inc edi
cmp edi, 3
jb 0x10004c50
xor edi, edi
mov ebx, dword [ebp - 0x94]
pop esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f18c
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.1000f18c
mov esp, ebp
pop ebp
ret 0xc