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

Disassembly:
push 0xffffffffffffffff
push 0x659620
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dl, byte [ebx + 6]
mov dword [esp + 0x28], eax
movzx eax, dl
add eax, 0x191
mov ebp, ecx
mov ecx, dword [esp + 0x54]
lea eax, [eax + eax*4]
lea esi, [ebp + eax*8]
mov al, byte [ebx + 4]
mov dword [esp + 0x24], ecx
test al, al
je 0x5a29a3
mov edi, dword [esi + 0x18]
mov cl, 2
cmp edi, dword [ebx + 0x18]
jne 0x5a2992
cmp al, 1
jne 0x5a2992
mov byte [ebx + 4], cl
mov eax, dword [esi + 0xc]
cmp eax, dword [ebx + 0xc]
jne 0x5a29a3
cmp byte [ebx + 4], cl
jne 0x5a29a3
mov byte [ebx + 4], 3
mov al, byte [ebx + 4]
cmp al, 3
jbe 0x5a29f7
lea ecx, [esp + 0x14]
call fcn.00402500
mov dword [esp + 0x44], 0
movzx ecx, byte [ebx + 4]
push ecx
lea edx, [esp + 0x18]
push str.SendPacket_failed__Header_type:_0x_02x
push edx
call fcn.00402f70
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
mov ecx, ebp
call fcn.00558e10
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
or eax, 0xffffffff
jmp 0x5a2cb0
movzx ecx, al
mov esi, dword [ecx*4 + 0x6a83cc]
xor ecx, ecx
shl al, 6
or al, dl
xor edi, edi
cmp esi, 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2d], ecx
mov dword [esp + 0x31], ecx
mov word [esp + 0x35], cx
mov byte [esp + 0x37], cl
mov byte [esp + 0x2c], al
jle 0x5a2a39
mov edx, dword [ebx + 8]
push edx
lea eax, [esp + 0x31]
push eax
call fcn.0059fd70
add esp, 8
cmp esi, 4
jle 0x5a2a56
mov ecx, dword [ebx + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.0059fd70
mov al, byte [ebx + 5]
add esp, 8
mov byte [esp + 0x33], al
cmp esi, 8
jle 0x5a2a6c
mov ecx, dword [ebx + 0xc]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0054c1d0
add esp, 8
mov eax, dword [ebp + 0xc0]
cmp dword [eax + 0x24], 5
mov dword [esp + 0x14], edi
jne 0x5a2aed
movzx ecx, byte [esp + 0x58]
mov edx, dword [ebx + 0x18]
neg ecx
sbb ecx, ecx
and ecx, 0x600
add ecx, esi
lea eax, [ecx + edx*2]
push eax
call fcn.005e9aa7
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x5a2aae
mov eax, 0x753b
jmp 0x5a2cb0
cmp byte [esp + 0x58], 0
je 0x5a2ad7
mov edx, dword [ebp + 0x3210]
test edx, edx
je 0x5a2ad7
mov edi, eax
mov eax, dword [esp + 0x14]
mov ecx, 0x180
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
mov edi, 0x600
push esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [edi + eax]
push edx
call fcn.00617370
add esp, 0xc
add edi, esi
jmp 0x5a2b16
mov ecx, dword [ebp + 0x31e8]
push str.send_rtmp_header
push 0
push esi
lea eax, [esp + 0x38]
push eax
push ecx
call sub.WS2_32.dll_send
push eax
mov ecx, ebp
call fcn.00559750
test eax, eax
jne 0x5a2cb0
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x5a2bfd
jmp 0x5a2b38
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp byte [ebx + 5], 0x14
mov esi, 0x80
je 0x5a2b46
mov esi, dword [ebx + 0x18]
cmp ecx, 0x80
jge 0x5a2b50
mov esi, ecx
mov edx, dword [ebp + 0xc0]
cmp dword [edx + 0x24], 5
jne 0x5a2b72
push esi
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [edi + eax]
push ecx
call fcn.00617370
add esp, 0xc
add edi, esi
jmp 0x5a2b97
mov edx, dword [ebp + 0x31e8]
push str.send_rtmp_packet
push 0
push esi
push eax
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, ebp
call fcn.00559750
test eax, eax
jne 0x5a2cb0
mov eax, dword [esp + 0x1c]
add dword [esp + 0x20], esi
sub eax, esi
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x5a2bf2
mov al, byte [ebx + 6]
mov ecx, dword [ebp + 0xc0]
or al, 0xc0
mov byte [esp + 0x1b], al
cmp dword [ecx + 0x24], 5
jne 0x5a2bc8
mov edx, dword [esp + 0x14]
mov byte [edi + edx], al
inc edi
jmp 0x5a2bf2
mov ecx, dword [ebp + 0x31e8]
push str.send_rtmp_packet
push 0
push 1
lea eax, [esp + 0x27]
push eax
push ecx
call sub.WS2_32.dll_send
push eax
mov ecx, ebp
call fcn.00559750
test eax, eax
jne 0x5a2cb0
cmp dword [esp + 0x1c], 0
jne 0x5a2b30
mov edx, dword [ebp + 0xc0]
cmp dword [edx + 0x24], 5
jne 0x5a2c21
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5a2cd1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [edx], edi
cmp byte [ebx + 5], 0x14
jne 0x5a2c60
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.005a2850
add esp, 8
mov dword [esp + 0x44], 1
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x49a8]
call fcn.0058f4f0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00402570
movzx eax, byte [ebx + 6]
add eax, 0x191
lea edx, [eax + eax*4]
push ebx
lea ecx, [ebp + edx*8]
call fcn.0059fe80
movzx eax, byte [ebx + 6]
lea eax, [eax + eax*4]
push str.Send_packet:_OK_n
mov ecx, ebp
mov dword [ebp + eax*8 + 0x3ec8], 0
call fcn.00558e10
mov ecx, dword [ebp + 0xc0]
cmp dword [ecx + 0x24], 5
jne 0x5a2cae
cmp dword [esp + 0x28], 0
jne 0x5a2cae
mov ecx, ebp
call fcn.005a1a20
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.006157d3
add esp, 0x34
ret 0x10
push edi
mov edi, dword [esp + 0x18]
push edi
push str.send
mov ecx, ebp
call fcn.005a1100
push edi
mov esi, eax
call fcn.005e9ab2
add esp, 4
test esi, esi
je 0x5a2c21
mov eax, esi
jmp 0x5a2cb0