Function at 0x6c12be70
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x10]
cmp dword [edi + 8], 1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x68], eax
je 0x6c12bebb
lea eax, [ebp - 0x48]
mov dword [esp + 4], 0x8004667e
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [ebp - 0x48], 0
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
sub esp, 0xc
mov edx, dword [edi + 4]
mov dword [edi + 8], 1
test edx, edx
je 0x6c12c079
mov eax, dword [ebp - 0x68]
mov esi, edi
mov dword [eax], 0
lea eax, [edi + 0xc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x6c12c028
nop
mov eax, dword [ebp - 0x60]
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x44], 7
cmp dword [esi + 0x1c], eax
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x38], 1
mov edi, eax
mov eax, dword [esi + 0x2c]
cmovbe edi, dword [esi + 0x1c]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x30], ebx
lea ecx, [eax + edx]
add edx, edi
mov dword [ebp - 0x40], eax
add eax, edx
mov dword [esp + 8], edi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 4
call sym._memcpy
lea eax, [ebp - 0x54]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._EncryptMessage_16
sub esp, 0x10
test eax, eax
je 0x6c12bfb8
test byte [0x6c1471b4], 4
jne 0x6c12c050
lea esp, [ebp - 0xc]
mov eax, 0x2f7d
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x2c]
mov ecx, dword [sym.imp.ws2_32.dll_send]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], esi
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi]
mov edi, ecx
add ebx, dword [ebp - 0x48]
add ebx, dword [ebp - 0x30]
mov esi, eax
jmp 0x6c12bfed
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x6c12c038
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
sub esp, 0x10
cmp eax, 0xffffffff
je 0x6c12bfe0
mov edi, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
test eax, eax
jle 0x6c12c038
mov eax, dword [ebp - 0x68]
add dword [ebp - 0x64], edi
add dword [eax], edi
sub dword [ebp - 0x60], edi
jne 0x6c12bef0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x6c1471b4], 4
je 0x6c12bfa5
mov dword [esp + 0xc], str.send_failed_n
jmp 0x6c12c058
mov dword [esp + 0xc], str.EncryptMessage_failed_n
mov dword [esp + 8], str.send_ssl_chunk
mov dword [esp + 4], 0x6c1471b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_6
jmp 0x6c12bfa5
mov esi, dword [edi]
mov edi, dword [sym.imp.ws2_32.dll_send]
jmp 0x6c12c095
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x6c12c0c0
mov eax, dword [ebp - 0x60]
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
call edi
sub esp, 0x10
cmp eax, 0xffffffff
je 0x6c12c088
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
xor eax, eax
jmp 0x6c12c02a
mov eax, dword [ebp - 0x68]
mov dword [eax], 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.ws2_32.dll_WSAGetLastError]