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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x539d60
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov esi, dword fs:[0]
cmp eax, 0x7fffffff
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
mov ecx, dword [edx + 8]
mov edi, dword [edx + 0x10]
mov dword [ebp - 0x38], ecx
mov ecx, 0x7fffffff
mov dword [ebp - 0x50], edi
cmovb ecx, eax
mov dword [ebp - 0x54], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x58], ecx
jmp 0x5270f8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
push dword [ebp - 0x28]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x4c]
push 1
push dword [ebp + 8]
call fcn.005266e0
add esp, 8
mov eax, dword [ebp - 0x4c]
cmp eax, 2
je 0x527298
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x44]
test eax, eax
jne 0x5272a0
mov eax, dword [ebp - 0x58]
cmp eax, 0xffffffff
je 0x5272c4
push 0
push dword [ebp - 0x54]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x527150
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x34], 4
jmp 0x5271b0
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], 0
mov byte [ebp - 0x31], 0
mov word [ebp - 0x33], 0
mov dword [ebp - 0x30], eax
call fcn.0046ee10
cmp al, 0xd
jne 0x5271b0
test edi, edi
je 0x5271b0
mov eax, dword [edi + 4]
mov edx, dword [edi]
lock inc dword [eax]
jle 0x5272ce
add edx, 8
lea ecx, [ebp - 0x4c]
push dword [edi + 0xc]
push dword [edi + 8]
push eax
call fcn.0046de40
add esp, 0xc
movzx eax, byte [ebp - 0x4c]
cmp al, 4
jne 0x527261
nop word cs:[eax + eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
cmp cl, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x5272aa
lea ecx, [ebp - 0x40]
call fcn.0046ee10
cmp al, 0xd
jne 0x52728a
movzx eax, byte [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
and esi, 0x23
xor esi, 0x2f
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
movzx edx, bl
mov ecx, dword [ecx + 0x48]
shl edx, 0x10
nop word cs:[eax + eax]
nop
mov eax, ecx
shr eax, 0x10
cmp bl, al
jne 0x52721d
mov edi, ecx
mov eax, ecx
mov ecx, dword [ebp - 0x38]
and edi, esi
or edi, edx
lock cmpxchg dword [ecx + 0x48], edi
mov ecx, eax
jne 0x527200
cmp dword [ebp - 0x24], 3
jne 0x5270ee
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], ecx
push ecx
mov dword [ebp - 0x24], eax
call dword [eax]
add esp, 4
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 0
je 0x5270dd
cmp dword [eax + 8], 9
jae 0x5270c8
mov eax, dword [ebp - 0x20]
jmp 0x5270ce
lea edx, [ebp - 0x4b]
mov ecx, dword [edx]
mov edx, dword [edx + 3]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x3f]
mov edi, dword [ebp - 0x28]
mov dword [ecx + 3], edx
mov dword [ecx], edi
mov byte [ebp - 0x40], al
lea ecx, [ebp - 0x40]
call fcn.0046ee10
cmp al, 0xd
je 0x5271d5
movsd xmm0, qword [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
movsd qword [eax], xmm0
jmp 0x5272b3
mov eax, dword [ebp - 0x2c]
mov byte [eax], 5
jmp 0x5272b3
mov eax, dword [ebp - 0x2c]
mov dword [eax], esi
mov dword [eax + 4], ebx
jmp 0x5272b3
mov ecx, dword [ebp - 0x2c]
mov byte [ecx], 4
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x5a67c4
call fcn.0053bf10
ud2