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

Disassembly:
push 0xffffffffffffffff
push 0x62f2b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x3430]
mov ebp, 1
cmp eax, ebx
je 0x5cd66d
cmp dword [esi + 0x3428], 0x80090318
jne 0x5cd738
cmp dword [esi + 0x3434], ebx
je 0x5cd732
mov edx, dword [esi + 0x342c]
mov ecx, 0x10000
sub ecx, eax
push ebx
add edx, eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0054f600
mov edi, eax
cmp edi, 0xffffffff
jne 0x5cd6c3
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x5cd6b9
mov dword [esi + 0x3428], 0x80090304
jmp 0x5cdaa4
mov eax, 0x2733
jmp 0x5cdaa4
cmp edi, ebx
jne 0x5cd6dd
push str.Server_unexpectedly_disconnected_n
mov ecx, esi
call fcn.0054c4f0
mov eax, 0x80090304
jmp 0x5cda9e
mov ecx, dword [0x6cc708]
mov dword [esp + 0x10], ecx
push edi
lea edx, [esp + 0x14]
push str._d_bytes_of_handshake_data_received_n
push edx
mov dword [esp + 0x28], ebx
call fcn.005fb90b
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0054c4f0
mov eax, dword [esi + 0x3430]
mov ecx, esi
add eax, edi
mov dword [esi + 0x3430], eax
call fcn.0054e940
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00602ad6
jmp 0x5cd738
mov dword [esi + 0x3434], ebp
mov ecx, dword [esi + 0x342c]
mov edx, dword [esi + 0x3430]
mov dword [esi + 0x33f0], ecx
lea eax, [esi + 0x33e8]
mov ecx, 2
mov dword [esi + 0x33e4], eax
mov dword [eax], edx
mov dword [esi + 0x33ec], ecx
mov dword [esi + 0x33e0], ecx
mov dword [esi + 0x3410], ecx
lea eax, [esi + 0x33dc]
lea edi, [esi + 0x340c]
lea ecx, [esi + 0x3400]
mov dword [esi + 0x33fc], ebx
mov dword [esi + 0x33f4], ebx
mov dword [esi + 0x33f8], ebx
mov dword [eax], ebx
mov dword [esi + 0x3414], ebx
mov dword [edi], ebx
mov dword [ecx], ebx
mov dword [esi + 0x3404], ebp
lea ebx, [esi + 0x3420]
lea ebp, [esi + 0x3418]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov edx, dword [esi + 0xb0]
push ecx
push 0
push 0
push eax
mov eax, dword [esp + 0x40]
push 0x10
push 0
push 0xc11c
push 0
push ebx
push eax
mov dword [esi + 0x3408], edi
call dword [edx + 0x3c4]
test eax, eax
mov dword [esi + 0x3428], eax
je 0x5cd805
cmp eax, 0x90312
je 0x5cd805
test eax, eax
jge 0x5cd904
mov eax, dword [ebp]
test ah, 0x40
je 0x5cd904
mov edi, dword [edi]
test edi, edi
je 0x5cd904
mov eax, dword [esi + 0x3414]
test eax, eax
je 0x5cd904
mov ecx, dword [esi + 0x184]
test ecx, ecx
je 0x5cd889
mov dl, byte [ecx + 0x137]
test dl, dl
je 0x5cd889
mov ecx, dword [esi + 0x3444]
test ecx, ecx
je 0x5cd889
push edi
push eax
call fcn.005cc620
test eax, eax
jne 0x5cdaa4
mov ecx, dword [0x6cc708]
mov dword [esp + 0x24], ecx
push edi
lea edx, [esp + 0x28]
push str._ld_bytes_of_handshake_data_sent_n
push edx
mov dword [esp + 0x28], 1
call fcn.005fb90b
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0054c4f0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
jmp 0x5cd8db
mov ecx, dword [esp + 0x24]
push 0
push edi
push eax
push ecx
call sub.WS2_32.dll_send
or ebp, 0xffffffff
cmp eax, ebp
je 0x5cd916
test eax, eax
je 0x5cd916
mov edx, dword [0x6cc708]
mov dword [esp + 0x2c], edx
push eax
lea eax, [esp + 0x30]
push str._ld_bytes_of_handshake_data_sent_n
push eax
mov dword [esp + 0x28], 3
call fcn.005fb90b
mov ecx, dword [esp + 0x38]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0054c4f0
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x2c]
call fcn.00602ad6
mov ecx, esi
call fcn.0054e940
mov eax, dword [esi + 0x3414]
mov edx, dword [esi + 0xb0]
push eax
call dword [edx + 0x3ec]
mov dword [esi + 0x3414], 0
mov eax, dword [esi + 0x3428]
cmp eax, 0x80090318
jne 0x5cd982
jmp 0x5cdaa4
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [0x6cc708]
mov edi, eax
mov dword [esp + 0x30], ecx
push edi
lea edx, [esp + 0x34]
push str.Error__d_sending_data_to_server__2__n
push edx
mov dword [esp + 0x28], 2
call fcn.005fb90b
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0054c4f0
mov edx, dword [esi + 0x3414]
mov ecx, dword [esi + 0xb0]
push edx
call dword [ecx + 0x3ec]
mov eax, dword [esi + 0xb0]
push ebx
call dword [eax + 0x3d0]
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], ebp
call fcn.00602ad6
mov eax, edi
jmp 0x5cdaa4
test eax, eax
jne 0x5cda24
push str.Handshake_was_successful_n
mov ecx, esi
call fcn.0054c4f0
mov eax, dword [esi + 0x33f8]
mov byte [esi + 0x3304], 1
cmp eax, 5
jne 0x5cda0f
mov ecx, dword [esi + 0x33f4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [esp + 0x30]
test eax, eax
mov dword [edi + 8], eax
jne 0x5cd9d8
push str._Out_of_memory__2__n
mov ecx, esi
call fcn.0054c4f0
mov eax, 0x80090304
jmp 0x5cdaa4
mov ecx, dword [esi + 0x33f4]
mov edx, dword [esi + 0x342c]
mov ebp, dword [esi + 0x3430]
sub edx, ecx
add edx, ebp
push ecx
push edx
push eax
call fcn.005e7440
mov eax, dword [esi + 0x33f4]
add esp, 0xc
mov dword [edi], eax
mov dword [edi + 4], 2
xor eax, eax
jmp 0x5cdaa4
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
xor eax, eax
jmp 0x5cdaa4
jl 0x5cdaa4
cmp eax, 0x90320
jne 0x5cda4b
mov ecx, dword [esp + 0x28]
push ebx
push ecx
mov ecx, esi
call fcn.005cc3b0
mov dword [esi + 0x3434], 0
mov eax, 0x90312
jmp 0x5cda9e
cmp dword [esi + 0x33f8], 5
jne 0x5cda85
mov ecx, dword [esi + 0x342c]
mov eax, dword [esi + 0x33f4]
mov ebx, dword [esi + 0x3430]
mov edx, ecx
sub edx, eax
push eax
add edx, ebx
push edx
push ecx
call fcn.005e7440
mov eax, dword [esi + 0x33f4]
add esp, 0xc
mov dword [esi + 0x3430], eax
jmp 0x5cda8f
mov dword [esi + 0x3430], 0
mov ecx, dword [esi + 0x3428]
mov eax, 0x90312
cmp ecx, eax
je 0x5cdaa4
mov dword [esi + 0x3428], eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10