Function at 0x411990
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8861
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x535820]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [0x5366cc]
mov ecx, 0x5366cc
mov dword [ebp - 0x880], edi
mov dword [ebp - 0x87c], esi
mov dword [ebp - 0x888], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x878], eax
mov eax, 0x52e3fc
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x411a74
movzx esi, ax
mov ecx, esi
call fcn.004100f0
test eax, eax
je 0x411a20
push esi
push eax
lea ecx, [ebp - 0x878]
call fcn.004130a0
mov esi, dword [ebp - 0x87c]
lea edx, [ebx + 0x10]
mov dword [ebp - 4], 1
mov eax, dword [edx]
cmp dword [eax - 0xc], 0
jne 0x411a88
push 0x52e3fc
mov ecx, edi
call fcn.00412830
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x878]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411c91
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x411c91
push 0
push 0x52e3fc
lea ecx, [ebp - 0x878]
call fcn.00412f30
jmp 0x411a26
push ecx
lea ecx, [ebp - 0x884]
call fcn.00412b10
add esp, 4
push eax
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 2
call fcn.004128f0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x884]
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x411acb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x411ad3
xor ecx, ecx
jmp 0x411ae1
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411ad8
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x878]
call fcn.00412bd0
push 1
push 0x52f0d4
lea ecx, [ebp - 0x878]
call fcn.00412bd0
push 0xa
lea ecx, [ebp - 0x878]
call fcn.004129a0
push 0x5c
lea ecx, [ebp - 0x878]
call fcn.004129a0
push 0x20
lea ecx, [ebp - 0x878]
call fcn.004129a0
movq xmm0, qword [str.HTTP_1.1_200_OK_r_n]
mov ax, word [0x52f0e8]
mov ecx, 9
mov esi, str.Server:SGASolution_WebSocket_Server__r_n
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push 0x7ff
mov word [ebp - 0x14], ax
movsw word es:[edi], word [esi]
movq qword [ebp - 0x24], xmm0
movq xmm0, qword [0x52f0e0]
lea eax, [ebp - 0x873]
push 0
push eax
movq qword [ebp - 0x1c], xmm0
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x874], 0
call fcn.00423960
mov esi, dword [ebp - 0x878]
lea eax, [ebp - 0x874]
push dword [esi - 0xc]
push str.Content_length:_d_r_n
push eax
call fcn.00413270
movq xmm0, qword [str.Content_type:application_javascript_r_n_r_n]
movq qword [ebp - 0x4c], xmm0
movq xmm0, qword [0x52f130]
movq qword [ebp - 0x44], xmm0
movq xmm0, qword [0x52f138]
movq qword [ebp - 0x3c], xmm0
movq xmm0, qword [0x52f140]
movq qword [ebp - 0x34], xmm0
movq xmm0, qword [0x52f148]
lea ecx, [ebp - 0x24]
add esp, 0x18
movq qword [ebp - 0x2c], xmm0
lea edx, [ecx + 1]
jmp 0x411be0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411be0
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
sub ecx, edx
push ecx
lea eax, [ebp - 0x24]
push eax
push dword [ebx]
call edi
lea ecx, [ebp - 0x74]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411c00
push 0
sub ecx, edx
push ecx
lea eax, [ebp - 0x74]
push eax
push dword [ebx]
call edi
lea ecx, [ebp - 0x874]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411c20
push 0
sub ecx, edx
push ecx
lea eax, [ebp - 0x874]
push eax
push dword [ebx]
call edi
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411c40
push 0
sub ecx, edx
push ecx
lea eax, [ebp - 0x4c]
push eax
push dword [ebx]
call edi
push 0
push dword [esi - 0xc]
push esi
push dword [ebx]
call edi
add esi, 0xfffffff0
mov ecx, esi
call fcn.00413040
mov edi, dword [ebp - 0x880]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411c91
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 8