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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c1700
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 + 0x3b40]
mov al, byte [esi + 4]
test al, al
je 0x5413b1
mov ebp, dword [edx + 0x18]
mov bl, 2
cmp ebp, dword [esi + 0x18]
jne 0x54139e
cmp al, 1
jne 0x54139e
mov byte [esi + 4], bl
mov edx, dword [edx + 0xc]
mov eax, dword [esi + 0xc]
cmp edx, eax
jne 0x5413b1
cmp byte [esi + 4], bl
jne 0x5413b1
mov byte [esi + 4], 3
mov al, byte [esi + 4]
cmp al, 3
jbe 0x541407
mov ecx, dword [0x6754cc]
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.00593b08
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00508d80
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0059ad3d
or eax, 0xffffffff
jmp 0x5415f5
mov edx, eax
and edx, 0xff
shl al, 6
mov ebp, dword [edx*4 + 0x5eee4c]
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 0x541448
mov eax, dword [esi + 8]
lea ecx, [esp + 0x15]
push eax
push ecx
call fcn.00541140
add esp, 8
cmp ebp, 4
jle 0x541465
mov edx, dword [esi + 0x18]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00541140
mov cl, byte [esi + 5]
add esp, 8
mov byte [esp + 0x1b], cl
cmp ebp, 8
jle 0x54147b
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00501ec0
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.00508e20
test eax, eax
jne 0x5415f5
mov ebx, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x541543
mov al, byte [esi + 5]
mov ebp, 0x80
cmp al, 0x14
je 0x5414c5
mov ebp, dword [esi + 0x18]
cmp ebx, 0x80
jge 0x5414cf
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.00508e20
test eax, eax
jne 0x5415f5
mov ecx, dword [esp + 0x10]
sub ebx, ebp
add ecx, ebp
test ebx, ebx
mov dword [esp + 0x10], ecx
jle 0x54153d
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.00508e20
test eax, eax
jne 0x5415f5
test ebx, ebx
jne 0x5414b6
cmp byte [esi + 5], 0x14
jne 0x541582
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x10]
inc eax
push eax
push ecx
call fcn.00540fe0
add esp, 8
mov eax, dword [eax]
lea ecx, [edi + 0x4640]
push eax
mov dword [esp + 0x2c], 1
call fcn.0052b670
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0059ad3d
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 + 0x3b40]
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
add eax, 0x17c
lea edx, [eax + eax*4]
mov dword [edi + edx*8], 0
call fcn.00508d80
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