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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
cmp dword [edi + 8], 1
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
je 0x1002b66b
lea eax, [ebp - 0x3c]
mov dword [esp + 4], 0x8004667e
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [ebp - 0x3c], 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 0x1002b829
mov eax, dword [ebp - 0x58]
mov esi, edi
mov dword [eax], 0
lea eax, [edi + 0xc]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1002b7d8
nop
mov eax, dword [ebp - 0x50]
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x38], 7
cmp dword [esi + 0x1c], eax
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x2c], 1
mov edi, eax
mov eax, dword [esi + 0x2c]
cmovbe edi, dword [esi + 0x1c]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x24], ebx
lea ecx, [eax + edx]
add edx, edi
mov dword [ebp - 0x34], eax
add eax, edx
mov dword [esp + 8], edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 4
call sym._memcpy
lea eax, [ebp - 0x48]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._EncryptMessage_16
sub esp, 0x10
test eax, eax
je 0x1002b768
test byte [0x100471b4], 4
jne 0x1002b800
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 - 0x64], edi
mov dword [ebp - 0x68], esi
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi]
mov edi, ecx
add ebx, dword [ebp - 0x3c]
add ebx, dword [ebp - 0x24]
mov esi, eax
jmp 0x1002b79d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1002b7e8
mov eax, dword [ebp - 0x4c]
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 0x1002b790
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
test eax, eax
jle 0x1002b7e8
mov eax, dword [ebp - 0x58]
add dword [ebp - 0x54], edi
add dword [eax], edi
sub dword [ebp - 0x50], edi
jne 0x1002b6a0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x100471b4], 4
je 0x1002b755
mov dword [esp + 0xc], str.send_failed_n
jmp 0x1002b808
mov dword [esp + 0xc], str.EncryptMessage_failed_n
mov dword [esp + 8], str.send_ssl_chunk
mov dword [esp + 4], 0x100471b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_6
jmp 0x1002b755
mov esi, dword [edi]
mov edi, dword [sym.imp.ws2_32.dll_send]
jmp 0x1002b845
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1002b870
mov eax, dword [ebp - 0x50]
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], eax
call edi
sub esp, 0x10
cmp eax, 0xffffffff
je 0x1002b838
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
xor eax, eax
jmp 0x1002b7da
mov eax, dword [ebp - 0x58]
mov dword [eax], 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.ws2_32.dll_WSAGetLastError]