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

Disassembly:
push 0xffffffffffffffff
push 0x667ff6
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edi
cmp dword [esi + 0x345c], edi
jne 0x5ddb83
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi + 0x345c], eax
cmp eax, edi
jne 0x5ddb83
push str.Out_of_memory__1__n
mov ecx, esi
call fcn.00561d20
lea ecx, [esp + 0x38]
call fcn.00402500
mov dword [esp + 0x30], edi
mov eax, dword [esi + 0xcc]
lea ebx, [edi + 1]
cmp eax, edi
jne 0x5ddb29
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x44]
call fcn.004030b0
mov byte [esp + 0x30], bl
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
mov edx, dword [0x75ecb8]
push eax
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00402f70
add esp, 0xc
mov dword [esp + 0x30], edi
test byte [esp + 0x14], bl
je 0x5ddb58
and dword [esp + 0x14], 0xfffffffe
lea ecx, [esp + 0x40]
call fcn.00402570
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esi + 0xb4]
call fcn.0056ae20
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.00402570
mov eax, 0x80090304
jmp 0x5de6dd
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x38]
mov dword [esi + 0x3460], edi
mov dword [esi + 0x3464], edx
mov dword [esi + 0x3458], 0x90312
mov eax, dword [esi + 0x3458]
cmp eax, 0x90312
je 0x5ddbc0
cmp eax, 0x80090318
je 0x5ddbc0
cmp eax, 0x90320
jne 0x5de66c
cmp dword [esi + 0x3460], 0
je 0x5ddbd4
cmp eax, 0x80090318
jne 0x5ddd3e
cmp dword [esi + 0x3464], 0
je 0x5ddd34
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x5ddc3d
cmp byte [eax + 0x137], 0
je 0x5ddc3d
mov eax, dword [esi + 0x3480]
test eax, eax
je 0x5ddc3d
cmp dword [eax + 0x3468], 0
je 0x5ddc10
cmp dword [eax + 0x346c], 0
jne 0x5ddc3d
cmp dword [eax + 0x347c], 0
je 0x5ddc28
mov ecx, dword [eax + 0xc8]
cmp dword [ecx + 0x17c], 5
je 0x5ddc3d
cmp dword [eax + 0x3400], 0
je 0x5ddc3d
cmp dword [eax + 0x33a8], 0x80090318
jne 0x5ddc51
push 0x14
push ebx
mov ecx, esi
call fcn.00563ef0
mov edi, eax
test edi, edi
jne 0x5de01d
mov eax, dword [esi + 0x3460]
mov ecx, dword [esi + 0x345c]
xor ebp, ebp
push ebp
mov edx, 0x10000
sub edx, eax
push edx
add ecx, eax
push ecx
push ebx
mov ecx, esi
call fcn.00562000
mov edi, eax
cmp edi, 0xffffffff
jne 0x5ddce3
lea ebx, [ebx]
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x5ddcda
cmp ebp, 0x14
jge 0x5ddcda
push str.HandshakeLoopWSAEWB_n
mov ecx, esi
call fcn.00561d20
push 0x3c
push ebx
mov ecx, esi
call fcn.00563ef0
test eax, eax
jne 0x5de6dd
mov eax, dword [esi + 0x3460]
mov ecx, dword [esi + 0x345c]
push 0
mov edx, 0x10000
sub edx, eax
push edx
add ecx, eax
push ecx
push ebx
mov ecx, esi
call fcn.00562000
mov edi, eax
inc ebp
cmp edi, 0xffffffff
je 0x5ddc80
jmp 0x5ddce3
cmp edi, 0xffffffff
je 0x5de053
test edi, edi
je 0x5de1aa
add dword [esi + 0x3460], edi
lea ecx, [esp + 0x44]
call fcn.00402500
mov dword [esp + 0x30], 6
push edi
lea edx, [esp + 0x48]
push str._ld_bytes_of_handshake_data_received__L711__n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x50]
add esp, 0xc
push eax
mov ecx, esi
call fcn.00561d20
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x44]
call fcn.00402570
jmp 0x5ddd3e
mov dword [esi + 0x3464], 1
mov ecx, dword [esi + 0x345c]
mov edx, dword [esi + 0x3460]
mov dword [esi + 0x3424], ecx
mov ecx, 2
mov dword [esi + 0x3420], ecx
mov dword [esi + 0x3414], ecx
mov dword [esi + 0x3444], ecx
lea ebx, [esi + 0x3450]
push ebx
lea ecx, [esi + 0x3434]
lea ebp, [esi + 0x344c]
push ebp
push ecx
push 0
push 0
mov dword [esi + 0x341c], edx
lea eax, [esi + 0x341c]
mov dword [esi + 0x3418], eax
xor edx, edx
lea eax, [esi + 0x3410]
push eax
push 0x10
push 0
push 0xc11c
mov dword [eax], edx
mov eax, dword [esp + 0x64]
lea edi, [esi + 0x3440]
mov dword [ecx], edx
mov ecx, dword [esp + 0x60]
push 0
mov dword [esi + 0x3430], edx
mov dword [esi + 0x3428], edx
mov dword [esi + 0x342c], edx
mov dword [esi + 0x3448], edx
mov dword [edi], edx
mov edx, dword [esi + 0xc8]
push eax
mov dword [esi + 0x3438], 1
mov dword [esi + 0x343c], edi
mov edx, dword [edx + 0x424]
push ecx
call edx
mov dword [esi + 0x3458], eax
test eax, eax
je 0x5dde18
cmp eax, 0x90312
je 0x5dde18
test eax, eax
jge 0x5ddf84
test dword [ebp], 0x4000
je 0x5ddf84
mov edi, dword [edi]
test edi, edi
je 0x5ddf26
mov eax, dword [esi + 0x3448]
test eax, eax
je 0x5ddf26
mov ecx, dword [esi + 0x19c]
test ecx, ecx
je 0x5ddea3
cmp byte [ecx + 0x137], 0
je 0x5ddea3
mov ecx, dword [esi + 0x3480]
test ecx, ecx
je 0x5ddea3
push edi
push eax
call fcn.005dca60
test eax, eax
jne 0x5de6dd
lea ecx, [esp + 0x18]
call fcn.00402500
mov dword [esp + 0x30], 7
push edi
lea eax, [esp + 0x1c]
push str._ld_bytes_of_handshake__3__data_sent_n
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00561d20
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402570
mov ebx, dword [esp + 0x38]
jmp 0x5ddf05
mov ebx, dword [esp + 0x38]
push 0
push edi
push eax
push ebx
call sub.WS2_32.dll_send
mov edi, eax
cmp edi, 0xffffffff
je 0x5de312
test edi, edi
je 0x5de312
lea ecx, [esp + 0x1c]
call fcn.00402500
mov dword [esp + 0x30], 0xa
push edi
lea edx, [esp + 0x20]
push str._ld_bytes_of_handshake__4__data_sent_n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
mov ecx, esi
call fcn.00561d20
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov ecx, dword [esi + 0xc8]
mov edx, dword [esi + 0x3448]
mov eax, dword [ecx + 0x44c]
push edx
call eax
mov dword [esi + 0x3448], 0
jmp 0x5ddf88
lea ecx, [esp + 0x20]
call fcn.00402500
mov dword [esp + 0x30], 0xb
mov ecx, dword [esi + 0x3458]
push ecx
lea edx, [esp + 0x24]
push str.InitializeSecurityContext__2__ret0x_x_n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
mov ecx, esi
call fcn.00561d20
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5ddf84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x38]
mov eax, dword [esi + 0x3458]
cmp eax, 0x80090318
je 0x5ddba1
xor ebp, ebp
cmp eax, ebp
je 0x5de3ee
jl 0x5de52e
cmp eax, 0x90317
je 0x5de52e
cmp eax, 0x90320
jne 0x5ddfd7
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
mov ecx, esi
call fcn.005db5f0
mov dword [esi + 0x3464], ebp
jmp 0x5ddb97
cmp dword [esi + 0x342c], 5
jne 0x5de012
mov eax, dword [esi + 0x3428]
mov edx, dword [esi + 0x3460]
mov ecx, dword [esi + 0x345c]
sub edx, eax
push eax
add edx, ecx
push edx
push ecx
call fcn.00623330
mov eax, dword [esi + 0x3428]
add esp, 0xc
mov dword [esi + 0x3460], eax
jmp 0x5ddba1
mov dword [esi + 0x3460], ebp
jmp 0x5ddba1
cmp edi, 0x7532
jne 0x5de04c
mov eax, dword [esi + 0xc8]
cmp byte [eax + 0x33e], 0
je 0x5de03d
cmp byte [eax + 0x174], 0
je 0x5de04c
mov ecx, esi
call fcn.005da910
test eax, eax
jne 0x5de6d8
mov eax, edi
jmp 0x5de6dd
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], edi
call fcn.00402500
mov ebx, 2
mov dword [esp + 0x30], ebx
push edi
lea ecx, [esp + 0x3c]
push str.Error__d_reading_data_from_server_n
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x44]
add esp, 0xc
push edx
mov ecx, esi
call fcn.00561d20
mov ecx, dword [esi + 0xc8]
cmp byte [ecx + 0x33e], 0
je 0x5de0ab
cmp byte [ecx + 0x174], 0
je 0x5de147
cmp byte [esi + 0xe3], 0
lea eax, [ecx + 0x17c]
jne 0x5de0c0
lea eax, [ecx + 0x178]
mov edx, dword [eax]
test edx, edx
jne 0x5de0d6
mov dword [eax], 1
push str.Try_SSL3_r_n
jmp 0x5de6c0
cmp edx, 1
jne 0x5de0e7
mov dword [eax], ebx
push str.Try_TLS1_r_n
jmp 0x5de6c0
cmp edx, ebx
jne 0x5de0fb
mov dword [eax], 3
push str.Try_SSL3_old_r_n
jmp 0x5de6c0
cmp dword [0x75dbb8], 0
je 0x5de119
cmp edx, 3
jne 0x5de119
mov dword [eax], 4
push str.Try_TLS_1.3_r_n
jmp 0x5de6c0
mov edi, dword [esi + 0x19c]
test edi, edi
je 0x5de135
cmp byte [edi + 0x137], 0
je 0x5de135
cmp dword [esi + 0x3480], 0
jne 0x5de147
cmp edx, 4
je 0x5de6b5
cmp edx, 3
je 0x5de6b5
mov eax, dword [esi + 0xcc]
mov dword [esi + 0x3458], 0x80090304
test eax, eax
jne 0x5de170
mov eax, dword [ecx]
push eax
lea ecx, [esp + 0x40]
call fcn.004030b0
mov byte [esp + 0x30], 3
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
mov ecx, dword [0x75ecb8]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00402f70
add esp, 0xc
mov dword [esp + 0x30], ebx
test byte [esp + 0x14], 2
je 0x5de1a0
and dword [esp + 0x14], 0xfffffffd
lea ecx, [esp + 0x3c]
call fcn.00402570
mov eax, dword [esp + 0x38]
push eax
jmp 0x5de650
push str.Server_unexpectedly_disconnected_n
mov ecx, esi
call fcn.00561d20
mov eax, dword [esi + 0xc8]
cmp byte [eax + 0x33e], 0
mov ebx, 4
je 0x5de1d7
cmp byte [eax + 0x174], 0
je 0x5de287
cmp byte [esi + 0xe3], 0
lea ecx, [eax + 0x17c]
jne 0x5de1ec
lea ecx, [eax + 0x178]
mov eax, dword [ecx]
test eax, eax
jne 0x5de209
mov dword [ecx], 1
push str.Try_SSL3_r_n
mov ecx, esi
call fcn.00561d20
jmp 0x5de6d8
cmp eax, 1
jne 0x5de225
mov dword [ecx], 2
push str.Try_TLS1_r_n
mov ecx, esi
call fcn.00561d20
jmp 0x5de6d8
cmp eax, 2
jne 0x5de241
mov dword [ecx], 3
push str.Try_SSL3_old_r_n
mov ecx, esi
call fcn.00561d20
jmp 0x5de6d8
cmp dword [0x75dbb8], 0
je 0x5de262
cmp eax, 3
jne 0x5de262
mov dword [ecx], ebx
push str.Try_TLS_1.3_r_n
mov ecx, esi
call fcn.00561d20
jmp 0x5de6d8
mov edx, dword [esi + 0x19c]
test edx, edx
je 0x5de27e
cmp byte [edx + 0x137], 0
je 0x5de27e
cmp dword [esi + 0x3480], 0
jne 0x5de287
cmp eax, ebx
je 0x5de2fb
cmp eax, 3
je 0x5de2fb
lea ecx, [esp + 0x38]
mov dword [esi + 0x3458], 0x80090304
call fcn.00402500
mov dword [esp + 0x30], ebx
mov eax, dword [esi + 0xcc]
test eax, eax
jne 0x5de2c3
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
push edx
lea ecx, [esp + 0x40]
call fcn.004030b0
mov byte [esp + 0x30], 5
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
push eax
mov eax, dword [0x75ecb8]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00402f70
add esp, 0xc
mov dword [esp + 0x30], ebx
test byte [esp + 0x14], bl
je 0x5de2f1
and dword [esp + 0x14], 0xfffffffb
lea ecx, [esp + 0x3c]
call fcn.00402570
mov edx, dword [esp + 0x38]
push edx
jmp 0x5de650
mov dword [ecx], 5
push str.Try_openssl_lib_r_n
mov ecx, esi
call fcn.00561d20
jmp 0x5de6d8
call sub.WS2_32.dll_WSAGetLastError
lea ecx, [esp + 0x38]
mov edi, eax
call fcn.00402500
mov ebx, 8
mov dword [esp + 0x30], ebx
push edi
lea eax, [esp + 0x3c]
push str.Error__d_sending_data_to_server__2__n
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x44]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00561d20
mov eax, dword [esi + 0xcc]
test eax, eax
jne 0x5de36f
mov edx, dword [esi + 0xc8]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x40]
call fcn.004030b0
mov byte [esp + 0x30], 9
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
mov ecx, dword [0x75ecb8]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00402f70
add esp, 0xc
mov dword [esp + 0x30], ebx
test byte [esp + 0x14], bl
je 0x5de39e
and dword [esp + 0x14], 0xfffffff7
lea ecx, [esp + 0x3c]
call fcn.00402570
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0xb4]
push eax
call fcn.0056ae20
mov ecx, dword [esi + 0xc8]
mov edx, dword [esi + 0x3448]
mov eax, dword [ecx + 0x44c]
push edx
call eax
mov ecx, dword [esi + 0xc8]
mov edx, dword [esp + 0x40]
mov eax, dword [ecx + 0x430]
push edx
call eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.00402570
mov eax, edi
jmp 0x5de6dd
push str.Handshake_was_successful_n
mov ecx, esi
call fcn.00561d20
cmp dword [esi + 0x342c], 5
mov byte [esi + 0x3338], 1
jne 0x5de51d
mov ecx, dword [esi + 0x3428]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [esp + 0x48]
mov dword [edi + 8], eax
cmp eax, ebp
jne 0x5de4ac
push str.Out_of_memory__2__n
mov ecx, esi
call fcn.00561d20
lea ecx, [esp + 0x38]
call fcn.00402500
mov edi, 0xd
mov dword [esp + 0x30], edi
mov eax, dword [esi + 0xcc]
cmp eax, ebp
jne 0x5de472
mov edx, dword [esi + 0xc8]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x44]
call fcn.004030b0
mov byte [esp + 0x30], 0xe
mov dword [esp + 0x14], 0x10
mov eax, dword [eax]
mov ecx, dword [0x75ecb8]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00402f70
add esp, 0xc
mov dword [esp + 0x30], edi
test byte [esp + 0x14], 0x10
je 0x5de4a2
and dword [esp + 0x14], 0xffffffef
lea ecx, [esp + 0x40]
call fcn.00402570
mov eax, dword [esp + 0x38]
push eax
jmp 0x5ddb5d
mov ecx, dword [esi + 0x3428]
mov edx, dword [esi + 0x3460]
sub edx, ecx
add edx, dword [esi + 0x345c]
push ecx
push edx
push eax
call fcn.00623330
mov eax, dword [esi + 0x3428]
add esp, 0xc
lea ecx, [esp + 0x3c]
mov dword [edi], eax
mov dword [edi + 4], 2
call fcn.00402500
mov dword [esp + 0x30], 0xf
mov ecx, dword [edi]
push ecx
lea edx, [esp + 0x40]
push str._d_bytes_of_app_data_was_bundled_with_handshake_data_n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x48]
add esp, 0xc
push eax
mov ecx, esi
call fcn.00561d20
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x3c]
jmp 0x5de667
mov eax, dword [esp + 0x48]
mov dword [eax + 8], ebp
mov dword [eax], ebp
mov dword [eax + 4], ebp
jmp 0x5de66c
lea ecx, [esp + 0x38]
call fcn.00402500
mov ebx, 0x10
mov dword [esp + 0x30], ebx
mov ecx, dword [esi + 0x3458]
push ecx
lea edx, [esp + 0x3c]
push str.Error_0x_x_returned_by_InitializeSecurityContext__2__n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x44]
add esp, 0xc
push eax
mov ecx, esi
call fcn.00561d20
mov edi, dword [esi + 0xc8]
cmp byte [edi + 0x33e], 0
je 0x5de57d
cmp byte [edi + 0x174], 0
je 0x5de5f8
cmp byte [esi + 0xe3], 0
lea eax, [edi + 0x17c]
jne 0x5de592
lea eax, [edi + 0x178]
mov ecx, dword [eax]
cmp ecx, ebp
je 0x5de0c6
cmp ecx, 1
jne 0x5de5b1
mov dword [eax], 2
push str.Try_TLS1_r_n
jmp 0x5de6c0
cmp ecx, 2
je 0x5de0eb
cmp dword [0x75dbb8], ebp
je 0x5de5cb
cmp ecx, 3
je 0x5de109
mov edx, dword [esi + 0x19c]
cmp edx, ebp
je 0x5de5e6
cmp byte [edx + 0x137], 0
je 0x5de5e6
cmp dword [esi + 0x3480], ebp
jne 0x5de5f8
cmp ecx, 4
je 0x5de6b5
cmp ecx, 3
je 0x5de6b5
mov eax, dword [esi + 0xcc]
cmp eax, ebp
jne 0x5de61b
mov ecx, dword [edi]
push ecx
lea ecx, [esp + 0x40]
call fcn.004030b0
mov byte [esp + 0x30], 0x11
mov dword [esp + 0x14], 0x20
mov eax, dword [eax]
mov edx, dword [0x75ecb8]
push eax
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00402f70
add esp, 0xc
mov dword [esp + 0x30], ebx
test byte [esp + 0x14], 0x20
je 0x5de64b
and dword [esp + 0x14], 0xffffffdf
lea ecx, [esp + 0x3c]
call fcn.00402570
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esi + 0xb4]
call fcn.0056ae20
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.00402570
cmp dword [esi + 0x3458], 0
jge 0x5de688
mov edx, dword [esi + 0xc8]
mov eax, dword [esp + 0x40]
mov ecx, dword [edx + 0x430]
push eax
call ecx
mov edx, dword [esi + 0x345c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 0x345c], 0
mov esi, dword [esi + 0x3458]
test esi, esi
jge 0x5de6b1
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5de6dd
mov eax, esi
jmp 0x5de6dd
push str.Try_openssl_lib_r_n
mov dword [eax], 5
mov ecx, esi
call fcn.00561d20
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.00402570
mov eax, 0x757e
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x14