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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ae78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x5b5ecc]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebx + 0x7c]
lea esi, [ebx + 0x2f88]
lea eax, [ebx + 0x2f70]
push esi
push 4
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x360]
test eax, eax
mov dword [ebx + 0x2f9c], eax
je 0x506f1d
mov edx, dword [0x5b5ecc]
mov dword [ebp + 0xc], edx
push eax
lea eax, [ebp + 0xc]
push str.Error_0x_x_reading_SECPKG_ATTR_STREAM_SIZES_n
push eax
mov byte [ebp - 4], 2
call fcn.0053091a
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.004c7490
mov edx, dword [ebx + 0x7c]
mov ecx, dword [0x5bb43c]
mov eax, dword [edx]
lea edx, [ebp + 0xc]
push eax
push ecx
push edx
call fcn.0053091a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x6c]
add esp, 0xc
push eax
call fcn.004c9920
mov ebx, dword [ebx + 0x2f9c]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
jmp 0x507128
mov ecx, dword [ebx + 0x2f90]
mov edx, dword [ebx + 0x2f8c]
mov eax, dword [esi]
push ecx
push edx
push eax
lea ecx, [ebp - 0x14]
push str.Header:__d__Trailer:__d__MaxMessage:__d_r_n
push ecx
call fcn.0053091a
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.004c7490
mov eax, dword [ebx + 0x2f90]
mov ecx, dword [ebx + 0x2f8c]
add eax, ecx
mov ecx, dword [esi]
lea eax, [eax + ecx + 0x80]
push eax
push 0
mov dword [ebx + 0x2ff8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebx + 0x2ff0], eax
jne 0x506fe8
push str.Out_of_memory__2__n
mov ecx, ebx
call fcn.004c7490
mov edx, dword [0x5b5ecc]
mov dword [ebp + 0xc], edx
mov eax, dword [ebx + 0x7c]
mov edx, dword [0x5bb43c]
mov byte [ebp - 4], 3
mov ecx, dword [eax]
lea eax, [ebp + 0xc]
push ecx
push edx
push eax
call fcn.0053091a
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push ecx
mov ecx, dword [ebx + 0x6c]
call fcn.004c9920
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, 0x80090304
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esi]
mov ecx, dword [ebp + 0xc]
lea edi, [esi + eax]
mov eax, dword [ebx + 0x2ff8]
sub eax, esi
mov dword [ebx + 0x2ffc], edi
cmp ecx, eax
mov dword [ebp - 0x18], eax
jae 0x507007
mov eax, ecx
mov esi, dword [ebp + 8]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x2ffc]
mov ecx, dword [ebp - 0x18]
mov byte [edx + ecx - 1], 0
mov edx, dword [ebp + 0xc]
cmp edx, ecx
jae 0x507039
mov ecx, dword [ebx + 0x2ffc]
mov byte [ecx + edx], 0
mov ecx, dword [ebx + 0x2f88]
mov edx, dword [ebx + 0x2ff0]
lea esi, [ebx + 0x2fac]
mov dword [ebx + 0x3000], eax
mov dword [ebx + 0x2fb8], eax
push 0
mov dword [esi], ecx
mov ecx, dword [ebx + 0x2ffc]
mov dword [ebx + 0x2fc0], ecx
add ecx, eax
lea eax, [ebx + 0x2fa0]
mov dword [ebx + 0x2fb4], edx
mov edx, dword [ebx + 0x2f8c]
mov dword [ebx + 0x2fcc], ecx
mov ecx, dword [ebx + 0x7c]
push eax
lea edi, [ebx + 0x2f70]
push 0
push edi
mov dword [ebx + 0x2fb0], 7
mov dword [ebx + 0x2fbc], 1
mov dword [ebx + 0x2fc4], edx
mov dword [ebx + 0x2fc8], 6
mov dword [ebx + 0x2fd4], 0
mov dword [eax], 0
mov dword [ebx + 0x2fa4], 4
mov dword [ebx + 0x2fa8], esi
call dword [ecx + 0x398]
test eax, eax
mov dword [ebx + 0x2f9c], eax
jge 0x50714e
mov edx, dword [0x5b5ecc]
mov dword [ebp + 0xc], edx
push eax
lea eax, [ebp + 0xc]
push str.Error_0x_x_returned_by_EncryptMessage_n
push eax
mov byte [ebp - 4], 4
call fcn.0053091a
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.004c7490
mov edx, dword [0x5bb438]
mov ecx, dword [ebx + 0x6c]
push edx
call fcn.004c9920
mov ebx, dword [ebx + 0x2f9c]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0x2fc4]
mov ecx, dword [ebx + 0x2fb8]
mov edx, dword [esi]
add eax, ecx
mov ecx, dword [ebx + 0x2ff0]
add eax, edx
mov edx, dword [ebx + 0x2e74]
push 0
push eax
push ecx
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x5071bd
test eax, eax
je 0x5071bd
push eax
lea eax, [ebp - 0x14]
push str._d_bytes_of_request_sent_r_n
push eax
call fcn.0053091a
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.004c7490
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call sub.WSOCK32.dll_WSAGetLastError
mov edx, dword [0x5b5ecc]
mov esi, eax
mov dword [ebp + 8], edx
push esi
lea eax, [ebp + 8]
push str.Error__d_sending_data_to_server__3__n
push eax
mov byte [ebp - 4], 5
call fcn.0053091a
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.004c7490
mov edx, dword [ebx + 0x7c]
mov ecx, dword [0x5bb43c]
mov eax, dword [edx]
lea edx, [ebp + 8]
push eax
push ecx
push edx
call fcn.0053091a
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x6c]
add esp, 0xc
push eax
call fcn.004c9920
mov ecx, dword [ebx + 0x7c]
push edi
call dword [ecx + 0x358]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8