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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x577018]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov ebx, ecx
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x40], ecx
lea eax, [ebx + 0x140]
push eax
call fcn.00402a10
lea ecx, [esp + 0x48]
call fcn.004157a0
add esp, 0x18
lea esi, [ebx + 0x21c]
lea edx, [ebx + 0x214]
nop word [eax + eax]
mov ecx, dword [ebx + 0x224]
cmp dword [esp + 0x44], 8
push 0
mov eax, dword [ecx + 4]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], eax
push ecx
push 0
push 0
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], 2
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x30]
push ecx
push 0x10
lea eax, [esp + 0x64]
mov dword [esp + 0x84], 0
push 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
push 0xc11c
push eax
push edx
push esi
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x50], 2
mov dword [esp + 0x4c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 2
mov dword [esp + 0x78], 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], 0
call dword [sym.imp.Secur32.dll_InitializeSecurityContextW]
mov edi, eax
test edi, edi
je 0x4c7141
cmp edi, 0x90312
je 0x4c7141
test edi, edi
jns 0x4c71ee
test dword [esp + 0x2c], 0x4000
je 0x4c71ee
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4c718f
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4c718f
push 0
push eax
push ecx
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
call fcn.00516ae0
push 0
push 0x2710
push edx
push eax
call fcn.0053aaa0
push dword [esp + 0x50]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
call dword [sym.imp.Secur32.dll_FreeContextBuffer]
cmp esi, dword [esp + 0x48]
jne 0x4c7204
test edi, edi
je 0x4c720e
cmp edi, 0x90312
jne 0x4c71ee
cmp dword [esp + 0x64], 5
jne 0x4c71de
mov edi, dword [esp + 0x60]
test edi, edi
je 0x4c71de
mov esi, dword [ebx + 0x224]
push edi
mov ecx, dword [esi + 4]
mov eax, ecx
sub eax, edi
add eax, dword [esi + 0xc]
push eax
push ecx
call fcn.005190f0
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0xc], edi
mov byte [edi + eax], 0
push dword [esp + 0x68]
call dword [sym.imp.Secur32.dll_FreeContextBuffer]
jmp 0x4c704a
mov eax, dword [ebx + 0x224]
mov esi, 1
jmp 0x4c728a
cmp edi, 0x80090318
jne 0x4c7200
mov esi, 1
jmp 0x4c7297
test edi, edi
jns 0x4c71f6
mov esi, 2
jmp 0x4c7297
lea esi, [ebx + 0x70]
push esi
push 4
lea eax, [ebx + 0x214]
push eax
call dword [sym.imp.Secur32.dll_QueryContextAttributesW]
mov edi, dword [ebx + 0x78]
add edi, dword [ebx + 0x74]
add edi, dword [esi]
shl edi, 3
push 4
lea eax, [edi + edi]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push 0x1002
push 0xffff
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebx + 0x224]
cmp dword [ecx + 8], edi
je 0x4c725e
push edi
call fcn.004c8c90
mov ecx, dword [ebx + 0x8c]
cmp dword [ecx + 8], edi
je 0x4c726f
push edi
call fcn.004c8c90
mov eax, dword [ebx + 0x224]
xor esi, esi
mov dword [eax + 0xc], 0
mov eax, dword [eax + 4]
mov byte [eax], 0
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], 0
mov eax, dword [eax + 4]
mov byte [eax], 0
mov ecx, dword [esp + 0x44]
cmp ecx, 8
jb 0x4c72cf
mov edx, dword [esp + 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c72c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c72e3
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
call fcn.0051eb64
int3