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

Disassembly:
push 0xffffffffffffffff
push 0x62f162
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x10000
mov esi, ecx
push edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [esi + 0x342c], eax
jne 0x5cb73a
push str.Out_of_memory__1__n
mov ecx, esi
call fcn.0054c4f0
mov eax, dword [0x6cc708]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x24], edi
cmp eax, edi
mov ebx, 1
jne 0x5cb6e4
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx]
lea ecx, [esp + 0x34]
push edx
call fcn.00602b44
mov dword [esp + 0x10], ebx
mov byte [esp + 0x24], bl
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [0x6d23b0]
push eax
push ecx
call fcn.005fb90b
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x24], edi
je 0x5cb70f
lea ecx, [esp + 0x34]
call fcn.00602ad6
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.00554c40
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00602ad6
mov eax, 0x80090304
jmp 0x5cc0b1
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
mov dword [esi + 0x3430], edi
mov dword [esi + 0x3434], eax
mov dword [esi + 0x3428], 0x90312
mov eax, dword [esi + 0x3428]
cmp eax, 0x90312
je 0x5cb777
cmp eax, 0x80090318
je 0x5cb777
cmp eax, 0x90320
jne 0x5cc075
mov ecx, dword [esi + 0x3430]
test ecx, ecx
je 0x5cb78c
cmp eax, 0x80090318
jne 0x5cb852
mov eax, dword [esi + 0x3434]
test eax, eax
je 0x5cb848
push 0x3c
push ebx
mov ecx, esi
call fcn.0054e130
test eax, eax
jne 0x5cc0b1
mov eax, dword [esi + 0x3430]
mov edi, dword [esi + 0x342c]
mov ecx, 0x10000
xor ebp, ebp
sub ecx, eax
push ebp
add eax, edi
push ecx
push eax
push ebx
mov ecx, esi
call fcn.0054f600
mov edi, eax
cmp edi, 0xffffffff
jne 0x5cb838
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x5cb82f
cmp ebp, 0x14
jge 0x5cb82f
push str.HandshakeLoopWSAEWB_n
mov ecx, esi
call fcn.0054c4f0
push 0x3c
push ebx
mov ecx, esi
call fcn.0054e130
test eax, eax
jne 0x5cc0b1
mov eax, dword [esi + 0x3430]
mov ecx, dword [esi + 0x342c]
mov edx, 0x10000
push 0
sub edx, eax
add eax, ecx
push edx
push eax
push ebx
mov ecx, esi
call fcn.0054f600
mov edi, eax
inc ebp
cmp edi, 0xffffffff
je 0x5cb7d5
jmp 0x5cb838
cmp edi, 0xffffffff
je 0x5cbaca
test edi, edi
je 0x5cbbf3
add dword [esi + 0x3430], edi
jmp 0x5cb852
mov dword [esi + 0x3434], 1
mov eax, dword [esi + 0x342c]
mov ecx, dword [esi + 0x3430]
mov dword [esi + 0x33f0], eax
lea eax, [esi + 0x33e8]
lea ebx, [esi + 0x3420]
lea ebp, [esi + 0x3418]
mov dword [eax], ecx
mov ecx, 2
mov dword [esi + 0x33ec], ecx
mov dword [esi + 0x33e0], ecx
mov dword [esi + 0x3410], ecx
lea ecx, [esi + 0x3400]
push ebx
push ebp
mov dword [esi + 0x33e4], eax
push ecx
lea eax, [esi + 0x33dc]
push 0
push 0
xor edx, edx
push eax
lea edi, [esi + 0x340c]
push 0x10
mov dword [eax], edx
mov eax, dword [esp + 0x50]
push 0
mov dword [ecx], edx
mov ecx, dword [esp + 0x50]
push 0xc11c
mov dword [esi + 0x33fc], edx
mov dword [esi + 0x33f4], edx
mov dword [esi + 0x33f8], edx
mov dword [esi + 0x3414], edx
mov dword [edi], edx
mov edx, dword [esi + 0xb0]
push 0
push eax
push ecx
mov dword [esi + 0x3404], 1
mov dword [esi + 0x3408], edi
call dword [edx + 0x3c4]
test eax, eax
mov dword [esi + 0x3428], eax
je 0x5cb925
cmp eax, 0x90312
je 0x5cb925
test eax, eax
jge 0x5cba30
mov eax, dword [ebp]
test ah, 0x40
je 0x5cba30
mov edi, dword [edi]
test edi, edi
je 0x5cba30
mov eax, dword [esi + 0x3414]
test eax, eax
je 0x5cba30
mov ecx, dword [esi + 0x184]
test ecx, ecx
je 0x5cb9b2
mov dl, byte [ecx + 0x137]
test dl, dl
je 0x5cb9b2
mov ecx, dword [esi + 0x3444]
test ecx, ecx
je 0x5cb9b2
push edi
push eax
call fcn.005cc620
test eax, eax
jne 0x5cc0b1
mov edx, dword [0x6cc708]
mov dword [esp + 0x38], edx
push edi
lea eax, [esp + 0x3c]
push str._ld_bytes_of_handshake_data_sent_n
push eax
mov dword [esp + 0x30], 6
call fcn.005fb90b
mov ecx, dword [esp + 0x44]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0054c4f0
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], 0xffffffff
call fcn.00602ad6
mov ebx, dword [esp + 0x2c]
jmp 0x5cba11
mov ebx, dword [esp + 0x2c]
push 0
push edi
push eax
push ebx
call sub.WS2_32.dll_send
or ebp, 0xffffffff
cmp eax, ebp
je 0x5cbd18
test eax, eax
je 0x5cbd18
mov edx, dword [0x6cc708]
mov dword [esp + 0x14], edx
push eax
lea eax, [esp + 0x18]
push str._ld_bytes_of_handshake_data_sent_n
push eax
mov dword [esp + 0x30], 9
call fcn.005fb90b
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0054c4f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.00602ad6
mov eax, dword [esi + 0x3414]
mov edx, dword [esi + 0xb0]
push eax
call dword [edx + 0x3ec]
mov dword [esi + 0x3414], 0
jmp 0x5cba34
mov ebx, dword [esp + 0x2c]
mov eax, dword [esi + 0x3428]
cmp eax, 0x80090318
je 0x5cb758
xor ebp, ebp
cmp eax, ebp
je 0x5cbdee
jl 0x5cbf4f
cmp eax, 0x90320
jne 0x5cba82
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
mov ecx, esi
call fcn.005cc3b0
mov dword [esi + 0x3434], ebp
mov dword [esi + 0x3428], 0x90312
jmp 0x5cb758
cmp dword [esi + 0x33f8], 5
jne 0x5cbabf
mov ecx, dword [esi + 0x342c]
mov eax, dword [esi + 0x33f4]
mov ebp, dword [esi + 0x3430]
mov edx, ecx
sub edx, eax
push eax
add edx, ebp
push edx
push ecx
call fcn.005e7440
mov eax, dword [esi + 0x33f4]
add esp, 0xc
mov dword [esi + 0x3430], eax
jmp 0x5cb758
mov dword [esi + 0x3430], ebp
jmp 0x5cb758
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [0x6cc708]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
push eax
lea edx, [esp + 0x30]
mov edi, 2
push str.Error__d_reading_data_from_server_n
push edx
mov dword [esp + 0x30], edi
call fcn.005fb90b
mov eax, dword [esp + 0x38]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0054c4f0
mov ecx, dword [esi + 0xb0]
mov al, byte [ecx + 0x306]
test al, al
jne 0x5cbb7d
mov al, byte [esi + 0xcb]
test al, al
lea eax, [ecx + 0x15c]
jne 0x5cbb2b
lea eax, [ecx + 0x158]
mov edx, dword [eax]
test edx, edx
jne 0x5cbb5e
mov dword [eax], 1
push str.Try_SSL3_r_n
mov ecx, esi
call fcn.0054c4f0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00602ad6
mov eax, 0x757e
jmp 0x5cc0b1
cmp edx, 1
jne 0x5cbb6c
mov dword [eax], edi
push str.Try_TLS1_r_n
jmp 0x5cbb3c
cmp edx, edi
jne 0x5cbb7d
mov dword [eax], 3
push str.Try_SSL3_old_r_n
jmp 0x5cbb3c
mov eax, dword [esi + 0xb4]
mov dword [esi + 0x3428], 0x80090304
test eax, eax
jne 0x5cbba6
mov ecx, dword [ecx]
push ecx
lea ecx, [esp + 0x34]
call fcn.00602b44
mov dword [esp + 0x10], edi
mov byte [esp + 0x24], 3
mov eax, dword [eax]
mov edx, dword [0x6d23b0]
push eax
lea eax, [esp + 0x30]
push edx
push eax
call fcn.005fb90b
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 2
mov dword [esp + 0x24], edi
je 0x5cbbd2
lea ecx, [esp + 0x30]
call fcn.00602ad6
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.00554c40
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
jmp 0x5cc070
mov eax, dword [esi + 0xb0]
mov cl, byte [eax + 0x306]
test cl, cl
jne 0x5cbc7d
mov cl, byte [esi + 0xcb]
test cl, cl
je 0x5cbc14
add eax, 0x15c
jmp 0x5cbc19
add eax, 0x158
mov ecx, dword [eax]
test ecx, ecx
jne 0x5cbc3b
push str.Try_SSL3_r_n
mov ecx, esi
mov dword [eax], 1
call fcn.0054c4f0
mov eax, 0x757e
jmp 0x5cc0b1
cmp ecx, 1
jne 0x5cbc5c
push str.Try_TLS1_r_n
mov ecx, esi
mov dword [eax], 2
call fcn.0054c4f0
mov eax, 0x757e
jmp 0x5cc0b1
cmp ecx, 2
jne 0x5cbc7d
push str.Try_SSL3_old_r_n
mov ecx, esi
mov dword [eax], 3
call fcn.0054c4f0
mov eax, 0x757e
jmp 0x5cc0b1
push str.Server_unexpectedly_disconnected_n
mov ecx, esi
call fcn.0054c4f0
mov dword [esi + 0x3428], 0x80090304
mov edx, dword [0x6cc708]
mov dword [esp + 0x2c], edx
mov eax, dword [esi + 0xb4]
mov ebx, 4
test eax, eax
mov dword [esp + 0x24], ebx
jne 0x5cbccb
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x34]
call fcn.00602b44
mov dword [esp + 0x10], ebx
mov byte [esp + 0x24], 5
mov eax, dword [eax]
mov edx, dword [0x6d23b0]
push eax
lea eax, [esp + 0x30]
push edx
push eax
call fcn.005fb90b
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x24], ebx
je 0x5cbcf7
lea ecx, [esp + 0x30]
call fcn.00602ad6
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.00554c40
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
jmp 0x5cc070
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [0x6cc708]
mov edi, eax
mov dword [esp + 0x2c], edx
push edi
lea eax, [esp + 0x30]
mov ebx, 7
push str.Error__d_sending_data_to_server__2__n
push eax
mov dword [esp + 0x30], ebx
call fcn.005fb90b
mov ecx, dword [esp + 0x38]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0054c4f0
mov eax, dword [esi + 0xb4]
test eax, eax
jne 0x5cbd7a
mov edx, dword [esi + 0xb0]
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push eax
call fcn.00602b44
mov dword [esp + 0x10], 8
mov byte [esp + 0x24], 8
mov eax, dword [eax]
mov ecx, dword [0x6d23b0]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.005fb90b
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 8
mov dword [esp + 0x24], ebx
je 0x5cbda6
lea ecx, [esp + 0x30]
call fcn.00602ad6
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x9c]
push eax
call fcn.00554c40
mov edx, dword [esi + 0x3414]
mov ecx, dword [esi + 0xb0]
push edx
call dword [ecx + 0x3ec]
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 0xb0]
push ecx
call dword [eax + 0x3d0]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebp
call fcn.00602ad6
mov eax, edi
jmp 0x5cc0b1
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 0x5cbf3e
mov edx, dword [esi + 0x33f4]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [esp + 0x3c]
cmp eax, ebp
mov dword [edi + 8], eax
jne 0x5cbeca
push str.Out_of_memory__2__n
mov ecx, esi
call fcn.0054c4f0
mov eax, dword [0x6cc708]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xb4]
mov edi, 0xa
cmp eax, ebp
mov dword [esp + 0x24], edi
jne 0x5cbe74
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx]
lea ecx, [esp + 0x34]
push edx
call fcn.00602b44
mov dword [esp + 0x10], 0x10
mov byte [esp + 0x24], 0xb
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [0x6d23b0]
push eax
push ecx
call fcn.005fb90b
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 0x10
mov dword [esp + 0x24], edi
je 0x5cbe9f
lea ecx, [esp + 0x34]
call fcn.00602ad6
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.00554c40
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00602ad6
mov eax, 0x80090304
jmp 0x5cc0b1
mov ecx, dword [esi + 0x33f4]
mov edx, dword [esi + 0x3430]
mov ebp, dword [esi + 0x342c]
sub edx, ecx
add edx, ebp
push ecx
push edx
push eax
call fcn.005e7440
mov eax, dword [esi + 0x33f4]
mov dword [edi + 4], 2
mov dword [edi], eax
mov ecx, dword [0x6cc708]
add esp, 0xc
mov dword [esp + 0x38], ecx
mov edx, eax
lea eax, [esp + 0x38]
push edx
push str._d_bytes_of_app_data_was_bundled_with_handshake_data_n
push eax
mov dword [esp + 0x30], 0xc
call fcn.005fb90b
mov ecx, dword [esp + 0x44]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0054c4f0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x38]
jmp 0x5cc070
mov eax, dword [esp + 0x3c]
mov dword [eax + 8], ebp
mov dword [eax], ebp
mov dword [eax + 4], ebp
jmp 0x5cc075
mov edx, dword [0x6cc708]
mov dword [esp + 0x30], edx
mov eax, dword [esi + 0x3428]
lea ecx, [esp + 0x30]
push eax
mov edi, 0xd
push str.Error_0x_x_returned_by_InitializeSecurityContext__2__n
push ecx
mov dword [esp + 0x30], edi
call fcn.005fb90b
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0054c4f0
mov ecx, dword [esi + 0xb0]
mov al, byte [ecx + 0x306]
test al, al
jne 0x5cc004
mov al, byte [esi + 0xcb]
test al, al
lea eax, [ecx + 0x15c]
jne 0x5cbfad
lea eax, [ecx + 0x158]
mov edx, dword [eax]
cmp edx, ebp
jne 0x5cbfc0
mov dword [eax], 1
push str.Try_SSL3_r_n
jmp 0x5cbfe2
cmp edx, 1
jne 0x5cbfd2
mov dword [eax], 2
push str.Try_TLS1_r_n
jmp 0x5cbfe2
cmp edx, 2
jne 0x5cc004
mov dword [eax], 3
push str.Try_SSL3_old_r_n
mov ecx, esi
call fcn.0054c4f0
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call fcn.00602ad6
mov eax, 0x757e
jmp 0x5cc0b1
mov eax, dword [esi + 0xb4]
mov ebx, 0x20
cmp eax, ebp
jne 0x5cc028
mov eax, dword [ecx]
lea ecx, [esp + 0x3c]
push eax
call fcn.00602b44
mov dword [esp + 0x10], ebx
mov byte [esp + 0x24], 0xe
mov eax, dword [eax]
mov ecx, dword [0x6d23b0]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.005fb90b
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x24], edi
je 0x5cc054
lea ecx, [esp + 0x3c]
call fcn.00602ad6
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x9c]
push eax
call fcn.00554c40
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00602ad6
mov eax, dword [esi + 0x3428]
test eax, eax
jge 0x5cc090
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 0xb0]
push edx
call dword [ecx + 0x3d0]
mov eax, dword [esi + 0x342c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esi + 0x3428]
test esi, esi
jge 0x5cc0af
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x5cc0b1
mov eax, esi
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x14