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

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [0x529a64]
mov eax, ecx
sub esp, 0x100
shl eax, 5
sub eax, ecx
push ebx
shl eax, 4
add eax, ecx
push ebp
xor ebx, ebx
push esi
lea ebp, [eax + eax*8]
shl ebp, 3
mov eax, dword [edx + ebp + 0x7b68]
test eax, eax
jne 0x404bee
mov eax, dword [edx + ebp + 0x6b64]
mov ecx, dword [0x52a3e8]
cmp eax, ecx
je 0x404bd0
mov ecx, dword [edx + ebp + 0xb38]
mov eax, dword [0x423794]
cmp ecx, eax
jbe 0x404bd0
mov al, byte [0x423790]
push edi
mov byte [esp + 0x10], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [edx + ebp + 0x7b88]
mov ecx, 0x400
push 0x52a940
mov edx, dword [eax]
inc edx
mov dword [eax], edx
mov edx, dword [0x529a64]
xor eax, eax
lea edi, [edx + ebp + 0x6b68]
rep stosd dword es:[edi], eax
mov eax, dword [0x529a64]
mov byte [eax + ebp + 0x6b68], 0x31
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x529a64]
push 0x52a960
push str.StreamTitle_s_
lea edx, [ecx + ebp + 0x6b69]
push edx
call fcn.00411644
mov al, byte [0x42440c]
add esp, 0xc
test al, al
je 0x404b06
push 0x41a448
push 0x42440c
call fcn.004116d0
add esp, 8
test eax, eax
je 0x404afb
push 0x52a2e0
lea eax, [esp + 0x14]
push 0x42440c
push eax
call fcn.00411644
add esp, 0xc
jmp 0x404b2c
lea edx, [esp + 0x10]
mov edi, 0x42440c
jmp 0x404b0f
lea edx, [esp + 0x10]
mov edi, 0x52a2e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x529a64]
lea ecx, [esp + 0x10]
push ecx
or ecx, 0xffffffff
lea edi, [edx + ebp + 0x6b68]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str.StreamUrl_s_
add ecx, ebp
lea edx, [ecx + edx + 0x6b68]
push edx
call fcn.00411644
mov eax, dword [0x529a64]
or ecx, 0xffffffff
add esp, 0xc
lea esi, [eax + ebp + 0x6b68]
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 1
jne 0x404b7f
xor ecx, ecx
add ecx, 0xf
push 0x52a940
and ecx, 0xfffffff0
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov byte [esi], al
mov edx, dword [0x529a64]
inc ecx
mov dword [edx + ebp + 0x7b68], ecx
mov eax, dword [0x529a64]
mov dword [eax + ebp + 0x7b6c], 0
mov ecx, dword [0x529a64]
mov edx, dword [0x52a3e8]
mov dword [ecx + ebp + 0x6b64], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x404be8
mov byte [edx + ebp + 0x6b68], 0
mov eax, dword [0x529a64]
mov dword [eax + ebp + 0x7b68], 1
mov edx, dword [0x529a64]
mov ecx, dword [edx + ebp + 0x7b6c]
mov eax, dword [edx + ebp + 0x7b68]
cmp ecx, eax
jge 0x404c85
sub eax, ecx
add ecx, ebp
push 0
push eax
lea ecx, [ecx + edx + 0x6b68]
mov edx, dword [edx + ebp + 0xc]
push ecx
push edx
call sub.WSOCK32.dll_send
mov ebx, eax
test ebx, ebx
jge 0x404c5c
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
call fcn.0040dea0
cmp esi, 0x2733
jne 0x404c43
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret
mov eax, dword [0x529a64]
pop esi
mov dword [eax + ebp], 0x13
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x100
ret
jle 0x404c7f
mov eax, dword [0x529a64]
mov edx, dword [eax + ebp + 0x7b78]
add edx, ebx
mov dword [eax + ebp + 0x7b78], edx
mov eax, dword [0x529a64]
add dword [eax + ebp + 0x7b6c], ebx
mov edx, dword [0x529a64]
mov ecx, dword [edx + ebp + 0x7b6c]
mov esi, dword [edx + ebp + 0x7b68]
lea eax, [edx + ebp + 0x7b6c]
cmp ecx, esi
jne 0x404cbb
xor ebx, ebx
mov dword [eax], ebx
mov edx, dword [0x529a64]
mov dword [edx + ebp + 0x7b68], ebx
mov eax, dword [0x529a64]
mov dword [eax + ebp + 0x6b60], ebx
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x100
ret