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

Disassembly:
push 0xffffffffffffffff
push 0x62f940
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 0x5cc43d
cmp dword [esi + 0x3428], 0x80090318
jne 0x5cc508
cmp dword [esi + 0x3434], ebx
je 0x5cc502
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.0054e200
mov edi, eax
cmp edi, 0xffffffff
jne 0x5cc493
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x5cc489
mov dword [esi + 0x3428], 0x80090304
jmp 0x5cc874
mov eax, 0x2733
jmp 0x5cc874
cmp edi, ebx
jne 0x5cc4ad
push str.Server_unexpectedly_disconnected_n
mov ecx, esi
call fcn.0054b0f0
mov eax, 0x80090304
jmp 0x5cc86e
mov ecx, dword [0x6f175c]
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.005fa6fb
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0054b0f0
mov eax, dword [esi + 0x3430]
mov ecx, esi
add eax, edi
mov dword [esi + 0x3430], eax
call fcn.0054d540
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.006018cc
jmp 0x5cc508
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 0x5cc5d5
cmp eax, 0x90312
je 0x5cc5d5
test eax, eax
jge 0x5cc6d4
mov eax, dword [ebp]
test ah, 0x40
je 0x5cc6d4
mov edi, dword [edi]
test edi, edi
je 0x5cc6d4
mov eax, dword [esi + 0x3414]
test eax, eax
je 0x5cc6d4
mov ecx, dword [esi + 0x184]
test ecx, ecx
je 0x5cc659
mov dl, byte [ecx + 0x137]
test dl, dl
je 0x5cc659
mov ecx, dword [esi + 0x3444]
test ecx, ecx
je 0x5cc659
push edi
push eax
call fcn.005cb3f0
test eax, eax
jne 0x5cc874
mov ecx, dword [0x6f175c]
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.005fa6fb
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0054b0f0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
jmp 0x5cc6ab
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 0x5cc6e6
test eax, eax
je 0x5cc6e6
mov edx, dword [0x6f175c]
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.005fa6fb
mov ecx, dword [esp + 0x38]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0054b0f0
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x2c]
call fcn.006018cc
mov ecx, esi
call fcn.0054d540
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 0x5cc752
jmp 0x5cc874
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [0x6f175c]
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.005fa6fb
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0054b0f0
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.006018cc
mov eax, edi
jmp 0x5cc874
test eax, eax
jne 0x5cc7f4
push str.Handshake_was_successful_n
mov ecx, esi
call fcn.0054b0f0
mov eax, dword [esi + 0x33f8]
mov byte [esi + 0x3304], 1
cmp eax, 5
jne 0x5cc7df
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 0x5cc7a8
push str._Out_of_memory__2__n
mov ecx, esi
call fcn.0054b0f0
mov eax, 0x80090304
jmp 0x5cc874
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.005e6240
mov eax, dword [esi + 0x33f4]
add esp, 0xc
mov dword [edi], eax
mov dword [edi + 4], 2
xor eax, eax
jmp 0x5cc874
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 0x5cc874
jl 0x5cc874
cmp eax, 0x90320
jne 0x5cc81b
mov ecx, dword [esp + 0x28]
push ebx
push ecx
mov ecx, esi
call fcn.005cb180
mov dword [esi + 0x3434], 0
mov eax, 0x90312
jmp 0x5cc86e
cmp dword [esi + 0x33f8], 5
jne 0x5cc855
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.005e6240
mov eax, dword [esi + 0x33f4]
add esp, 0xc
mov dword [esi + 0x3430], eax
jmp 0x5cc85f
mov dword [esi + 0x3430], 0
mov ecx, dword [esi + 0x3428]
mov eax, 0x90312
cmp ecx, eax
je 0x5cc874
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