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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ade00
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 0x530dd1
mov ebp, dword [edx + 0x18]
mov bl, 2
cmp ebp, dword [esi + 0x18]
jne 0x530dbe
cmp al, 1
jne 0x530dbe
mov byte [esi + 4], bl
mov edx, dword [edx + 0xc]
mov eax, dword [esi + 0xc]
cmp edx, eax
jne 0x530dd1
cmp byte [esi + 4], bl
jne 0x530dd1
mov byte [esi + 4], 3
mov al, byte [esi + 4]
cmp al, 3
jbe 0x530e27
mov ecx, dword [0x65ec1c]
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.0058148b
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov ecx, edi
push eax
call fcn.004f8a80
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005886c0
or eax, 0xffffffff
jmp 0x531014
mov edx, eax
and edx, 0xff
shl al, 6
mov ebp, dword [edx*4 + 0x5db144]
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 0x530e68
mov eax, dword [esi + 8]
lea ecx, [esp + 0x15]
push eax
push ecx
call fcn.00530b60
add esp, 8
cmp ebp, 4
jle 0x530e85
mov edx, dword [esi + 0x18]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00530b60
mov cl, byte [esi + 5]
add esp, 8
mov byte [esp + 0x1b], cl
cmp ebp, 8
jle 0x530e9b
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.004f2590
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.004f8b20
test eax, eax
jne 0x531014
mov ebx, dword [esi + 0x18]
mov eax, dword [esi + 0x20]
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x530f63
mov al, byte [esi + 5]
mov ebp, 0x80
cmp al, 0x14
je 0x530ee5
mov ebp, dword [esi + 0x18]
cmp ebx, 0x80
jge 0x530eef
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.004f8b20
test eax, eax
jne 0x531014
mov ecx, dword [esp + 0x10]
sub ebx, ebp
add ecx, ebp
test ebx, ebx
mov dword [esp + 0x10], ecx
jle 0x530f5d
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.004f8b20
test eax, eax
jne 0x531014
test ebx, ebx
jne 0x530ed6
cmp byte [esi + 5], 0x14
jne 0x530fa2
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x10]
inc eax
push eax
push ecx
call fcn.00530a00
add esp, 8
mov eax, dword [eax]
lea ecx, [edi + 0x463c]
push eax
mov dword [esp + 0x2c], 1
call fcn.0051b110
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.005886c0
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.004f8a80
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