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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021ed00
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], 0
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 8]
mov eax, dword [edi + 0x18]
push 0
sub eax, edx
push eax
lea eax, [edx + esi]
push eax
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1005be9a
mov dword [ebp - 0xe0], 0x1023347c
mov dword [ebp - 0xd0], 0x10233484
push 0
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 1
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x7c], 0x50
movlpd qword [ebp - 0xd8], xmm0
call fcn.1001b997
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xd4], eax
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xe4], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe4], eax
lea eax, [ebp - 0xc8]
mov ecx, eax
mov dword [ebp - 0x30], eax
call fcn.10019819
mov dword [ebp - 0xc8], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
push 0xffffffffffffffff
push str._DoWork___error._send_result:
lea eax, [edi + 0x2c]
mov dword [ebp - 4], 7
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.100467a4
add esp, 8
push eax
call fcn.10025ddc
add esp, 8
mov ecx, eax
call fcn.100555e0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe0]
call fcn.1004e41a
push eax
mov byte [ebp - 4], 8
call fcn.1005a6b0
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, 0x10
jb 0x1005be5b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10016ec0
lea ecx, [ebp - 0x78]
call fcn.10019f10
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 9
push eax
mov dword [ebp - 0x78], vtable.std::ios_base.0
call fcn.101b8935
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b70aa
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
cdq
add dword [edi + 0x20], eax
adc dword [edi + 0x24], edx
cmp edx, esi
jg 0x1005be7d
jl 0x1005beb1
cmp eax, ecx
ja 0x1005be7d
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
cmp edx, esi
jg 0x1005be7d
jl 0x1005bec1
cmp eax, ecx
ja 0x1005be7d
cmp eax, ecx
jne 0x1005bed0
cmp edx, esi
jne 0x1005bed0
mov eax, 2
jmp 0x1005be7f
mov eax, 1
jmp 0x1005be7f