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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov ebx, ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51a36c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x88], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x8c], ebx
mov eax, dword [ebp - 4]
mov dword [eax + 0x94], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], ebx
xor edi, edi
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov edx, 0x51a388
mov eax, dword [ebp - 0x14]
call fcn.00518410
test al, al
je 0x51a349
xor edx, edx
push ebp
push 0x51a342
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
add eax, 0x14
push eax
call sub.kernel32.dll_InterlockedIncrement_1
push 0
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, dword [ebp - 4]
add eax, 0x90
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc4]
mov eax, dword [eax + 0xc]
push eax
call sub.ws2_32.dll_WSASend
inc eax
jne 0x51a2b8
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
sete byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x51a29a
mov eax, dword [ebp - 0x14]
add eax, 0x14
push eax
call sub.kernel32.dll_InterlockedDecrement_1
mov eax, dword [ebp - 4]
mov byte [eax + 0x88], 0
push 1
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x517a00
call fcn.004078c4
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x24]
mov dword [ebp - 0x2c], edx
mov byte [ebp - 0x28], 0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x24], edx
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x2c]
mov ecx, 1
call fcn.0040c0e4
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.0051883c
jmp 0x51a2d8
test esi, esi
je 0x51a2d8
cmp dword [esi + 0x68], 0
je 0x51a2d8
mov eax, dword [esi + 0x68]
mov edx, ebx
call fcn.0051a7b8
mov eax, dword [esi + 0x68]
call fcn.0051a7ac
jmp 0x51a2d8
mov byte [ebp - 5], 1
test esi, esi
je 0x51a2d8
cmp dword [esi + 0x68], 0
je 0x51a2d8
mov eax, dword [esi + 0x68]
mov edx, ebx
call fcn.0051a7b8
mov eax, dword [esi + 0x68]
call fcn.0051a7ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a349
cmp byte [ebp - 5], 0
jne 0x51a341
call fcn.00512c40
test al, al
je 0x51a316
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
cmp eax, dword [ebp - 0x14]
je 0x51a316
mov ecx, 0xdaa
mov edx, 0x51a3b0
mov eax, 0x51a3f4
call fcn.004052f4
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, 0x51a410
call fcn.0040c0e4
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.00517e40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a373
lea eax, [ebp - 0x30]
call fcn.004053c8
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004053ec
ret