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

Disassembly:
push 0xffffffffffffffff
push 0x5660f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x44]
lea eax, [esp + 0x10]
push esi
lea edx, [esp + 0xc]
push edi
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x4c]
lea edx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x50]
xor ebx, ebx
push edx
mov edx, dword [esp + 0x50]
push ebp
push ebx
push ebx
push 0x10
mov esi, ecx
push ebx
push 0xc11c
push eax
mov ecx, dword [esi + 0x7c]
push ebx
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], 2
mov dword [esp + 0x48], ebx
mov dword [esp + 0x58], 1
mov dword [esp + 0x54], ebx
call dword [ecx + 0x364]
mov edi, eax
cmp edi, 0x90312
je 0x51060b
mov eax, dword [0x5c2a74]
mov dword [esp + 0x54], eax
push edi
lea ecx, [esp + 0x58]
push str.Error__d_returned_by_InitializeSecurityContext__1__n
push ecx
mov dword [esp + 0x44], ebx
call fcn.0053afda
mov edx, dword [esp + 0x60]
add esp, 0xc
mov ecx, esi
push edx
call fcn.004cfa50
mov eax, dword [esi + 0x7c]
mov edx, dword [0x5c8094]
mov ecx, dword [eax]
lea eax, [esp + 0x54]
push ecx
push edx
push eax
call fcn.0053afda
mov ecx, dword [esp + 0x60]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x6c]
call fcn.004d1ef0
lea ecx, [esp + 0x54]
mov dword [esp + 0x38], 0xffffffff
call fcn.005421be
mov eax, edi
jmp 0x510780
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x40]
cmp ecx, ebx
je 0x510685
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x510685
push ebx
push ecx
push eax
push edi
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x5106a9
cmp eax, ebx
je 0x5106a9
mov edx, dword [0x5c2a74]
mov dword [esp + 0x4c], edx
push eax
lea eax, [esp + 0x50]
push str._d_bytes_of_handshake_data_sent_n
push eax
mov dword [esp + 0x44], 2
call fcn.0053afda
mov ecx, dword [esp + 0x58]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004cfa50
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x7c]
push eax
call dword [edx + 0x38c]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], 0xffffffff
call fcn.005421be
cmp byte [esp + 0x54], bl
je 0x510734
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
push eax
push 1
push ebp
push ecx
push edi
mov ecx, esi
call fcn.005107a0
jmp 0x510780
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [0x5c2a74]
mov edi, eax
mov dword [esp + 0x44], ecx
push edi
lea edx, [esp + 0x48]
push str.Error__d_sending_data_to_server__1__n
push edx
mov dword [esp + 0x44], 1
call fcn.0053afda
mov eax, dword [esp + 0x50]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004cfa50
mov ecx, dword [esi + 0x7c]
mov eax, dword [0x5c8094]
mov edx, dword [ecx]
lea ecx, [esp + 0x44]
push edx
push eax
push ecx
call fcn.0053afda
mov edx, dword [esp + 0x50]
mov ecx, dword [esi + 0x6c]
add esp, 0xc
push edx
call fcn.004d1ef0
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x7c]
push ecx
call dword [eax + 0x38c]
mov edx, dword [esi + 0x7c]
push ebp
call dword [edx + 0x370]
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call fcn.005421be
mov eax, edi
jmp 0x510780
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [esi + 0x3054], eax
jne 0x51075d
push str.Out_of_memory__1__n
mov ecx, esi
call fcn.004cfa50
mov eax, 0x753b
jmp 0x510780
mov dword [esi + 0x3058], ebx
mov dword [esi + 0x305c], 1
mov dword [esi + 0x3050], 0x90312
mov dword [esi + 0x5c], 0xf
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x18