Function at 0x581cd0
Capabilities:
Enumerate pe sections
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60b120
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
xor cl, cl
mov al, byte [esi + 5]
mov dword [ebp - 0x10], esp
cmp al, 0x16
mov dword [ebp - 0x2c], ebx
jne 0x581d04
mov cl, 1
mov byte [ebx + 0x31f0], 1
mov eax, dword [esi + 0x18]
xor edi, edi
cmp eax, edi
jne 0x581dde
test cl, cl
je 0x581de6
xor eax, eax
mov cl, byte [esi + 4]
mov al, byte [esi + 6]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8 + 0x348c]
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]
xor edx, edx
mov byte [eax + 0x24], cl
mov dl, byte [esi + 6]
mov eax, dword [esi + 0x14]
mov dword [ebx + edx*4 + 0x488c], eax
xor eax, eax
mov al, byte [esi + 6]
lea ecx, [eax + eax*4]
xor eax, eax
mov dword [ebx + ecx*8 + 0x34ac], edi
mov al, byte [esi + 6]
add eax, 0x151
mov ecx, ebx
lea edx, [eax + eax*4]
xor eax, eax
mov dword [ebx + edx*8], edi
mov al, byte [esi + 6]
lea eax, [eax + eax*4]
mov byte [ebx + eax*8 + 0x349c], 0
mov dword [ebx + 0x8c], 0x15
mov dword [ebx + 0x3460], edi
mov dword [esi + 0x20], edi
call fcn.0057f630
test eax, eax
jne 0x582ee1
push esi
mov ecx, ebx
call fcn.00581920
jmp 0x582ee1
test cl, cl
jne 0x58267f
cmp eax, edi
mov byte [ebp - 0x12], 0
jbe 0x581ff9
cmp dword [esi + 0x20], edi
jne 0x581ff9
mov byte [ebx + 0x31e8], 0
mov ecx, dword [ebx + 0x4a14]
add ecx, 0xb
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], ecx
mov dword [ebx + 0x320c], 0xb
mov byte [ebx + 0x31ec], 0
mov byte [ebx + 0x31ee], 0
mov al, byte [esi + 5]
mov edi, dword [ebx + 0x31d4]
cmp al, 8
mov byte [ebp - 0x12], 1
sete dl
shl dl, 2
cmp al, 9
sete al
or dl, al
mov al, byte [edi + 0x865]
or al, dl
mov byte [edi + 0x865], al
mov eax, dword [ebx + 0x31d4]
mov cl, byte [eax + 0x865]
test cl, 4
je 0x581e74
test cl, 1
jne 0x581e74
mov ecx, 1
jmp 0x581e76
xor ecx, ecx
mov byte [eax + 0x864], cl
mov al, byte [ebx + 0x31eb]
mov ecx, dword [esi + 0x18]
test al, al
mov dword [ebp - 0x30], ecx
je 0x581f9a
mov al, byte [ebx + 0x31f2]
test al, al
je 0x581fac
mov ecx, dword [esi + 0x14]
test ecx, ecx
jbe 0x581f9a
cmp ecx, dword [ebx + 0xcc]
jne 0x581ebd
mov byte [ebx + 0x31f2], 0
jmp 0x581f9a
mov edx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x6c]
or edx, eax
jne 0x581f9a
mov al, byte [ebx + 0xcb]
test al, al
jne 0x581f9a
mov eax, dword [ebx + 0x31d4]
mov edx, dword [eax + 0xd0]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x581f9a
mov edx, dword [eax + 0x1c]
mov dword [ebp - 4], 0
cmp ecx, edx
ja 0x581f15
cmp eax, dword [ebx + 0x90]
jne 0x581f90
cmp ecx, 0x2910
jbe 0x581f90
mov esi, dword [ebp + 8]
mov eax, dword [0x6ca27c]
mov dword [ebp - 0x28], eax
push ecx
lea ecx, [ebp - 0x28]
push str._ReadMediaPacket_s1b2__change_RTS__ts_ld_n
push ecx
mov byte [ebp - 4], 1
call fcn.005d9fbb
mov edx, dword [ebp - 0x28]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.00534940
mov eax, dword [ebx + 0x31d4]
mov ecx, dword [eax + 0xd0]
mov eax, dword [ebx + 0x90]
mov edx, dword [ecx + 0x38]
cmp edx, eax
jne 0x581f63
push str.s1b3__n
mov ecx, ebx
call fcn.00534940
mov esi, dword [esi + 0x14]
lea ecx, [ebp - 0x28]
mov dword [ebx + 0xcc], esi
mov dword [ebx + 0x49d4], esi
mov byte [ebx + 0x31f2], 0
mov byte [ebp - 4], 0
call fcn.005e118c
jmp 0x581f90
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebx + 0x31f2]
test al, al
je 0x581fac
mov eax, dword [ebx + 0xcc]
jmp 0x581fae
xor eax, eax
mov ecx, dword [esi + 0x14]
mov edi, dword [ebx + 0x4a14]
add ecx, eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0xd0], ecx
mov dl, byte [esi + 5]
mov byte [edi], dl
inc edi
push eax
push edi
call fcn.0052b000
mov ecx, dword [ebx + 0xd0]
add edi, eax
push ecx
push edi
call fcn.0052b000
mov edx, dword [ebx + 0xd0]
add edi, eax
shr edx, 0x18
mov byte [edi], dl
inc edi
push 0
push edi
call fcn.0052b000
add esp, 0x18
jmp 0x582017
mov al, byte [ebx + 0x31e8]
test al, al
je 0x582011
mov eax, dword [esi + 0x1c]
add eax, 0xb
mov dword [ebx + 0x320c], eax
jmp 0x582017
mov dword [ebx + 0x320c], edi
mov edi, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov edx, dword [ebx + 0x3214]
mov ecx, edi
sub ecx, eax
mov eax, dword [ebx + 0x345c]
test edx, edx
mov dword [ebp - 0x28], eax
jle 0x582039
mov eax, edx
mov dword [ebp - 0x28], eax
cmp ecx, eax
jge 0x582042
mov eax, ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebx + 0x4a1c]
mov edx, dword [ebx + 0x320c]
mov dword [ebp - 0x30], ecx
sub ecx, edx
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jle 0x5820f6
cmp byte [esi + 5], 0x12
jne 0x5820f4
cmp edi, 0x400000
jae 0x5820f6
mov eax, dword [ebx + 0x4a18]
add edi, 0xf
test eax, eax
mov dword [ebx + 0x4a1c], edi
je 0x582090
push eax
call fcn.005dd5b6
add esp, 4
mov ecx, dword [ebx + 0x4a1c]
push ecx
call fcn.005dd58d
add esp, 4
mov dword [ebx + 0x4a18], eax
test eax, eax
jne 0x5820bf
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebx + 0x4a14]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x4a18]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x4a14], eax
add eax, 0xb
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x28]
mov esi, ecx
jmp 0x5820f6
mov eax, ecx
cmp byte [esi + 5], 0x12
jne 0x582103
mov byte [ebx + 0x31e8], 1
cmp dword [esi + 0x18], 5
ja 0x582110
mov byte [ebx + 0x31e8], 1
xor edi, edi
test eax, eax
mov dword [ebp - 0x20], edi
je 0x582192
mov edx, dword [ebx + 0xb0]
cmp dword [edx + 0x24], 5
jne 0x58213e
mov edx, dword [ebx + 0x320c]
push eax
mov eax, dword [ebx + 0x4a14]
mov ecx, ebx
add eax, edx
push eax
call fcn.0057fed0
jmp 0x58215c
mov ecx, dword [ebx + 0x4a14]
mov edi, dword [ebx + 0x320c]
mov edx, dword [ebx + 0x31d0]
push 0
add ecx, edi
push eax
push ecx
push edx
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_data
push edi
mov ecx, ebx
mov dword [ebp - 0x20], edi
call fcn.005349f0
mov ecx, eax
test ecx, ecx
je 0x582192
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x1c]
mov byte [ebp - 0x13], 0
add ecx, edi
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0x499c]
add eax, edi
mov dword [ebx + 0x499c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, eax
sub ecx, edi
mov dword [ebx + 0x3214], ecx
mov ecx, dword [ebx + 0x320c]
add ecx, edi
cmp edi, eax
mov dword [ebp - 0x24], ecx
je 0x5821d7
mov al, byte [ebx + 0x31e8]
test al, al
je 0x582222
jmp 0x582ee1
mov dword [ebx + 0x8c], 0x15
mov dword [ebx + 0x3460], 0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
cmp edx, eax
jne 0x582222
lea edx, [ecx + 4]
cmp edx, dword [ebx + 0x4a1c]
mov dword [ebp - 0x30], edx
jae 0x582222
lea edx, [eax + 0xb]
mov eax, dword [ebx + 0x4a14]
add eax, ecx
push edx
push eax
call fcn.00580b80
mov edx, dword [ebp - 0x30]
add esp, 8
mov byte [ebp - 0x13], 1
mov dword [ebp - 0x24], edx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
cmp ecx, eax
mov byte [ebp - 0x11], 1
jne 0x5822fd
mov cl, byte [esi + 5]
cmp cl, 9
jne 0x5822aa
cmp eax, 2
jne 0x582260
mov edx, dword [esi + 0x20]
mov dl, byte [edx]
and dl, 0xf0
cmp dl, 0x50
jne 0x582260
push str.Video_info_command_packet_n
mov ecx, ebx
call fcn.00534940
mov byte [ebp - 0x11], 0
jmp 0x5822aa
cmp cl, 9
jne 0x5822aa
cmp eax, 5
ja 0x5822aa
mov ecx, dword [0x6ca27c]
mov dword [ebp - 0x28], ecx
push eax
lea edx, [ebp - 0x28]
push str.Small_video_packet__size_ld_n
push edx
mov dword [ebp - 4], 3
call fcn.005d9fbb
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00534940
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0xffffffff
call fcn.005e118c
cmp byte [esi + 5], 8
jne 0x582310
mov esi, dword [esi + 0x18]
cmp esi, 1
ja 0x582310
mov ecx, dword [0x6ca27c]
mov dword [ebp - 0x2c], ecx
push esi
lea edx, [ebp - 0x2c]
push str.Small_audio_packet__size_ld_n
push edx
mov dword [ebp - 4], 4
call fcn.005d9fbb
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00534940
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0xffffffff
call fcn.005e118c
jmp 0x582555
mov al, byte [ebx + 0x31e8]
test al, al
je 0x582321
mov byte [ebp - 0x11], 0
jmp 0x582555
mov al, byte [ebp - 0x11]
test al, al
je 0x582555
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
mov al, byte [ebx + 0x31ec]
test al, al
je 0x58232f
mov byte [ebp - 0x11], 0
mov al, byte [ebx + 0x31eb]
test al, al
je 0x5823a7
mov eax, dword [esi + 0x14]
mov ecx, dword [ebx + 0xd4]
cmp eax, ecx
jb 0x58239c
mov dl, byte [ebx + 0x31f2]
test dl, dl
jne 0x58235c
mov edx, dword [ebx + 0xcc]
add edx, ecx
cmp edx, eax
ja 0x58239c
cmp eax, ecx
je 0x58237f
mov dl, byte [ebx + 0x31f2]
test dl, dl
jne 0x582376
mov edx, dword [ebx + 0xcc]
add edx, ecx
cmp edx, eax
je 0x58237f
mov byte [ebx + 0x31eb], 0
jmp 0x5823a7
mov al, byte [ebx + 0x31ef]
test al, al
je 0x58239c
mov al, byte [ebx + 0x31ed]
test al, al
jne 0x58239c
mov byte [ebx + 0x31eb], 0
jmp 0x5823a7
mov byte [ebp - 0x11], 0
mov byte [ebx + 0x31ec], 1
mov al, byte [ebp - 0x12]
test al, al
je 0x582423
test edi, edi
je 0x582423
mov eax, dword [ebx + 0xd4]
mov edi, dword [ebx + 0xcc]
mov ecx, dword [ebx + 0xd0]
add eax, edi
cmp ecx, eax
jb 0x582423
mov edx, dword [ebx + 0x31d4]
mov al, byte [edx + 0x864]
test al, al
je 0x5823e4
cmp byte [esi + 5], 8
je 0x5823fb
test al, al
jne 0x582423
cmp byte [esi + 5], 9
jne 0x582423
mov eax, dword [ebx + 0x4a14]
mov dl, byte [eax + 0xb]
and dl, 0xf0
cmp dl, 0x10
jne 0x582423
mov eax, dword [ebx + 0x68]
mov edx, dword [ebx + 0x6c]
mov dword [ebx + 0x49f0], eax
mov dword [ebx + 0x49f4], edx
mov dword [ebx + 0x49f8], ecx
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x49fc], eax
mov byte [ebx + 0x31ee], 1
mov al, byte [ebx + 0x31ed]
test al, al
je 0x582534
mov al, byte [ebx + 0x31ec]
test al, al
je 0x582534
mov al, byte [ebx + 0x31ee]
test al, al
je 0x582534
mov esi, dword [ebx + 0x4a00]
test esi, esi
je 0x582534
mov ecx, dword [ebx + 0x4a04]
mov eax, dword [ebx + 0x4a08]
mov edx, dword [ebp - 0x24]
sub ecx, eax
cmp ecx, edx
jb 0x582472
mov ecx, edx
mov edi, dword [ebx + 0x4a14]
add esi, eax
xor edx, edx
mov dword [ebp - 0x30], ecx
repe cmpsb byte [esi], byte es:[edi]
je 0x582488
sbb edx, edx
sbb edx, 0xffffffff
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], edx
add eax, ecx
mov ecx, dword [ebx + 0x4a04]
cmp eax, ecx
jb 0x5824d5
mov eax, dword [ebx + 0x4a00]
mov byte [ebx + 0x31ed], 0
push eax
mov dword [ebp - 4], 5
call fcn.005dd5b6
add esp, 4
jmp 0x5824c2
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x4a00], 0
jmp 0x5824db
mov dword [ebx + 0x4a08], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x582506
push str.Key_frame_doesnt_match__r_n
mov ecx, ebx
call fcn.00534940
mov eax, 0x757b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [ebx + 0x31ed]
test al, al
jne 0x582534
mov edx, dword [ebx + 0xb0]
mov byte [edx + 0x2fc], 1
mov ecx, dword [ebx + 0x31d4]
mov eax, dword [ecx + 0x154]
test eax, eax
jne 0x582534
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov al, byte [ebp - 0x11]
test al, al
je 0x582555
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebx + 0x4a14]
push ecx
push edx
mov ecx, ebx
call fcn.005831b0
test eax, eax
jne 0x582ee3
mov esi, dword [ebp + 8]
xor eax, eax
mov al, byte [esi + 6]
mov cl, byte [esi + 4]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8 + 0x348c]
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
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x1c], eax
jne 0x58264b
mov cl, byte [ebp - 0x13]
test cl, cl
jne 0x5825e8
mov cl, byte [ebp - 0x11]
test cl, cl
je 0x5825e8
add eax, 0xb
lea edx, [ebp + 8]
push eax
push edx
call fcn.00580b80
add esp, 8
lea eax, [ebp + 8]
mov ecx, ebx
push 4
push eax
call fcn.005831b0
test eax, eax
jne 0x582ee3
mov edx, dword [esi + 0x14]
xor ecx, ecx
mov cl, byte [esi + 6]
xor eax, eax
mov dword [ebx + ecx*4 + 0x488c], edx
mov al, byte [esi + 6]
lea eax, [eax + eax*4]
mov dword [ebx + eax*8 + 0x34ac], 0
xor eax, eax
mov al, byte [esi + 6]
add eax, 0x151
lea ecx, [eax + eax*4]
xor eax, eax
mov dword [ebx + ecx*8], 0
mov al, byte [esi + 6]
lea edx, [eax + eax*4]
mov byte [ebx + edx*8 + 0x349c], 0
mov al, byte [esi + 5]
cmp al, 0x12
jne 0x58264b
mov byte [ebx + 0x31f3], 0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
push eax
push ecx
mov ecx, ebx
call fcn.00585560
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
cmp edx, eax
mov dword [esi + 0x20], 0
je 0x582eda
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
jne 0x582671
mov ecx, esi
jmp 0x582ed5
mov ecx, dword [ebx + 0x4a14]
mov dword [esi + 0x20], ecx
jmp 0x582eda
cmp eax, edi
jbe 0x5826c5
cmp dword [esi + 0x20], edi
jne 0x5826c5
mov byte [ebx + 0x31e8], 0
mov edx, dword [ebx + 0x4a14]
mov dword [esi + 0x20], edx
mov dword [esi + 0x1c], edi
mov dword [ebx + 0x320c], edi
mov dword [ebx + 0x3210], edi
mov byte [ebx + 0x31ea], 1
mov dword [ebx + 0x49cc], edi
mov dword [ebx + 0x49c4], 1
mov byte [ebx + 0x31ee], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov edx, dword [ebx + 0x3214]
sub eax, ecx
mov ecx, dword [ebx + 0x345c]
cmp edx, edi
jle 0x5826df
mov ecx, edx
cmp eax, ecx
jge 0x5826e5
mov ecx, eax
mov eax, dword [ebx + 0x320c]
mov edx, dword [ebx + 0x4a1c]
sub edx, eax
mov dword [ebp - 0x30], ecx
cmp ecx, edx
jle 0x5826fc
mov ecx, edx
mov edx, dword [ebx + 0xb0]
cmp dword [edx + 0x24], 5
jne 0x58271b
mov edx, dword [ebx + 0x4a14]
push ecx
add eax, edx
mov ecx, ebx
push eax
call fcn.0057fed0
jmp 0x582730
push edi
push ecx
add eax, dword [ebx + 0x4a14]
push eax
mov eax, dword [ebx + 0x31d0]
push eax
call sub.WS2_32.dll_recv
push str.recv_data
push eax
mov ecx, ebx
mov dword [ebp - 0x20], eax
call fcn.005349f0
mov ecx, eax
cmp ecx, edi
je 0x582764
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x320c]
mov ecx, dword [ebp - 0x20]
add eax, ecx
mov ecx, dword [ebx + 0x4a14]
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x13], 1
jmp 0x582789
mov eax, dword [ebp - 0x18]
cmp edi, eax
jae 0x582c11
mov ecx, dword [ebx + 0x49c4]
dec ecx
je 0x5827b9
dec ecx
je 0x582967
dec ecx
je 0x5829e6
mov edi, dword [ebp - 0x18]
push str.ReadMediaPacket__error_1488_n
mov ecx, ebx
call fcn.00534940
jmp 0x582786
lea ecx, [edi + 0xb]
cmp ecx, eax
mov dword [ebp - 0x24], ecx
jbe 0x5827d1
mov edx, eax
sub edx, edi
mov edi, eax
mov dword [ebx + 0x320c], edx
jmp 0x582789
mov eax, dword [ebp - 0x1c]
mov byte [ebx + 0x31ec], 0
mov byte [ebx + 0x31ee], 0
movsx ecx, byte [eax + edi]
lea edx, [eax + edi + 1]
mov dword [ebx + 0x49c0], ecx
push edx
call fcn.005809e0
mov dword [ebx + 0x49d0], eax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edi + 4]
push ecx
call fcn.005809e0
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + 0xd0], eax
add esp, 8
movsx edx, byte [ecx + edi + 7]
shl edx, 0x18
or edx, eax
mov dword [ebx + 0xd0], edx
mov al, byte [ecx + edi]
mov edi, dword [ebx + 0x31d4]
cmp al, 8
sete cl
shl cl, 2
cmp al, 9
mov al, byte [edi + 0x865]
sete dl
or cl, dl
or al, cl
mov byte [edi + 0x865], al
mov eax, dword [ebx + 0x31d4]
mov cl, byte [eax + 0x865]
test cl, 4
je 0x582868
test cl, 1
jne 0x582868
mov ecx, 1
jmp 0x58286a
xor ecx, ecx
mov edi, dword [ebp - 0x24]
mov byte [eax + 0x864], cl
mov eax, dword [ebx + 0x49d0]
mov dword [ebx + 0x320c], 0
mov dword [ebx + 0x49cc], eax
mov al, byte [ebx + 0x31eb]
test al, al
mov dword [ebx + 0x49c4], 2
je 0x5828da
mov eax, dword [ebx + 0xd4]
mov ecx, dword [ebx + 0xcc]
add eax, ecx
mov ecx, dword [ebx + 0xd0]
cmp ecx, eax
jae 0x5828be
mov byte [ebx + 0x31ec], 1
jmp 0x5828da
jne 0x5828d3
mov al, byte [ebx + 0x31ed]
test al, al
je 0x5828d3
mov byte [ebx + 0x31ec], 1
jmp 0x5828da
mov byte [ebx + 0x31eb], 0
mov edx, dword [ebx + 0xd4]
mov ecx, dword [ebx + 0xcc]
mov eax, dword [ebx + 0xd0]
add edx, ecx
cmp eax, edx
jb 0x582967
mov eax, dword [ebx + 0x31d4]
mov al, byte [eax + 0x864]
test al, al
je 0x58290f
cmp dword [ebx + 0x49c0], 8
je 0x58292b
test al, al
jne 0x582967
cmp dword [ebp - 0x18], edi
jbe 0x582967
cmp dword [ebx + 0x49c0], 9
jne 0x582967
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx + edi]
and dl, 0xf0
cmp dl, 0x10
jne 0x582967
mov ecx, dword [ebx + 0x68]
mov edx, dword [ebx + 0x6c]
xor eax, eax
add ecx, edi
adc edx, eax
sub ecx, 0xb
sbb edx, eax
mov eax, dword [ebx + 0xd0]
mov dword [ebx + 0x49f8], eax
mov eax, dword [ebx + 0x49d0]
mov dword [ebx + 0x49f0], ecx
mov dword [ebx + 0x49f4], edx
mov dword [ebx + 0x49fc], eax
mov byte [ebx + 0x31ee], 1
mov eax, dword [ebx + 0x320c]
mov ecx, dword [ebx + 0x49cc]
add eax, ecx
mov ecx, dword [ebp - 0x18]
lea edx, [eax + edi]
cmp edx, ecx
jbe 0x5829a5
sub eax, ecx
add eax, edi
mov dword [ebx + 0x49cc], eax
mov eax, dword [ebx + 0x49c0]
cmp eax, 0x12
jne 0x58299e
mov eax, ecx
sub eax, edi
mov dword [ebx + 0x320c], eax
mov edi, ecx
jmp 0x582786
cmp dword [ebx + 0x49c0], 0x12
jne 0x5829c2
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x49d0]
add edx, edi
push ecx
push edx
mov ecx, ebx
call fcn.00585560
mov eax, dword [ebx + 0x320c]
mov edx, dword [ebx + 0x49cc]
add eax, edx
mov dword [ebx + 0x320c], 0
add edi, eax
mov dword [ebx + 0x49c4], 3
mov eax, dword [ebp - 0x18]
lea ecx, [edi + 4]
cmp ecx, eax
mov dword [ebp - 0x34], ecx
jbe 0x582a9c
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x34], ecx
lea edx, [ecx + edi]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x24], edx
add edx, 4
cmp edx, ecx
jbe 0x5827c3
cmp dword [ebp - 0x24], ecx
jbe 0x582a75
mov edx, dword [0x6ca27c]
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x49d0]
push ecx
mov ecx, dword [ebp - 0x34]
push eax
push ecx
lea edx, [ebp + 8]
push str.Stream_corrupted__packetBytesRead_ld__data_size_ld__packetBodySize_ld_n
push edx
mov dword [ebp - 4], 7
call fcn.005d9fbb
mov eax, dword [ebp + 8]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.00534940
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.005e118c
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.TagSize_not_found__n
mov ecx, ebx
call fcn.00534940
mov ecx, dword [ebx + 0x49d0]
mov edi, dword [ebp - 0x18]
add ecx, 0xb
mov byte [ebp - 0x13], 0
mov dword [ebx + 0x49c8], ecx
jmp 0x582786
mov eax, dword [ebp - 0x1c]
add edi, eax
push edi
call fcn.00580a10
mov ecx, dword [ebx + 0x49d0]
add esp, 4
add ecx, 0xb
mov dword [ebx + 0x49c8], eax
cmp eax, ecx
je 0x582acd
push ecx
push edi
mov dword [ebx + 0x49c8], ecx
call fcn.00580b80
add esp, 8
mov edi, dword [ebp - 0x34]
mov dword [ebx + 0x320c], 0
mov al, byte [ebx + 0x31ec]
mov dword [ebp - 0x24], edi
test al, al
mov dword [ebx + 0x49c4], 1
je 0x582786
mov al, byte [ebx + 0x31ed]
test al, al
je 0x582bf7
mov al, byte [ebx + 0x31ee]
test al, al
je 0x582bf7
mov esi, dword [ebx + 0x4a00]
test esi, esi
je 0x582bf7
mov eax, dword [ebx + 0x49d0]
mov edx, edi
add eax, 0xf
cmp eax, edx
jae 0x582b30
mov edx, eax
mov ecx, dword [ebx + 0x4a04]
mov eax, dword [ebx + 0x4a08]
sub ecx, eax
cmp ecx, edx
jb 0x582b44
mov ecx, edx
mov edi, dword [ebx + 0x4a14]
add esi, eax
sub edi, edx
mov edx, dword [ebp - 0x24]
add edi, edx
xor edx, edx
mov dword [ebp - 0x28], ecx
repe cmpsb byte [esi], byte es:[edi]
je 0x582b61
sbb edx, edx
sbb edx, 0xffffffff
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
add eax, ecx
mov ecx, dword [ebx + 0x4a04]
cmp eax, ecx
jb 0x582bae
mov eax, dword [ebx + 0x4a00]
mov byte [ebx + 0x31ed], 0
push eax
mov dword [ebp - 4], 8
call fcn.005dd5b6
add esp, 4
jmp 0x582b9b
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x4a00], 0
jmp 0x582bb4
mov dword [ebx + 0x4a08], eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x582bc9
push str.Key_frame_doesnt_match___c2__r_n
mov ecx, ebx
call fcn.00534940
jmp 0x582bf7
mov al, byte [ebx + 0x31ed]
test al, al
jne 0x582bf7
mov edx, dword [ebx + 0xb0]
mov byte [edx + 0x2fc], 1
mov ecx, dword [ebx + 0x31d4]
mov eax, dword [ecx + 0x154]
test eax, eax
jne 0x582bf7
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov byte [ebx + 0x31ec], 0
mov edi, ecx
jmp 0x582789
mov ecx, dword [ebx + 0x320c]
test ecx, ecx
je 0x582c20
sub eax, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [esi + 0x1c]
add edx, ecx
mov dword [esi + 0x1c], edx
mov edi, dword [ebx + 0x499c]
mov edx, dword [ebp - 0x30]
add edi, ecx
sub edx, ecx
mov cl, byte [ebx + 0x31ec]
test cl, cl
mov dword [ebx + 0x499c], edi
mov dword [ebx + 0x3214], edx
jne 0x582c8b
cmp eax, dword [ebp - 0x28]
jbe 0x582d86
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebx + 0x4a14]
sub ecx, eax
add edx, eax
push ecx
push edx
mov ecx, ebx
call fcn.005831b0
test eax, eax
je 0x582d86
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [ebx + 0x31ed]
test al, al
je 0x582d86
mov al, byte [ebx + 0x31ee]
test al, al
je 0x582d86
mov eax, dword [ebx + 0x4a00]
test eax, eax
je 0x582d86
mov ecx, dword [ebx + 0x4a04]
mov eax, dword [ebx + 0x4a08]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
sub ecx, eax
sub edx, esi
cmp ecx, edx
jb 0x582cd1
mov ecx, edx
mov edi, dword [ebx + 0x4a14]
mov edx, dword [ebx + 0x4a00]
add edi, esi
mov dword [ebp - 0x28], ecx
lea esi, [eax + edx]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x582cf0
sbb edx, edx
sbb edx, 0xffffffff
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
add eax, ecx
mov ecx, dword [ebx + 0x4a04]
cmp eax, ecx
jb 0x582d3d
mov eax, dword [ebx + 0x4a00]
mov byte [ebx + 0x31ed], 0
push eax
mov dword [ebp - 4], 0xa
call fcn.005dd5b6
add esp, 4
jmp 0x582d2a
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x4a00], 0
jmp 0x582d43
mov dword [ebx + 0x4a08], eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x582d58
push str.Key_frame_doesnt_match___c3__r_n
mov ecx, ebx
call fcn.00534940
jmp 0x582d86
mov al, byte [ebx + 0x31ed]
test al, al
jne 0x582d86
mov edx, dword [ebx + 0xb0]
mov byte [edx + 0x2fc], 1
mov ecx, dword [ebx + 0x31d4]
mov eax, dword [ecx + 0x154]
test eax, eax
jne 0x582d86
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x320c]
xor edi, edi
cmp ecx, edi
je 0x582da9
mov eax, dword [ebx + 0x4a14]
push ecx
mov ecx, dword [ebp - 0x18]
lea edx, [eax + ecx]
push edx
push eax
call fcn.005c5be0
add esp, 0xc
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
cmp eax, edx
je 0x582dc2
mov al, byte [ebx + 0x31e8]
test al, al
je 0x582de7
jmp 0x582ee1
mov eax, dword [ebx + 0x8c]
cmp eax, 7
je 0x582de7
cmp eax, 1
je 0x582de7
cmp eax, 0x1c
je 0x582de7
mov dword [ebx + 0x8c], 0x15
mov dword [ebx + 0x3460], edi
mov al, byte [ebp - 0x13]
test al, al
jne 0x582e23
mov al, byte [ebx + 0x31ec]
test al, al
jne 0x582e23
mov eax, dword [ebx + 0x49c8]
lea ecx, [ebp - 0x34]
push eax
push ecx
call fcn.00580b80
add esp, 8
lea edx, [ebp - 0x34]
mov ecx, ebx
push 4
push edx
call fcn.005831b0
cmp eax, edi
jne 0x582ee3
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
xor eax, eax
mov al, byte [ecx + 6]
lea eax, [eax + eax*4]
lea esi, [ebx + eax*8 + 0x348c]
mov al, byte [ecx + 4]
mov byte [esi + 4], al
mov al, byte [ecx + 5]
mov byte [esi + 5], al
mov al, byte [ecx + 6]
mov byte [esi + 6], al
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
mov al, byte [ecx + 0x10]
mov byte [esi + 0x10], al
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x20], eax
mov al, byte [ecx + 0x24]
mov byte [esi + 0x24], al
mov eax, dword [ecx + 0x1c]
cmp eax, dword [ecx + 0x18]
jne 0x582ebd
mov esi, dword [ecx + 0x14]
xor eax, eax
mov al, byte [ecx + 6]
mov dword [ebx + eax*4 + 0x488c], esi
xor eax, eax
mov al, byte [ecx + 6]
lea eax, [eax + eax*4]
mov dword [ebx + eax*8 + 0x34ac], edi
xor eax, eax
mov al, byte [ecx + 6]
add eax, 0x151
lea eax, [eax + eax*4]
mov dword [ebx + eax*8], edi
xor eax, eax
mov al, byte [ecx + 6]
lea eax, [eax + eax*4]
mov byte [ebx + eax*8 + 0x349c], 0
mov eax, dword [ebp - 0x20]
cmp eax, edx
jne 0x582ec7
mov dword [ecx + 0x20], edi
mov esi, dword [ecx + 0x1c]
mov edi, dword [ecx + 0x18]
cmp esi, edi
je 0x582eda
cmp eax, edx
jne 0x582eda
call fcn.005864c0
mov ecx, ebx
call fcn.005364e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4