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

Disassembly:
push 0xffffffffffffffff
push 0x6302a0
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 0x5ce48d
cmp dword [esi + 0x3428], 0x80090318
jne 0x5ce558
cmp dword [esi + 0x3434], ebx
je 0x5ce552
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.005503b0
mov edi, eax
cmp edi, 0xffffffff
jne 0x5ce4e3
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x5ce4d9
mov dword [esi + 0x3428], 0x80090304
jmp 0x5ce8c4
mov eax, 0x2733
jmp 0x5ce8c4
cmp edi, ebx
jne 0x5ce4fd
push str.Server_unexpectedly_disconnected_n
mov ecx, esi
call fcn.0054d2a0
mov eax, 0x80090304
jmp 0x5ce8be
mov ecx, dword [0x6cd768]
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.005fc86b
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0054d2a0
mov eax, dword [esi + 0x3430]
mov ecx, esi
add eax, edi
mov dword [esi + 0x3430], eax
call fcn.0054f6f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00603a3c
jmp 0x5ce558
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 0x5ce625
cmp eax, 0x90312
je 0x5ce625
test eax, eax
jge 0x5ce724
mov eax, dword [ebp]
test ah, 0x40
je 0x5ce724
mov edi, dword [edi]
test edi, edi
je 0x5ce724
mov eax, dword [esi + 0x3414]
test eax, eax
je 0x5ce724
mov ecx, dword [esi + 0x184]
test ecx, ecx
je 0x5ce6a9
mov dl, byte [ecx + 0x137]
test dl, dl
je 0x5ce6a9
mov ecx, dword [esi + 0x3444]
test ecx, ecx
je 0x5ce6a9
push edi
push eax
call fcn.005cd440
test eax, eax
jne 0x5ce8c4
mov ecx, dword [0x6cd768]
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.005fc86b
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0054d2a0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
jmp 0x5ce6fb
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 0x5ce736
test eax, eax
je 0x5ce736
mov edx, dword [0x6cd768]
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.005fc86b
mov ecx, dword [esp + 0x38]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0054d2a0
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x2c]
call fcn.00603a3c
mov ecx, esi
call fcn.0054f6f0
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 0x5ce7a2
jmp 0x5ce8c4
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [0x6cd768]
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.005fc86b
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0054d2a0
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.00603a3c
mov eax, edi
jmp 0x5ce8c4
test eax, eax
jne 0x5ce844
push str.Handshake_was_successful_n
mov ecx, esi
call fcn.0054d2a0
mov eax, dword [esi + 0x33f8]
mov byte [esi + 0x3304], 1
cmp eax, 5
jne 0x5ce82f
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 0x5ce7f8
push str._Out_of_memory__2__n
mov ecx, esi
call fcn.0054d2a0
mov eax, 0x80090304
jmp 0x5ce8c4
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.005e8260
mov eax, dword [esi + 0x33f4]
add esp, 0xc
mov dword [edi], eax
mov dword [edi + 4], 2
xor eax, eax
jmp 0x5ce8c4
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 0x5ce8c4
jl 0x5ce8c4
cmp eax, 0x90320
jne 0x5ce86b
mov ecx, dword [esp + 0x28]
push ebx
push ecx
mov ecx, esi
call fcn.005cd1d0
mov dword [esi + 0x3434], 0
mov eax, 0x90312
jmp 0x5ce8be
cmp dword [esi + 0x33f8], 5
jne 0x5ce8a5
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.005e8260
mov eax, dword [esi + 0x33f4]
add esp, 0xc
mov dword [esi + 0x3430], eax
jmp 0x5ce8af
mov dword [esi + 0x3430], 0
mov ecx, dword [esi + 0x3428]
mov eax, 0x90312
cmp ecx, eax
je 0x5ce8c4
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