Function at 0x53ff70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
mov ecx, dword [esi + 0x30e4]
mov eax, dword [esi + 0x30ec]
cmp ecx, eax
jae 0x540109
mov dl, byte [esi + 0x3158]
xor ebx, ebx
cmp dl, bl
je 0x5400d1
mov edx, dword [esi + 0x3154]
cmp edx, ebx
je 0x5400d1
sub eax, ecx
mov ecx, dword [esi + 0x3108]
push ebx
push eax
mov eax, dword [esi + 0x30f0]
add eax, edx
push eax
push ecx
call sub.WSOCK32.dll_recv
cmp eax, ebx
jg 0x5400eb
cmp eax, 0xffffffff
jne 0x540076
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
cmp edi, 0x2733
je 0x5407bb
mov edx, dword [0x6835f0]
push 1
push edx
mov ecx, esi
call fcn.0050df70
mov eax, dword [0x67da2c]
mov dword [ebp - 0x1c], eax
push edi
lea ecx, [ebp - 0x1c]
push str.Recv_header_failed__error___ld_n
push ecx
mov dword [ebp - 4], ebx
call fcn.00599a28
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0050e040
mov esi, dword [esi + 0x310c]
cmp esi, ebx
je 0x540056
cmp edi, ebx
jne 0x540050
mov edi, 0xfffffffd
mov dword [esi + 0xf8], edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.005a0c5d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x30ec]
mov edx, dword [esi + 0x30e4]
sub ecx, edx
je 0x5400e3
cmp eax, ebx
jne 0x5400e5
mov edx, dword [0x6835ec]
push 1
push edx
mov ecx, esi
call fcn.0050df70
mov eax, dword [0x683658]
mov ecx, dword [esi + 0x6c]
push eax
call fcn.005113f0
mov esi, dword [esi + 0x310c]
cmp esi, ebx
je 0x5407bb
mov dword [esi + 0xf8], 0xfffffffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub eax, ecx
mov ecx, dword [esi + 0x3108]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.0050f1e0
cmp eax, ebx
jle 0x5407bb
mov edx, dword [esi + 0x30e4]
mov ecx, dword [esi + 0x30f0]
add edx, eax
add ecx, eax
mov dword [esi + 0x30e4], edx
mov dword [esi + 0x30f0], ecx
jmp 0x54010b
xor ebx, ebx
mov edx, dword [esi + 0x30f0]
mov eax, dword [esi + 0x30d0]
cmp edx, eax
jb 0x540791
mov eax, dword [esi + 0x310c]
cmp eax, ebx
je 0x54030a
mov byte [eax + 0x1d8], 1
mov eax, dword [esi + 0x310c]
cmp dword [eax + 0xac], ebx
je 0x54030a
cmp dword [esi + 0x3154], ebx
je 0x54030a
lea ecx, [ebp - 0x11]
push ecx
mov ecx, esi
call fcn.00541900
test eax, eax
jne 0x5407bb
cmp byte [ebp - 0x11], bl
je 0x54030a
mov edx, dword [esi + 0x310c]
cmp dword [edx + 0xf4], ebx
jne 0x5401ce
mov eax, dword [esi + 0x80]
mov ecx, dword [eax + 8]
cmp ecx, ebx
je 0x54018d
mov eax, ecx
jmp 0x54018f
mov eax, dword [eax]
push 0x50041
push eax
push str.The_file_has_been_changed_on_the_server._nIt_will_be_downloaded_from_the_beginning.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x5401ce
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ecx, dword [esi + 0x310c]
mov dword [ecx + 0xf8], 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x10]
call fcn.00511550
mov eax, dword [esi + 0x310c]
mov edx, dword [eax + 0x68]
lea ecx, [eax + 0x48]
cmp edx, ebx
setne byte [ebp - 0x11]
call fcn.005070b0
mov edx, dword [esi + 0x310c]
mov dword [edx + 0x80], ebx
mov dword [edx + 0x84], ebx
mov eax, dword [esi + 0x310c]
mov dword [eax + 0x88], ebx
mov dword [eax + 0x8c], ebx
mov ecx, dword [esi + 0x310c]
mov dword [ecx + 0x158], ebx
mov dword [ecx + 0x15c], ebx
lea ecx, [esi + 0x30fc]
call fcn.00544fd0
mov edx, dword [esi + 0x310c]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x2c], ebx
mov byte [edx + 0x1d8], bl
mov eax, dword [esi + 0x3154]
cmp eax, ebx
je 0x540289
push eax
mov dword [ebp - 4], 1
call fcn.0059d022
add esp, 4
jmp 0x540282
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x3154], ebx
mov byte [esi + 0x3158], bl
mov byte [esi + 0x319c], bl
mov word [esi + 0x3118], bx
mov dword [esi + 0x30f8], ebx
call dword [eax + 0x18]
mov edx, dword [esi]
lea eax, [esi + 0x3108]
push eax
mov ecx, esi
call dword [edx + 0x10]
cmp byte [ebp - 0x11], bl
je 0x5402f2
mov ecx, dword [esi + 0x80]
mov edx, dword [ecx + 0x30]
mov ecx, dword [esi + 0x310c]
push edx
push esi
add ecx, 0x48
call fcn.005071f0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov edx, eax
or edx, ecx
je 0x5402f2
sub eax, 1
sbb ecx, ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov ecx, esi
call fcn.0050ff10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x30c8], ebx
je 0x54031e
cmp dword [esi + 0x30e0], ebx
jne 0x540492
mov ecx, esi
call fcn.0053f1c0
mov eax, dword [esi + 0x80]
cmp dword [eax + 0x40], ebx
jne 0x540492
cmp dword [esi + 0x310c], ebx
je 0x540492
mov dword [ebp - 0x24], 0x5d5760
fld qword [esi + 0x30d8]
mov dword [ebp - 4], 3
call fcn.00584d08
mov edi, edx
mov dword [ebp - 0x2c], eax
cmp edi, ebx
jg 0x540374
jl 0x540368
cmp eax, ebx
jae 0x540374
mov ecx, dword [0x6830b0]
push ecx
jmp 0x54040b
mov eax, dword [ebp - 0x2c]
push ebx
push 0x3c
push edi
push eax
call fcn.005866e0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
cdq
sub ecx, eax
mov eax, edi
sbb eax, edx
push ebx
push 0x3c
push eax
push ecx
call fcn.00586630
push ebx
push 0x3c
push edx
push eax
call fcn.005866e0
mov ecx, dword [ebp - 0x2c]
push ebx
push 0xe10
push edi
push ecx
mov dword [ebp - 0x20], eax
call fcn.00586630
cmp edx, ebx
jg 0x540406
jl 0x5403c2
cmp eax, 0x2710
ja 0x540406
cmp eax, ebx
je 0x5403d2
mov edx, dword [ebp - 0x20]
push edx
push eax
mov eax, dword [0x683108]
jmp 0x5403e3
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp eax, ebx
push edx
je 0x5403f2
push eax
mov eax, dword [0x683104]
lea ecx, [ebp - 0x4c]
push eax
push ecx
call fcn.005851fa
add esp, 0x10
jmp 0x540417
mov eax, dword [0x683100]
lea ecx, [ebp - 0x4c]
push eax
push ecx
call fcn.005851fa
add esp, 0xc
jmp 0x540417
push 0x656e4c
lea edx, [ebp - 0x4c]
push edx
call fcn.005851fa
add esp, 8
mov eax, dword [0x67da2c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x310c]
mov byte [ebp - 4], 4
mov ecx, dword [eax + 0x7f8]
mov edx, dword [ecx - 8]
mov ecx, 0x6746e8
cmp edx, ebx
jne 0x540440
mov ecx, 0x681f78
lea edx, [ebp - 0x4c]
push edx
mov edx, dword [eax + 0x7f8]
push edx
mov edx, dword [eax + 0x7f0]
push ecx
mov ecx, dword [eax + 0x7f4]
push ecx
push edx
lea eax, [ebp - 0x20]
push str._s___s_s_s__Length:__s
push eax
call fcn.00599a28
mov ecx, dword [ebp - 0x20]
add esp, 0x1c
push 1
push ecx
mov ecx, dword [esi + 0x310c]
push ebx
push 5
call fcn.0054e8e0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.005a0c5d
mov dword [ebp - 4], 0xffffffff
cmp byte [esi + 0x30f5], bl
je 0x5404a6
mov dword [esi + 0x18], ebx
mov dword [esi + 0x30c8], ebx
mov dword [esi + 0x1c], ebx
mov edx, dword [esi + 0x30c8]
cmp edx, ebx
je 0x540548
mov eax, dword [esi + 0x30c4]
cmp eax, ebx
je 0x540548
mov ecx, dword [esi + 0x30e0]
imul eax, edx
mov edi, ecx
shl edi, 5
sub edi, ecx
mov ecx, dword [esi + 0x30d0]
lea eax, [eax + edi*2]
add eax, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x34]
cmp eax, ebx
mov dword [esi + 0x1c], ebx
jg 0x540502
jl 0x5404f1
cmp dword [esi + 0x30], ebx
ja 0x540502
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
sub ecx, 1
sbb eax, ebx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
mov ecx, dword [esi + 0x310c]
dec edx
cmp ecx, ebx
mov dword [esi + 0x4c], edx
je 0x540548
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push 1
push edx
push eax
call fcn.0054e140
mov ecx, dword [esi + 0x310c]
mov edi, dword [ecx + 0x148]
call fcn.0054d560
mov ecx, dword [esi + 0x310c]
mov dword [ecx + 0x140], eax
mov edx, dword [esi + 0x310c]
mov dword [edx + 0x148], edi
mov eax, dword [0x67da2c]
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x30e0]
push ecx
fld qword [esi + 0x30d8]
push edx
mov dword [ebp - 4], 5
push eax
call fcn.00584d08
mov ecx, dword [esi + 0x30c4]
push edx
mov edx, dword [esi + 0x30c8]
push eax
push ecx
push edx
lea eax, [ebp - 0x18]
push str.Media_header_has_been_parsed:_nPackets_number__ld__packet_length__ld__media_length__I64d__streams_count__d__file_size__I64d_n
push eax
call fcn.00599a28
mov ecx, dword [ebp - 0x18]
add esp, 0x24
push ecx
mov ecx, esi
call fcn.0050e040
mov edx, dword [esi + 0x30c4]
mov ecx, dword [esi + 0x60]
push edx
call fcn.0050d9d0
cmp dword [esi + 0x310c], ebx
je 0x54067a
mov eax, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
cmp eax, ebx
jl 0x540633
jg 0x5405c8
cmp edi, ebx
jbe 0x540633
mov edx, dword [esi + 0x64]
mov ecx, dword [edx]
cmp ecx, edi
mov edx, dword [edx + 4]
mov dword [ebp - 0x28], edx
jne 0x5405db
cmp edx, eax
je 0x540600
mov eax, dword [esi + 0x310c]
xor edx, edx
mov eax, dword [eax + 0x7fc]
imul eax, dword [esi + 0x30c4]
add eax, ecx
mov ecx, dword [ebp - 0x28]
adc edx, ecx
cmp eax, edi
jne 0x540633
cmp edx, dword [esi + 0x1c]
jne 0x540633
mov ecx, esi
call fcn.00540a60
mov eax, dword [esi + 0x310c]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 0xf8], ebx
call fcn.005a0c5d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x310c]
push ebx
call fcn.00543340
test eax, eax
je 0x54067a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi + 0x310c]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 0xf8], 0x7574
call fcn.005a0c5d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
cmp eax, ebx
mov dword [esi + 0x48], ebx
jl 0x54073f
jg 0x540695
cmp ecx, ebx
jbe 0x54073f
cmp dword [esi + 0x30c4], ebx
je 0x54073f
mov edi, dword [esi + 0x30d0]
xor edx, edx
sub ecx, edi
mov edi, ecx
sbb eax, edx
xor ecx, ecx
push ecx
mov ecx, dword [esi + 0x30c4]
push ecx
push eax
push edi
mov dword [ebp - 0x28], eax
call fcn.00586630
mov dword [esi + 0x48], eax
xor eax, eax
push eax
mov eax, dword [esi + 0x30c4]
push eax
mov eax, dword [ebp - 0x28]
push eax
push edi
call fcn.005866e0
mov edi, eax
cmp edi, ebx
je 0x54070a
push edi
lea ecx, [esi + 0x10]
call fcn.00511650
mov ecx, dword [esi + 0x20]
sub ecx, edi
mov dword [esi + 0x20], ecx
mov eax, dword [esi + 0x24]
sbb eax, ebx
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x64]
mov edx, dword [eax]
sub edx, edi
mov dword [eax], edx
mov ecx, dword [eax + 4]
sbb ecx, ebx
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x30d0]
mov eax, dword [esi + 0x30]
xor edx, edx
sub eax, ecx
mov ecx, dword [esi + 0x34]
push ebx
sbb ecx, edx
mov edx, dword [esi + 0x30c4]
add eax, 1
push edx
adc ecx, ebx
push ecx
push eax
call fcn.00586630
mov ecx, dword [esi + 0x48]
dec eax
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x50]
add ecx, eax
mov dword [esi + 0x48], ecx
mov eax, dword [esi + 0x48]
cmp eax, ebx
mov dword [esi + 0x30cc], eax
je 0x540751
lea ecx, [eax - 1]
jmp 0x540753
xor ecx, ecx
mov dword [esi + 0x30e8], ecx
push eax
mov ecx, esi
call fcn.0053dfe0
cmp eax, ebx
je 0x540771
mov ecx, dword [esi + 0x310c]
mov dword [ecx + 0xf8], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.005a0c5d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x30e4]
mov eax, dword [esi + 0x30ec]
cmp edx, eax
jb 0x5407bb
mov dword [esi + 0x5c], 0x11
mov byte [esi + 0x3150], bl
mov word [esi + 0x3118], bx
mov dword [esi + 0x30e4], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret