Function at 0x52f490
Capabilities:
Enumerate pe sections
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ac1a0
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, ecx
mov cl, byte [esi + 6]
mov eax, ecx
and eax, 0xff
lea eax, [eax + eax*4]
lea edx, [edi + eax*8 + 0x3b3c]
mov al, byte [esi + 4]
test al, al
je 0x52f4f1
mov ebp, dword [edx + 0x18]
mov bl, 2
cmp ebp, dword [esi + 0x18]
jne 0x52f4de
cmp al, 1
jne 0x52f4de
mov byte [esi + 4], bl
mov edx, dword [edx + 0xc]
mov eax, dword [esi + 0xc]
cmp edx, eax
jne 0x52f4f1
cmp byte [esi + 4], bl
jne 0x52f4f1
mov byte [esi + 4], 3
mov al, byte [esi + 4]
cmp al, 3
jbe 0x52f547
mov ecx, dword [0x65ca8c]
mov dword [esp + 0x30], ecx
and eax, 0xff
lea edx, [esp + 0x30]
push eax
push str.SendPacket_failed__Header_type:_0x_02x
push edx
mov dword [esp + 0x34], 0
call fcn.0057f8fb
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov ecx, edi
push eax
call fcn.004f73c0
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00586b33
or eax, 0xffffffff
jmp 0x52f734
mov edx, eax
and edx, 0xff
shl al, 6
mov ebp, dword [edx*4 + 0x5d913c]
xor edx, edx
mov dword [esp + 0x15], edx
or al, cl
mov dword [esp + 0x19], edx
cmp ebp, 1
mov word [esp + 0x1d], dx
mov byte [esp + 0x14], al
mov byte [esp + 0x1f], dl
jle 0x52f588
mov eax, dword [esi + 8]
lea ecx, [esp + 0x15]
push eax
push ecx
call fcn.0052f280
add esp, 8
cmp ebp, 4
jle 0x52f5a5
mov edx, dword [esi + 0x18]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0052f280
mov cl, byte [esi + 5]
add esp, 8
mov byte [esp + 0x1b], cl
cmp ebp, 8
jle 0x52f5bb
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.004f0ee0
add esp, 8
mov edx, dword [edi + 0x30c0]
push str.send_rtmp_header
push 0
lea ecx, [esp + 0x1c]
push ebp
push ecx
push edx
call sub.WSOCK32.dll_send
push eax
mov ecx, edi
call fcn.004f7460
test eax, eax
jne 0x52f734
mov ebx, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x52f683
mov al, byte [esi + 5]
mov ebp, 0x80
cmp al, 0x14
je 0x52f605
mov ebp, dword [esi + 0x18]
cmp ebx, 0x80
jge 0x52f60f
mov ebp, ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x30c0]
push str.send_rtmp_packet
push 0
push ebp
push ecx
push edx
call sub.WSOCK32.dll_send
push eax
mov ecx, edi
call fcn.004f7460
test eax, eax
jne 0x52f734
mov ecx, dword [esp + 0x10]
sub ebx, ebp
add ecx, ebp
test ebx, ebx
mov dword [esp + 0x10], ecx
jle 0x52f67d
mov al, byte [esi + 6]
mov edx, dword [edi + 0x30c0]
push str.send_rtmp_packet
push 0
lea ecx, [esp + 0x38]
push 1
or al, 0xc0
push ecx
push edx
mov byte [esp + 0x44], al
call sub.WSOCK32.dll_send
push eax
mov ecx, edi
call fcn.004f7460
test eax, eax
jne 0x52f734
test ebx, ebx
jne 0x52f5f6
cmp byte [esi + 5], 0x14
jne 0x52f6c2
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x10]
inc eax
push eax
push ecx
call fcn.0052f120
add esp, 8
mov eax, dword [eax]
lea ecx, [edi + 0x463c]
push eax
mov dword [esp + 0x2c], 1
call fcn.00519830
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00586b33
xor eax, eax
mov cl, byte [esi + 4]
mov al, byte [esi + 6]
push str.Send_packet:_OK_n
lea edx, [eax + eax*4]
lea eax, [edi + edx*8 + 0x3b3c]
mov byte [eax + 4], cl
mov dl, byte [esi + 5]
mov byte [eax + 5], dl
mov cl, byte [esi + 6]
mov byte [eax + 6], cl
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
mov dl, byte [esi + 0x10]
mov byte [eax + 0x10], dl
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [esi + 0x18]
mov dword [eax + 0x18], edx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0x1c], ecx
mov edx, dword [esi + 0x20]
mov dword [eax + 0x20], edx
mov cl, byte [esi + 0x24]
mov byte [eax + 0x24], cl
xor eax, eax
mov al, byte [esi + 6]
mov ecx, edi
lea edx, [eax + eax*4]
mov dword [edi + edx*8 + 0x3b5c], 0
call fcn.004f73c0
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4