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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5661d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x5c2a74]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x2ff0]
mov byte [ebp - 4], 1
test eax, eax
jne 0x511495
mov ecx, dword [ebx + 0x7c]
lea esi, [ebx + 0x2f88]
push esi
lea edx, [ebx + 0x2f70]
push 4
push edx
call dword [ecx + 0x378]
test eax, eax
mov dword [ebx + 0x2f9c], eax
je 0x5113ca
mov ecx, dword [0x5c2a74]
mov dword [ebp + 0xc], ecx
push eax
lea edx, [ebp + 0xc]
push str.Error_0x_x_reading_SECPKG_ATTR_STREAM_SIZES_n
push edx
mov byte [ebp - 4], 2
call fcn.0053afda
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.004cfa50
mov ecx, dword [ebx + 0x7c]
mov eax, dword [0x5c8094]
mov edx, dword [ecx]
lea ecx, [ebp + 0xc]
push edx
push eax
push ecx
call fcn.0053afda
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x6c]
add esp, 0xc
push edx
call fcn.004d1ef0
mov ebx, dword [ebx + 0x2f9c]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
jmp 0x5115e4
mov eax, dword [ebx + 0x2f90]
mov ecx, dword [ebx + 0x2f8c]
mov edx, dword [esi]
push eax
push ecx
push edx
lea eax, [ebp - 0x18]
push str.Header:__d__Trailer:__d__MaxMessage:__d_r_n
push eax
call fcn.0053afda
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.004cfa50
mov edx, dword [ebx + 0x2f90]
mov edi, dword [ebx + 0x2f8c]
mov eax, dword [esi]
add edx, edi
lea eax, [edx + eax + 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 0x511495
push str.Out_of_memory__2__n
mov ecx, ebx
call fcn.004cfa50
mov ecx, dword [0x5c2a74]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebx + 0x7c]
mov ecx, dword [0x5c8094]
mov byte [ebp - 4], 3
mov eax, dword [edx]
lea edx, [ebp + 0xc]
push eax
push ecx
push edx
call fcn.0053afda
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x6c]
add esp, 0xc
push eax
call fcn.004d1ef0
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005421be
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 ecx, dword [ebx + 0x2ff0]
mov edx, dword [ebx + 0x2f88]
mov eax, dword [ebx + 0x2f90]
lea edi, [ecx + edx]
mov edx, dword [ebp + 0xc]
cmp edx, eax
mov dword [ebx + 0x2ffc], edi
mov dword [ebp - 0x1c], eax
jae 0x5114bf
mov dword [ebp - 0x20], edx
jmp 0x5114c4
mov dword [ebp - 0x20], eax
mov edx, eax
mov esi, dword [ebp + 8]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x2ffc]
mov byte [ecx + eax], 0
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jae 0x5114f5
mov eax, dword [ebx + 0x2ffc]
mov byte [eax + ecx], 0
mov eax, dword [ebx + 0x2f88]
lea esi, [ebx + 0x2fac]
mov ecx, dword [ebx + 0x2ff0]
push 0
mov dword [esi], eax
mov eax, dword [ebx + 0x2ffc]
mov dword [ebx + 0x2fc0], eax
add eax, edx
mov dword [ebx + 0x2fcc], eax
lea eax, [ebx + 0x2fa0]
push eax
mov dword [ebx + 0x3000], edx
mov dword [eax], 0
mov dword [ebx + 0x2fb4], ecx
mov ecx, dword [ebx + 0x2f8c]
mov dword [ebx + 0x2fb8], edx
mov edx, dword [ebx + 0x7c]
lea eax, [ebx + 0x2f70]
push 0
push eax
mov dword [ebx + 0x2fb0], 7
mov dword [ebx + 0x2fbc], 1
mov dword [ebx + 0x2fc4], ecx
mov dword [ebx + 0x2fc8], 6
mov dword [ebx + 0x2fd4], 0
mov dword [ebx + 0x2fa4], 4
mov dword [ebx + 0x2fa8], esi
call dword [edx + 0x3b0]
test eax, eax
mov dword [ebx + 0x2f9c], eax
jge 0x51160a
mov ecx, dword [0x5c2a74]
mov dword [ebp + 0xc], ecx
push eax
lea edx, [ebp + 0xc]
push str.Error_0x_x_returned_by_EncryptMessage_n
push edx
mov byte [ebp - 4], 4
call fcn.0053afda
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.004cfa50
mov ecx, dword [0x5c8090]
push ecx
mov ecx, dword [ebx + 0x6c]
call fcn.004d1ef0
mov ebx, dword [ebx + 0x2f9c]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.005421be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005421be
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 edx, dword [esi]
mov edi, dword [ebx + 0x2fc4]
mov ecx, dword [ebx + 0x2fb8]
mov eax, dword [ebx + 0x2ff0]
add edx, edi
push 0
add edx, ecx
mov ecx, dword [ebx + 0x2e74]
push edx
push eax
push ecx
call sub.WSOCK32.dll_send
mov edi, eax
cmp edi, 0xffffffff
je 0x511641
test edi, edi
jne 0x511739
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x1c]
cmp eax, 0x2733
jne 0x5116a1
mov edx, dword [esi]
mov edi, dword [ebx + 0x2fc4]
mov ecx, dword [ebx + 0x2fb8]
mov eax, dword [ebx + 0x2ff0]
add edx, edi
push 0
add edx, ecx
mov ecx, dword [ebx + 0x2e74]
push edx
push eax
push ecx
call sub.WSOCK32.dll_send
mov edi, eax
cmp edi, 0xffffffff
je 0x511697
test edi, edi
je 0x511697
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x1c], 0
jmp 0x51164d
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x1c], eax
jmp 0x51164d
mov cl, byte [ebp - 0x11]
test cl, cl
je 0x511739
mov edx, dword [0x5c2a74]
mov dword [ebp + 8], edx
push eax
lea eax, [ebp + 8]
push str.Error__d_sending_data_to_server__3__n
push eax
mov byte [ebp - 4], 5
call fcn.0053afda
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.004cfa50
mov edx, dword [ebx + 0x7c]
mov ecx, dword [0x5c8094]
mov eax, dword [edx]
lea edx, [ebp + 8]
push eax
push ecx
push edx
call fcn.0053afda
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x6c]
add esp, 0xc
push eax
call fcn.004d1ef0
mov ecx, dword [ebx + 0x7c]
add ebx, 0x2f70
push ebx
call dword [ecx + 0x370]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
lea edx, [ebp - 0x18]
push str._d_bytes_of_request_sent_r_n
push edx
call fcn.0053afda
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.004cfa50
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jge 0x511793
mov edx, dword [ebp + 8]
sub eax, ecx
add ecx, edx
push eax
push ecx
mov ecx, ebx
call fcn.00511300
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 0
call fcn.005421be
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
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005421be
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