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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6642b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
mov ecx, dword [esi + 0x321c]
mov eax, dword [esi + 0x3224]
xor ebx, ebx
cmp ecx, eax
jae 0x59fec4
cmp byte [esi + 0x3290], bl
je 0x59fe9e
mov edx, dword [esi + 0x328c]
cmp edx, ebx
je 0x59fe9e
push ebx
sub eax, ecx
push eax
mov eax, dword [esi + 0x3228]
add eax, edx
push eax
mov ecx, dword [esi + 0x3240]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jg 0x59feb8
cmp eax, 0xffffffff
jne 0x59fe41
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
je 0x5a04fa
push 1
mov edx, dword [0x75eacc]
push edx
mov ecx, esi
call fcn.00562ad0
lea ecx, [ebp - 0x18]
call fcn.004024f0
mov dword [ebp - 4], ebx
push edi
push str.Recv_header_failed__error___ld_n
lea eax, [ebp - 0x18]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00562270
mov esi, dword [esi + 0x3244]
cmp esi, ebx
je 0x59fe20
cmp edi, ebx
jne 0x59fe1a
mov edi, 0xfffffffd
mov dword [esi + 0x14c], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402560
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x3224]
sub edx, dword [esi + 0x321c]
je 0x59feb0
cmp eax, ebx
jne 0x59feb2
push 1
mov eax, dword [0x75ead0]
push eax
mov ecx, esi
call fcn.00562ad0
mov ecx, dword [0x75ea64]
push ecx
mov ecx, dword [esi + 0xb4]
call fcn.0056b3d0
mov esi, dword [esi + 0x3244]
cmp esi, ebx
je 0x5a04fa
mov dword [esi + 0x14c], 0xfffffffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub eax, ecx
push eax
push ebx
mov edx, dword [esi + 0x3240]
push edx
mov ecx, esi
call fcn.00565c90
cmp eax, ebx
jle 0x5a04fa
add dword [esi + 0x321c], eax
add dword [esi + 0x3228], eax
mov eax, dword [esi + 0x3228]
cmp eax, dword [esi + 0x3208]
jb 0x5a04cd
mov eax, dword [esi + 0x3244]
cmp eax, ebx
je 0x5a00e8
mov byte [eax + 0x248], 1
mov ecx, dword [esi + 0x3244]
cmp dword [ecx + 0xf4], ebx
je 0x5a00e8
cmp dword [esi + 0x328c], ebx
je 0x5a00e8
lea edx, [ebp - 0x11]
push edx
mov ecx, esi
call fcn.0059cdd0
test eax, eax
jne 0x5a04fa
cmp byte [ebp - 0x11], bl
je 0x5a00e8
mov eax, dword [esi + 0x3244]
cmp dword [eax + 0x148], ebx
jne 0x59ff88
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax + 8]
cmp ecx, ebx
je 0x59ff44
mov eax, ecx
jmp 0x59ff46
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 0x59ff88
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [esi + 0x3244]
mov dword [ecx + 0x14c], 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x10]
call fcn.0056b4c0
mov eax, dword [esi + 0x3244]
cmp dword [eax + 0xb0], ebx
setne byte [ebp - 0x11]
lea ecx, [eax + 0x28]
call fcn.0055aed0
mov eax, dword [esi + 0x3244]
mov dword [eax + 0xc8], ebx
mov dword [eax + 0xcc], ebx
mov eax, dword [esi + 0x3244]
mov dword [eax + 0xd0], ebx
mov dword [eax + 0xd4], ebx
mov eax, dword [esi + 0x3244]
mov dword [eax + 0x1c8], ebx
mov dword [eax + 0x1cc], ebx
lea ecx, [esi + 0x3234]
call fcn.005aa1e0
mov dword [esi + 0xa8], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov edx, dword [esi + 0x3244]
mov byte [edx + 0x248], bl
cmp dword [esi + 0x328c], ebx
je 0x5a0060
mov dword [ebp - 4], 1
wait
mov eax, dword [esi + 0x328c]
push eax
call fcn.005f4e52
add esp, 4
wait
mov dword [ebp - 4], 0xffffffff
jmp 0x5a0060
mov dword [esi + 0x328c], ebx
mov byte [esi + 0x3290], bl
mov byte [esi + 0x32d4], bl
xor eax, eax
mov word [esi + 0x3250], ax
mov dword [esi + 0x3230], ebx
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx + 0x20]
call eax
mov edx, dword [esi]
lea eax, [esi + 0x3240]
push eax
mov ecx, esi
mov edx, dword [edx + 0x18]
call edx
cmp byte [ebp - 0x11], bl
je 0x5a00cf
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax + 0x30]
push ecx
push esi
mov ecx, dword [esi + 0x3244]
add ecx, 0x28
call fcn.0055b060
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
mov edx, eax
or edx, ecx
je 0x5a00cf
sub eax, 1
sbb ecx, ebx
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ecx
mov ecx, esi
call fcn.005625b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x3200], ebx
je 0x5a00fc
cmp dword [esi + 0x3218], ebx
jne 0x5a01da
mov ecx, esi
call fcn.0059fbe0
mov eax, dword [esi + 0xc8]
cmp dword [eax + 0x40], ebx
jne 0x5a01da
cmp dword [esi + 0x3244], ebx
je 0x5a01da
mov edi, vtable.StringConvertor.0
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004024f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
push ecx
fld qword [esi + 0x3210]
call fcn.00622e26
push edx
push eax
lea ecx, [ebp - 0x24]
call fcn.0043fa40
lea ecx, [ebp - 0x1c]
call fcn.004024f0
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x3244]
mov edx, dword [eax + 0x868]
cmp dword [edx - 0xc], ebx
mov ecx, 0x6b3594
jne 0x5a0179
mov ecx, 0x67997c
mov edx, dword [ebp - 0x20]
push edx
mov edx, dword [eax + 0x868]
push edx
push ecx
mov ecx, dword [eax + 0x864]
push ecx
mov edx, dword [eax + 0x860]
push edx
push str._s___s_s_s__Length:__s
lea eax, [ebp - 0x1c]
push eax
call fcn.00402f60
add esp, 0x1c
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
push ebx
push 5
mov ecx, dword [esi + 0x3244]
call fcn.005b6490
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00402560
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], edi
cmp byte [esi + 0x322d], bl
je 0x5a01ee
mov dword [esi + 0x3200], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov edx, dword [esi + 0x3200]
cmp edx, ebx
je 0x5a028e
mov ecx, dword [esi + 0x31fc]
cmp ecx, ebx
je 0x5a028e
mov eax, dword [esi + 0x3218]
mov edi, eax
shl edi, 5
sub edi, eax
mov eax, edx
imul eax, ecx
lea ecx, [eax + edi*2]
add ecx, dword [esi + 0x3208]
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], ebx
cmp dword [esi + 0x7c], ebx
jg 0x5a0246
jl 0x5a0237
cmp dword [esi + 0x78], ebx
ja 0x5a0246
mov eax, ecx
sub eax, 1
mov ecx, ebx
sbb ecx, ebx
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ecx
dec edx
mov dword [esi + 0x94], edx
mov ecx, dword [esi + 0x3244]
cmp ecx, ebx
je 0x5a028e
push 1
mov edx, ebx
push edx
mov eax, dword [esi + 0x58]
push eax
call fcn.005b57e0
mov ecx, dword [esi + 0x3244]
mov edi, dword [ecx + 0x1b8]
call fcn.005b42d0
mov ecx, dword [esi + 0x3244]
mov dword [ecx + 0x1b0], eax
mov edx, dword [esi + 0x3244]
mov dword [edx + 0x1b8], edi
lea ecx, [ebp - 0x18]
call fcn.004024f0
mov dword [ebp - 4], 6
mov eax, dword [esi + 0x5c]
push eax
mov ecx, dword [esi + 0x58]
push ecx
mov edx, dword [esi + 0x3218]
push edx
fld qword [esi + 0x3210]
call fcn.00622e26
push edx
push eax
mov eax, dword [esi + 0x31fc]
push eax
mov ecx, dword [esi + 0x3200]
push ecx
push str.Media_header_has_been_parsed:_nPackets_number__ld__packet_length__ld__media_length__I64d__streams_count__d__file_size__I64d_n
lea edx, [ebp - 0x18]
push edx
call fcn.00402f60
add esp, 0x24
mov eax, dword [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00562270
mov ecx, dword [esi + 0x31fc]
push ecx
mov ecx, dword [esi + 0xa8]
call fcn.005616d0
cmp dword [esi + 0x3244], ebx
je 0x5a03c8
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
cmp edx, ebx
jl 0x5a037e
jg 0x5a0311
cmp ecx, ebx
jbe 0x5a037e
mov eax, dword [esi + 0xac]
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
cmp edi, ecx
jne 0x5a0327
cmp eax, edx
je 0x5a034a
mov eax, dword [esi + 0x3244]
mov eax, dword [eax + 0x86c]
imul eax, dword [esi + 0x31fc]
xor edx, edx
add eax, edi
adc edx, dword [ebp - 0x24]
cmp eax, ecx
jne 0x5a037e
cmp edx, dword [esi + 0x5c]
jne 0x5a037e
mov ecx, esi
call fcn.0059f4b0
mov edx, dword [esi + 0x3244]
mov dword [edx + 0x14c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402560
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov ecx, dword [esi + 0x3244]
call fcn.005a1c10
test eax, eax
je 0x5a03c8
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 0x20]
call edx
mov eax, dword [esi + 0x3244]
mov dword [eax + 0x14c], 0x7574
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402560
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x90], ebx
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
cmp eax, ebx
jl 0x5a0477
jg 0x5a03e6
cmp ecx, ebx
jbe 0x5a0477
cmp dword [esi + 0x31fc], ebx
je 0x5a0477
mov edx, dword [esi + 0x3208]
xor edi, edi
sub ecx, edx
sbb eax, edi
push ebx
mov edx, dword [esi + 0x31fc]
push edx
push eax
push ecx
call fcn.00628330
mov edi, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 0x90], eax
test edi, edi
je 0x5a043b
push edi
lea ecx, [esi + 0x10]
call fcn.0056b580
xor ecx, ecx
sub dword [esi + 0x60], edi
sbb dword [esi + 0x64], ecx
mov eax, dword [esi + 0xac]
sub dword [eax], edi
sbb dword [eax + 4], ecx
mov eax, dword [esi + 0x3208]
xor ecx, ecx
mov edx, dword [esi + 0x78]
sub edx, eax
mov eax, dword [esi + 0x7c]
sbb eax, ecx
add edx, 1
adc eax, ecx
mov ecx, dword [esi + 0x31fc]
push 0
push ecx
push eax
push edx
call fcn.00624b70
dec eax
mov dword [esi + 0x94], eax
mov edx, dword [esi + 0x98]
add dword [esi + 0x90], edx
xor ebx, ebx
mov eax, dword [esi + 0x90]
mov dword [esi + 0x3204], eax
cmp eax, ebx
je 0x5a048c
lea ecx, [eax - 1]
jmp 0x5a048e
xor ecx, ecx
mov dword [esi + 0x3220], ecx
push eax
mov ecx, esi
call fcn.0059db40
cmp eax, ebx
je 0x5a04ac
mov ecx, dword [esi + 0x3244]
mov dword [ecx + 0x14c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402560
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x321c]
cmp edx, dword [esi + 0x3224]
jb 0x5a04fa
mov dword [esi + 0xa4], 0x11
mov byte [esi + 0x3288], bl
xor eax, eax
mov word [esi + 0x3250], ax
mov dword [esi + 0x321c], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret