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

Disassembly:
push 0xffffffffffffffff
push 0x62f7f2
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 0x5ca50a
push str.Out_of_memory__1__n
mov ecx, esi
call fcn.0054b0f0
mov eax, dword [0x6f175c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x24], edi
cmp eax, edi
mov ebx, 1
jne 0x5ca4b4
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx]
lea ecx, [esp + 0x34]
push edx
call fcn.0060193a
mov dword [esp + 0x10], ebx
mov byte [esp + 0x24], bl
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [0x6f73f8]
push eax
push ecx
call fcn.005fa6fb
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x24], edi
je 0x5ca4df
lea ecx, [esp + 0x34]
call fcn.006018cc
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.00553840
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.006018cc
mov eax, 0x80090304
jmp 0x5cae81
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 0x5ca547
cmp eax, 0x80090318
je 0x5ca547
cmp eax, 0x90320
jne 0x5cae45
mov ecx, dword [esi + 0x3430]
test ecx, ecx
je 0x5ca55c
cmp eax, 0x80090318
jne 0x5ca622
mov eax, dword [esi + 0x3434]
test eax, eax
je 0x5ca618
push 0x3c
push ebx
mov ecx, esi
call fcn.0054cd30
test eax, eax
jne 0x5cae81
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.0054e200
mov edi, eax
cmp edi, 0xffffffff
jne 0x5ca608
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x5ca5ff
cmp ebp, 0x14
jge 0x5ca5ff
push str.HandshakeLoopWSAEWB_n
mov ecx, esi
call fcn.0054b0f0
push 0x3c
push ebx
mov ecx, esi
call fcn.0054cd30
test eax, eax
jne 0x5cae81
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.0054e200
mov edi, eax
inc ebp
cmp edi, 0xffffffff
je 0x5ca5a5
jmp 0x5ca608
cmp edi, 0xffffffff
je 0x5ca89a
test edi, edi
je 0x5ca9c3
add dword [esi + 0x3430], edi
jmp 0x5ca622
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 0x5ca6f5
cmp eax, 0x90312
je 0x5ca6f5
test eax, eax
jge 0x5ca800
mov eax, dword [ebp]
test ah, 0x40
je 0x5ca800
mov edi, dword [edi]
test edi, edi
je 0x5ca800
mov eax, dword [esi + 0x3414]
test eax, eax
je 0x5ca800
mov ecx, dword [esi + 0x184]
test ecx, ecx
je 0x5ca782
mov dl, byte [ecx + 0x137]
test dl, dl
je 0x5ca782
mov ecx, dword [esi + 0x3444]
test ecx, ecx
je 0x5ca782
push edi
push eax
call fcn.005cb3f0
test eax, eax
jne 0x5cae81
mov edx, dword [0x6f175c]
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.005fa6fb
mov ecx, dword [esp + 0x44]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0054b0f0
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], 0xffffffff
call fcn.006018cc
mov ebx, dword [esp + 0x2c]
jmp 0x5ca7e1
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 0x5caae8
test eax, eax
je 0x5caae8
mov edx, dword [0x6f175c]
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.005fa6fb
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0054b0f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebp
call fcn.006018cc
mov eax, dword [esi + 0x3414]
mov edx, dword [esi + 0xb0]
push eax
call dword [edx + 0x3ec]
mov dword [esi + 0x3414], 0
jmp 0x5ca804
mov ebx, dword [esp + 0x2c]
mov eax, dword [esi + 0x3428]
cmp eax, 0x80090318
je 0x5ca528
xor ebp, ebp
cmp eax, ebp
je 0x5cabbe
jl 0x5cad1f
cmp eax, 0x90320
jne 0x5ca852
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
mov ecx, esi
call fcn.005cb180
mov dword [esi + 0x3434], ebp
mov dword [esi + 0x3428], 0x90312
jmp 0x5ca528
cmp dword [esi + 0x33f8], 5
jne 0x5ca88f
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.005e6240
mov eax, dword [esi + 0x33f4]
add esp, 0xc
mov dword [esi + 0x3430], eax
jmp 0x5ca528
mov dword [esi + 0x3430], ebp
jmp 0x5ca528
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [0x6f175c]
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.005fa6fb
mov eax, dword [esp + 0x38]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0054b0f0
mov ecx, dword [esi + 0xb0]
mov al, byte [ecx + 0x306]
test al, al
jne 0x5ca94d
mov al, byte [esi + 0xcb]
test al, al
lea eax, [ecx + 0x15c]
jne 0x5ca8fb
lea eax, [ecx + 0x158]
mov edx, dword [eax]
test edx, edx
jne 0x5ca92e
mov dword [eax], 1
push str.Try_SSL3_r_n
mov ecx, esi
call fcn.0054b0f0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.006018cc
mov eax, 0x757e
jmp 0x5cae81
cmp edx, 1
jne 0x5ca93c
mov dword [eax], edi
push str.Try_TLS1_r_n
jmp 0x5ca90c
cmp edx, edi
jne 0x5ca94d
mov dword [eax], 3
push str.Try_SSL3_old_r_n
jmp 0x5ca90c
mov eax, dword [esi + 0xb4]
mov dword [esi + 0x3428], 0x80090304
test eax, eax
jne 0x5ca976
mov ecx, dword [ecx]
push ecx
lea ecx, [esp + 0x34]
call fcn.0060193a
mov dword [esp + 0x10], edi
mov byte [esp + 0x24], 3
mov eax, dword [eax]
mov edx, dword [0x6f73f8]
push eax
lea eax, [esp + 0x30]
push edx
push eax
call fcn.005fa6fb
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 2
mov dword [esp + 0x24], edi
je 0x5ca9a2
lea ecx, [esp + 0x30]
call fcn.006018cc
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.00553840
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
jmp 0x5cae40
mov eax, dword [esi + 0xb0]
mov cl, byte [eax + 0x306]
test cl, cl
jne 0x5caa4d
mov cl, byte [esi + 0xcb]
test cl, cl
je 0x5ca9e4
add eax, 0x15c
jmp 0x5ca9e9
add eax, 0x158
mov ecx, dword [eax]
test ecx, ecx
jne 0x5caa0b
push str.Try_SSL3_r_n
mov ecx, esi
mov dword [eax], 1
call fcn.0054b0f0
mov eax, 0x757e
jmp 0x5cae81
cmp ecx, 1
jne 0x5caa2c
push str.Try_TLS1_r_n
mov ecx, esi
mov dword [eax], 2
call fcn.0054b0f0
mov eax, 0x757e
jmp 0x5cae81
cmp ecx, 2
jne 0x5caa4d
push str.Try_SSL3_old_r_n
mov ecx, esi
mov dword [eax], 3
call fcn.0054b0f0
mov eax, 0x757e
jmp 0x5cae81
push str.Server_unexpectedly_disconnected_n
mov ecx, esi
call fcn.0054b0f0
mov dword [esi + 0x3428], 0x80090304
mov edx, dword [0x6f175c]
mov dword [esp + 0x2c], edx
mov eax, dword [esi + 0xb4]
mov ebx, 4
test eax, eax
mov dword [esp + 0x24], ebx
jne 0x5caa9b
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x34]
call fcn.0060193a
mov dword [esp + 0x10], ebx
mov byte [esp + 0x24], 5
mov eax, dword [eax]
mov edx, dword [0x6f73f8]
push eax
lea eax, [esp + 0x30]
push edx
push eax
call fcn.005fa6fb
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x24], ebx
je 0x5caac7
lea ecx, [esp + 0x30]
call fcn.006018cc
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.00553840
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
jmp 0x5cae40
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [0x6f175c]
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.005fa6fb
mov ecx, dword [esp + 0x38]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0054b0f0
mov eax, dword [esi + 0xb4]
test eax, eax
jne 0x5cab4a
mov edx, dword [esi + 0xb0]
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push eax
call fcn.0060193a
mov dword [esp + 0x10], 8
mov byte [esp + 0x24], 8
mov eax, dword [eax]
mov ecx, dword [0x6f73f8]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.005fa6fb
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 8
mov dword [esp + 0x24], ebx
je 0x5cab76
lea ecx, [esp + 0x30]
call fcn.006018cc
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x9c]
push eax
call fcn.00553840
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.006018cc
mov eax, edi
jmp 0x5cae81
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 0x5cad0e
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 0x5cac9a
push str.Out_of_memory__2__n
mov ecx, esi
call fcn.0054b0f0
mov eax, dword [0x6f175c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xb4]
mov edi, 0xa
cmp eax, ebp
mov dword [esp + 0x24], edi
jne 0x5cac44
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx]
lea ecx, [esp + 0x34]
push edx
call fcn.0060193a
mov dword [esp + 0x10], 0x10
mov byte [esp + 0x24], 0xb
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [0x6f73f8]
push eax
push ecx
call fcn.005fa6fb
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 0x10
mov dword [esp + 0x24], edi
je 0x5cac6f
lea ecx, [esp + 0x34]
call fcn.006018cc
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.00553840
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.006018cc
mov eax, 0x80090304
jmp 0x5cae81
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.005e6240
mov eax, dword [esi + 0x33f4]
mov dword [edi + 4], 2
mov dword [edi], eax
mov ecx, dword [0x6f175c]
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.005fa6fb
mov ecx, dword [esp + 0x44]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0054b0f0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x38]
jmp 0x5cae40
mov eax, dword [esp + 0x3c]
mov dword [eax + 8], ebp
mov dword [eax], ebp
mov dword [eax + 4], ebp
jmp 0x5cae45
mov edx, dword [0x6f175c]
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.005fa6fb
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0054b0f0
mov ecx, dword [esi + 0xb0]
mov al, byte [ecx + 0x306]
test al, al
jne 0x5cadd4
mov al, byte [esi + 0xcb]
test al, al
lea eax, [ecx + 0x15c]
jne 0x5cad7d
lea eax, [ecx + 0x158]
mov edx, dword [eax]
cmp edx, ebp
jne 0x5cad90
mov dword [eax], 1
push str.Try_SSL3_r_n
jmp 0x5cadb2
cmp edx, 1
jne 0x5cada2
mov dword [eax], 2
push str.Try_TLS1_r_n
jmp 0x5cadb2
cmp edx, 2
jne 0x5cadd4
mov dword [eax], 3
push str.Try_SSL3_old_r_n
mov ecx, esi
call fcn.0054b0f0
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call fcn.006018cc
mov eax, 0x757e
jmp 0x5cae81
mov eax, dword [esi + 0xb4]
mov ebx, 0x20
cmp eax, ebp
jne 0x5cadf8
mov eax, dword [ecx]
lea ecx, [esp + 0x3c]
push eax
call fcn.0060193a
mov dword [esp + 0x10], ebx
mov byte [esp + 0x24], 0xe
mov eax, dword [eax]
mov ecx, dword [0x6f73f8]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.005fa6fb
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x24], edi
je 0x5cae24
lea ecx, [esp + 0x3c]
call fcn.006018cc
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x9c]
push eax
call fcn.00553840
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.006018cc
mov eax, dword [esi + 0x3428]
test eax, eax
jge 0x5cae60
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 0x5cae7f
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x5cae81
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