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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c7e60
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 0x5467c1
mov ebp, dword [edx + 0x18]
mov bl, 2
cmp ebp, dword [esi + 0x18]
jne 0x5467ae
cmp al, 1
jne 0x5467ae
mov byte [esi + 4], bl
mov edx, dword [edx + 0xc]
mov eax, dword [esi + 0xc]
cmp edx, eax
jne 0x5467c1
cmp byte [esi + 4], bl
jne 0x5467c1
mov byte [esi + 4], 3
mov al, byte [esi + 4]
cmp al, 3
jbe 0x546817
mov ecx, dword [0x67da2c]
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.00599a28
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov ecx, edi
push eax
call fcn.0050e040
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005a0c5d
or eax, 0xffffffff
jmp 0x546a05
mov edx, eax
and edx, 0xff
shl al, 6
mov ebp, dword [edx*4 + 0x5f663c]
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 0x546858
mov eax, dword [esi + 8]
lea ecx, [esp + 0x15]
push eax
push ecx
call fcn.00546550
add esp, 8
cmp ebp, 4
jle 0x546875
mov edx, dword [esi + 0x18]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00546550
mov cl, byte [esi + 5]
add esp, 8
mov byte [esp + 0x1b], cl
cmp ebp, 8
jle 0x54688b
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00506f20
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.0050e0e0
test eax, eax
jne 0x546a05
mov ebx, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x546953
mov al, byte [esi + 5]
mov ebp, 0x80
cmp al, 0x14
je 0x5468d5
mov ebp, dword [esi + 0x18]
cmp ebx, 0x80
jge 0x5468df
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.0050e0e0
test eax, eax
jne 0x546a05
mov ecx, dword [esp + 0x10]
sub ebx, ebp
add ecx, ebp
test ebx, ebx
mov dword [esp + 0x10], ecx
jle 0x54694d
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.0050e0e0
test eax, eax
jne 0x546a05
test ebx, ebx
jne 0x5468c6
cmp byte [esi + 5], 0x14
jne 0x546992
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x10]
inc eax
push eax
push ecx
call fcn.005463f0
add esp, 8
mov eax, dword [eax]
lea ecx, [edi + 0x4640]
push eax
mov dword [esp + 0x2c], 1
call fcn.00530910
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.005a0c5d
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.0050e040
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