Function at 0x4064e0
Capabilities:
Get socket status
Make an http request with a cookie
Receive data
Receive data on socket
Resolve function by parsing pe exports
Send data
Send data on socket
Send http request

Disassembly:
mov eax, 0x42204
call fcn.0040ce80
push ebx
push ebp
push esi
lea eax, [esp + 0x60]
push edi
xor ebx, ebx
push eax
mov byte [esp + 0x1f], bl
mov byte [esp + 0x16], bl
mov dword [esp + 0x5c], ebx
call fcn.0040c91f
lea ecx, [esp + 0x110]
push str._r_n__SJtgKiBD5Yuy_z7f_7I_Yym406eoQldviLoAcyWs___r_n_r_n
push ecx
call fcn.0040d799
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x42218]
not ecx
lea ebp, [edi + 0x120]
dec ecx
push ebp
mov dword [esp + 0x54], ecx
call sym.Sure_XLite.exe__xFileExists_4
test al, al
jne 0x406570
push edi
push str.File_Error
call fcn.00407b30
push ebp
push str.PQ_Push_File_No_Longer_Exists__s
call sym.Sure_XLite.exe_xLogMsg
add esp, 0x10
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x42204
ret
mov cl, byte [0xba81b2]
mov eax, dword [edi + 0x320]
mov si, word [edi + 0x324]
mov dword [esp + 0x4c], eax
test cl, cl
mov dword [esp + 0x6c], esi
je 0x4065a0
mov eax, dword [0xba80ac]
mov esi, dword [0xba80b0]
mov dword [esp + 0x2c], eax
jmp 0x4065a4
mov dword [esp + 0x2c], eax
push 1
push 0x9e375c
mov dword [0x9e376c], ebx
mov dword [0x9e3768], eax
mov word [0x9e3762], si
mov dword [0x9e374c], ebx
mov dword [0x9e3750], ebx
mov byte [0x9e37d9], 1
call fcn.00403fd0
add esp, 8
mov byte [0x9e375d], al
test al, al
jne 0x4065fc
push str.PQ_Push_Primary_Connect_ERR___cannot_connect_on_MPs_0_
call sym.Sure_XLite.exe_xLogMsg
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x42204
ret
mov dl, byte [edi + 4]
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push ebp
push 0x9e375c
call fcn.00407500
mov edx, dword [esp + 0x38]
mov ebp, eax
mov eax, dword [esp + 0x34]
push edx
push eax
push ebp
push str.PQ_Push_Ref_d_FileSize_I64d
mov dword [esp + 0x78], ebp
call sym.Sure_XLite.exe_xLogMsg
mov ecx, dword [0x9e3778]
add esp, 0x24
push ecx
call sub.WSOCK32.dll_closesocket
cmp ebp, 0xffffffff
jne 0x40664b
push str.PQ_Push_Chk_Error
jmp 0x4065e6
cmp ebp, ebx
jne 0x40668b
push edi
push str._Exists
call fcn.00407b30
lea edx, [edi + 0x220]
push edx
push str.File__s_Already_exists_on_Headend_
call sym.Sure_XLite.exe_xLogMsg
mov al, byte [edi + 2]
add esp, 0x10
test al, al
je 0x40667e
add edi, 0x20
push edi
call sym.Sure_XLite.exe__xFileDelete_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x42204
ret
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
sub edi, edx
push 0
sbb ebx, ecx
push 0x40000
push ebx
push edi
mov dword [esp + 0x24], 8
call fcn.0040e8a0
mov ecx, eax
or ecx, edx
jne 0x4066c5
mov dword [esp + 0x14], 2
jmp 0x4066d4
test edx, edx
jg 0x4066d4
jl 0x4066d0
cmp eax, 8
jae 0x4066d4
mov dword [esp + 0x14], eax
lea edx, [esp + 0x7c]
push edx
call fcn.0040c91f
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x4221c]
add esp, 4
mov edx, dword [esp + 0x2c]
add eax, 0x220
and esi, 0xffff
push ebp
push 0x40000
push ecx
push ebx
push edi
push eax
push esi
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
push str.___PUSH_Start_Upload_to___s:_d__of__s_Bytes_I64d_NS_d_BufSize_d_Ref_d
call sym.Sure_XLite.exe_xLogMsg
mov eax, dword [esp + 0x38]
add esp, 0x24
xor ebp, ebp
test eax, eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
jle 0x40682a
mov ebx, 0x9e37dc
xor edi, edi
mov byte [ebx - 3], 0
mov byte [ebx], 0
mov dword [ebx - 0x90], edi
lea eax, [ebx - 0x84]
mov dword [ebx - 0x8c], edi
mov dword [ebx - 0x88], edi
push eax
mov dword [ebx - 0x94], edi
call fcn.0040c91f
add esp, 4
cmp ebx, 0xbe7d5c
jge 0x4067bf
mov edi, str.INET
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx - 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
mov dx, word [esp + 0x70]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebx - 0x80]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x54]
mov dword [ebx - 0x70], 0
mov dword [ebx - 0x74], ecx
mov word [ebx - 0x7a], dx
call fcn.00403fd0
add esp, 8
mov byte [ebx - 0x7f], al
xor edi, edi
mov al, byte [ebx - 0x7f]
test al, al
je 0x4067e2
push 1
call sym.Sure_XLite.exe__xSleep_4
mov eax, dword [esp + 0x14]
inc ebp
add ebx, 0x408b0
cmp ebp, eax
jl 0x406737
jmp 0x40682c
mov ecx, ebp
mov esi, dword [esp + 0x14]
shl ecx, 7
add ecx, ebp
shl ecx, 4
add ecx, ebp
lea edx, [ebp + ecx*4]
lea eax, [ebp + edx*2]
shl eax, 4
lea ebx, [eax + 0x9e3778]
mov ecx, dword [ebx]
push ecx
call sub.WSOCK32.dll_closesocket
dec esi
jne 0x406803
push ebp
push str.MP_Tx_ERR___cannot_connect_on_MPs__d_
call sym.Sure_XLite.exe_xLogMsg
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x42204
ret
xor edi, edi
mov ebp, dword [esp + 0x42218]
push 1
push 0x11
lea edx, [esp + 0x30]
lea esi, [ebp + 0x20]
push esi
push edx
call sym.Sure_XLite.exe__xFileOpen_16
cmp eax, 0xffffffff
jne 0x40686d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.PQ_Push_File_s_Open_ret_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x42204
ret
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, eax
or edx, ecx
je 0x406887
push ecx
push eax
lea eax, [esp + 0x30]
push eax
call sym.Sure_XLite.exe__xFileSeek_12
mov byte [esp + 0x13], 0
mov byte [esp + 0x38], 0
mov dword [esp + 0x68], edi
mov dword [esp + 0x4c], edi
mov dword [ebp + 0xc], edi
mov al, byte [0xba85c4]
test al, al
jne 0x40739b
mov al, byte [esp + 0x13]
test al, al
jne 0x406e60
mov eax, dword [esp + 0x14]
mov dword [esp + 0x78], edi
cmp eax, edi
jle 0x406e60
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040c91f
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.0040d8fb
fcomp qword [0x4192e0]
add esp, 0xc
fnstsw ax
test ah, 0x41
jne 0x406963
mov ecx, dword [esp + 0x42218]
lea eax, [ecx + 0x220]
push eax
push str._____________s____________
call sym.Sure_XLite.exe_xLogMsg
mov ebx, dword [esp + 0x1c]
add esp, 8
xor edi, edi
mov esi, 0x9e3750
mov edx, dword [esi - 4]
mov eax, dword [esi]
mov ecx, dword [esi - 8]
push edx
push eax
xor edx, edx
mov dl, byte [esi + 0x89]
xor eax, eax
mov al, byte [esi + 0x8c]
push ecx
push edx
push eax
push edi
push str.MPs__d__Active_d_Ready_d_Seg_d_Ptr_d_ByteKnt_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 0x1c
inc edi
add esi, 0x408b0
cmp edi, ebx
jl 0x406918
push str._________________________
call sym.Sure_XLite.exe_xLogMsg
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x64], ecx
mov al, byte [esp + 0x13]
test al, al
jne 0x406e34
mov edx, dword [esp + 0x2c]
mov al, byte [edx + 0x9e37dc]
lea ebx, [edx + 0x9e3740]
test al, al
jne 0x406e34
mov al, byte [ebx + 0x99]
test al, al
je 0x406e34
lea eax, [esp + 0x1a14]
push 0x40000
lea ecx, [esp + 0x2c]
push eax
push ecx
call sym.Sure_XLite.exe__xFileRead_12
mov edx, dword [esp + 0x42218]
mov ebp, eax
mov al, byte [edx + 4]
test al, al
je 0x4069fc
test ebp, ebp
jl 0x4069fc
cmp ebp, 0x40000
jge 0x4069fc
push str.Read_Pause___
call sym.Sure_XLite.exe_xLogMsg
add esp, 4
push 3
call sym.Sure_XLite.exe__xSleepWait_4
mov eax, 0x40000
lea ecx, [esp + ebp + 0x1a14]
sub eax, ebp
lea edx, [esp + 0x28]
push eax
push ecx
push edx
call sym.Sure_XLite.exe__xFileRead_12
test eax, eax
je 0x4069fc
add ebp, eax
xor esi, esi
cmp ebp, esi
jne 0x406a79
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x42218]
mov cl, byte [eax + 4]
test cl, cl
je 0x406e57
mov al, byte [esp + 0x1b]
test al, al
jne 0x406e57
lea ecx, [esp + 0x28]
push ecx
call sym.Sure_XLite.exe__xGetFileSize_4
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x54]
xor esi, esi
mov dword [esp + 0x20], eax
push esi
lea eax, [esp + 0x2c]
neg edx
push esi
push eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call sym.Sure_XLite.exe__xFileSeek_12
lea ecx, [esp + 0x1a14]
push 0x4000
lea edx, [esp + 0x2c]
push ecx
push edx
call sym.Sure_XLite.exe__xFileRead_12
mov ebp, eax
mov byte [esp + 0x1b], 1
cmp ebp, esi
je 0x406a07
mov ecx, dword [esp + 0x24]
mov eax, ebp
cdq
push ebp
push ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov edi, eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x40]
add edi, eax
mov dword [esp + 0x54], edx
adc edx, ecx
sub edi, 1
sbb edx, esi
push edx
mov edx, dword [esp + 0x42228]
push edi
push ecx
lea esi, [edx + 0x220]
push eax
push esi
push esi
lea eax, [esp + 0xe38]
push str.__SJtgKiBD5Yuy_z7f_7I_Yym406eoQldviLoAcyWs_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:_application_octet_stream__charsetISO_8859_1_r_nContent_Transfer_Encoding:_binary_r_nContent_Range:_bytes__I64d__I64d__I64d_r_nContent_Length:__d_r_n_r_n
push eax
call fcn.0040d799
lea edi, [esp + 0xe40]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x2c
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 0x50]
dec ecx
mov edi, ecx
mov ecx, dword [esp + 0x42218]
add edi, ebp
mov eax, dword [ecx + 0x320]
add edi, edx
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
lea edx, [esp + 0xd0]
push 0x41c758
push edx
call fcn.0040d799
mov al, byte [0xba81b2]
add esp, 0xc
test al, al
je 0x406b68
mov eax, dword [esp + 0x6c]
push esi
cmp ax, 0x50
jne 0x406b42
lea eax, [esp + 0xd0]
push ebx
push eax
lea ecx, [esp + 0x298]
push str.http:___s_Sure_X__s_FileX_MPost__s
push ecx
call fcn.0040d799
add esp, 0x14
jmp 0x406b7f
and eax, 0xffff
lea edx, [esp + 0xd0]
push eax
push ebx
push edx
lea eax, [esp + 0x29c]
push str.http:___s:_d_Sure_X__s_FileX_MPost__s
push eax
call fcn.0040d799
add esp, 0x18
jmp 0x406b7f
push esi
push ebx
lea ecx, [esp + 0x294]
push str._Sure_X__s_FileX_MPost__s
push ecx
call fcn.0040d799
add esp, 0x10
lea edx, [esp + 0x1a14]
push ebp
push edx
call fcn.00401050
mov esi, eax
lea eax, [esp + 0x394]
and esi, 0xffff
push esi
push str.CRC_d
push eax
call fcn.0040d799
mov al, byte [esp + 0x27]
mov ecx, dword [esp + 0x50]
add esp, 0x14
test al, al
jne 0x406bc3
mov eax, dword [esp + 0x58]
or esi, ecx
xor eax, esi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x40]
cmp ecx, eax
jne 0x406bd7
cmp esi, edx
je 0x406c04
mov eax, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x48]
adc ecx, esi
cmp eax, dword [esp + 0x20]
jne 0x406bed
cmp ecx, edx
je 0x406c04
lea ecx, [esp + 0x8c]
push str.iNet_VOD
push ecx
call fcn.0040d799
add esp, 8
jmp 0x406c60
lea edx, [esp + 0x80]
lea eax, [esp + 0x58]
push edx
push 4
push eax
call fcn.0040b400
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x98]
push ecx
push str.iNet_HASH__s
push edx
mov byte [esp + 0xa0], 0
call fcn.0040d799
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x98]
push eax
mov eax, dword [esp + 0x58]
push ebp
push ecx
push edx
push esi
push eax
push str.EOF_detected_ByteKnt_I64d_FileSize_I64d_RNob_d_HashStr_s
call sym.Sure_XLite.exe_xLogMsg
add esp, 0x34
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x38c]
push ecx
push edi
lea eax, [esp + 0x94]
push edx
lea ecx, [esp + 0x298]
push eax
push ecx
lea edx, [esp + 0x628]
push str.POST__s_HTTP_1.1_r_nUser_Agent:__s_r_nETag:__d_r_nContent_Length:__d_r_nContent_Type:_multipart_form_data__boundarySJtgKiBD5Yuy_z7f_7I_Yym406eoQldviLoAcyWs_r_nSet_Cookie:__s_r_nConnection:_Keep_Alive_r_n_r_n
push edx
call fcn.0040d799
or ecx, 0xffffffff
lea edi, [esp + 0xe30]
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x614]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1214]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x614]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x614]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x614]
mov eax, ecx
mov edx, ecx
lea edi, [ebx - 0x4080f]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
lea esi, [esp + 0x1a14]
lea edx, [ecx + eax]
mov ecx, ebp
mov dword [esp + 0x70], edx
lea edi, [edx + 0x9a2f31]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x50]
lea edi, [edx + ebp + 0x9a2f31]
mov edx, ecx
lea esi, [esp + 0x10c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add eax, ebp
and ecx, 3
mov ebp, edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x30]
xor esi, esi
mov byte [ebx + 0x9c], 1
add eax, ebp
mov dword [ebx + 0x14], esi
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x34]
push esi
push 0x40000
push eax
push ecx
mov dword [ebx + 0x10], esi
call fcn.0040e8a0
mov ecx, dword [esp + 0x42218]
add eax, 1
adc edx, esi
push esi
mov dword [ebx + 8], eax
cmp byte [ecx + 4], 0
push 0x1900000
push edx
push eax
je 0x406dd4
call fcn.0040dc10
mov esi, dword [esp + 0x42218]
mov ecx, dword [esi + 0x1c]
push ecx
mov ecx, dword [esi + 0x18]
push ecx
push edx
push eax
call fcn.0040e8a0
mov dword [esp + 0x74], edx
jmp 0x406df5
call fcn.0040dc10
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.0040e8a0
mov esi, dword [esp + 0x42218]
mov dword [esp + 0x74], edx
add ebx, 0x18
mov dword [esi + 0xc], eax
push ebx
call fcn.0040c91f
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
add esp, 4
add edi, eax
adc esi, ecx
add edx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], edi
adc eax, ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
inc eax
add edx, 0x408b0
cmp eax, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x2c], edx
jl 0x4068c9
mov ebp, dword [esp + 0x42218]
xor edi, edi
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp eax, edi
mov byte [esp + 0x1a], 1
jle 0x406fa7
xor esi, esi
mov al, byte [esp + 0x38]
test al, al
jne 0x406f94
mov al, byte [esi + 0x9e37d9]
test al, al
je 0x40721b
mov al, byte [esi + 0x9e37dc]
test al, al
je 0x406f94
mov ecx, dword [esi + 0x9e3750]
mov eax, dword [esi + 0x9e374c]
cmp ecx, eax
jge 0x407013
sub eax, ecx
push edi
push eax
mov eax, dword [esi + 0x9e3778]
lea edx, [esi + ecx + 0x9a2f31]
push edx
push eax
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x406fd4
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x406f94
cmp eax, 0x2747
je 0x406f94
push eax
push ebx
push str.MP_Tx__d__send_err_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 0xc
cmp dword [esi + 0x9e3754], 3
jge 0x40736d
mov ebp, dword [esi + 0x9e3778]
lea ecx, [esi + 0x9e375c]
push edi
push ecx
call fcn.00403fd0
add esp, 8
mov byte [esi + 0x9e375d], al
push ebp
call sub.WSOCK32.dll_closesocket
mov al, byte [esi + 0x9e375d]
test al, al
je 0x40734c
lea edx, [esi + 0x9e3758]
mov dword [esi + 0x9e3750], edi
push edx
mov byte [esi + 0x9e37d9], 0
call fcn.0040c91f
mov ebp, dword [esi + 0x9e3754]
xor ecx, ecx
inc ebp
mov dword [esi + 0x9e3754], ebp
mov cl, byte [esi + 0x9e37d9]
mov edx, dword [esi + 0x9e374c]
push ecx
mov ecx, dword [esi + 0x9e3750]
mov eax, ebp
push edx
mov edx, dword [esi + 0x9e3748]
push ecx
push eax
push edx
push str.PQ_Push_Retry_Seg_d_Retry_d_Ptr_d_ByteKnt_d_Ready_d
call sym.Sure_XLite.exe_xLogMsg
mov ebp, dword [esp + 0x42234]
add esp, 0x1c
mov eax, dword [esp + 0x14]
inc ebx
add esi, 0x408b0
cmp ebx, eax
jl 0x406e75
mov al, byte [0x9a2f28]
test al, al
jne 0x4072cb
mov al, byte [esp + 0x1a]
test al, al
je 0x406fc3
push 1
call sym.Sure_XLite.exe__xSleep_4
mov al, byte [esp + 0x38]
test al, al
jne 0x40739b
jmp 0x40689c
cmp eax, edi
jle 0x406f94
mov ecx, dword [esi + 0x9e3750]
mov byte [esp + 0x1a], 0
add ecx, eax
mov dword [esi + 0x9e3750], ecx
lea ecx, [esi + 0x9e3758]
push ecx
call fcn.0040c91f
mov edx, dword [esi + 0x9e3750]
mov eax, dword [esi + 0x9e374c]
add esp, 4
cmp edx, eax
jge 0x406f94
mov byte [esi + 0x9e37d9], 0
jmp 0x406f94
mov eax, dword [esi + 0x9e3778]
lea ecx, [esp + 0x5c]
push ecx
push edi
lea edx, [esp + 0x414]
push edi
push edx
push 1
mov dword [esp + 0x420], 1
mov dword [esp + 0x424], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x407060
mov eax, dword [esi + 0x9e3748]
push eax
push ebx
push str.MPs__d__Ack_Socket_Error_on_Seg_d
jmp 0x406ef4
cmp eax, edi
jne 0x407098
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040c91f
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x9e3758]
sub edx, ecx
add esp, 4
cmp edx, 0xa
jle 0x406f94
mov eax, dword [esi + 0x9e3748]
push eax
push ebx
push str.Host_Ack_Timeout_SEG__d____d
jmp 0x406ef4
mov edx, dword [esi + 0x9e3778]
push edi
lea ecx, [esp + 0x618]
push 0x800
push ecx
push edx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x4070da
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x406f94
push eax
push str.PQ_Push_Ack_read_err_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 8
jmp 0x406efc
cmp eax, edi
jle 0x406f94
mov byte [esp + eax + 0x614], 0
lea eax, [esp + 0x614]
push eax
call sym.Sure_XLite.exe__WS_RetCode_4
cmp eax, 0xc8
jne 0x407323
lea ecx, [esp + 0x18c]
lea edx, [esp + 0x614]
push ecx
push str.Pragma:
push edx
call sym.Sure_XLite.exe__WS_HeadParse_12
test eax, eax
jne 0x40714b
lea eax, [esp + 0x18c]
push 0x41d50c
push eax
call fcn.0040de00
add esp, 8
test eax, eax
je 0x40714b
push str.Rx_EOT___
call sym.Sure_XLite.exe_xLogMsg
add esp, 4
mov byte [esp + 0x38], 1
lea ecx, [esp + 0x18c]
lea edx, [esp + 0x614]
push ecx
push str.ETag:
push edx
call sym.Sure_XLite.exe__WS_HeadParse_12
lea eax, [esp + 0x18c]
push eax
call fcn.0040dfdf
mov ecx, dword [esi + 0x9e3748]
add esp, 4
cmp eax, ecx
jne 0x4072e5
lea ecx, [esp + 0x18c]
lea edx, [esp + 0x614]
push ecx
push str.Connection:
push edx
call sym.Sure_XLite.exe__WS_HeadParse_12
lea eax, [esp + 0x18c]
push str.close
push eax
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x4071e1
mov ecx, dword [esi + 0x9e3778]
push ecx
call sub.WSOCK32.dll_closesocket
lea edx, [esi + 0x9e375c]
push 1
push edx
call fcn.00403fd0
add esp, 8
mov byte [esi + 0x9e375d], al
test al, al
je 0x4072d5
mov dword [esi + 0x9e374c], edi
mov dword [esi + 0x9e3750], edi
mov byte [esi + 0x9e37dc], 0
mov dword [esi + 0x9e3754], edi
cmp esi, 0x204580
mov byte [esi + 0x9e37d9], 0
jge 0x407212
inc dword [esp + 0x68]
jmp 0x406f94
inc dword [esp + 0x4c]
jmp 0x406f94
mov eax, dword [esi + 0x9e3778]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x514]
push edi
push edx
push edi
push 1
mov dword [esp + 0x524], 1
mov dword [esp + 0x528], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x407268
mov eax, dword [esi + 0x9e3748]
push eax
push ebx
push str.MPs__d__Post_Socket_Error_on_Seg_d
jmp 0x406ef4
cmp eax, edi
jne 0x4072bf
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040c91f
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x9e3758]
sub edx, ecx
add esp, 4
cmp edx, 0xa
jle 0x406f94
mov ecx, dword [esi + 0x9e374c]
mov edx, dword [esi + 0x9e3750]
xor eax, eax
mov al, byte [esi + 0x9e37dc]
push eax
mov eax, dword [esi + 0x9e3748]
push ecx
push edx
push eax
push ebx
push str.MP__d__Write_READY_timeout_on_Seg_d_Ptr_d_ByteKnt_d_Active_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 0x18
jmp 0x406efc
mov byte [esi + 0x9e37d9], 1
jmp 0x406f94
mov byte [esp + 0x38], 1
jmp 0x40739b
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.MP_Tx_Connection_err_d
jmp 0x40738e
mov ecx, ebx
shl ecx, 7
add ecx, ebx
shl ecx, 4
add ecx, ebx
lea edx, [ebx + ecx*4]
lea ecx, [ebx + edx*2]
shl ecx, 4
mov edx, dword [ecx + 0x9e3748]
push edx
push eax
push str.PQ_Push_Etag_missmatch_ETag_d_Seg_d
call sym.Sure_XLite.exe_xLogMsg
lea eax, [esp + 0x620]
push eax
push str.Head_s
call sym.Sure_XLite.exe_xLogMsg
add esp, 0x14
jmp 0x407396
lea ecx, [esp + 0x1214]
push ecx
push str._Bail_My_Bad_Hdr_s
call sym.Sure_XLite.exe_xLogMsg
lea edx, [esp + 0x61c]
push edx
push str.Rx_Hdr_s
call sym.Sure_XLite.exe_xLogMsg
add esp, 0x10
jmp 0x407396
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.MP_Tx_Connection_err_d
call sym.Sure_XLite.exe_xLogMsg
mov ebp, dword [esp + 0x42220]
add esp, 8
mov byte [esp + 0x12], 1
jmp 0x40739b
mov eax, ebx
shl eax, 7
add eax, ebx
shl eax, 4
add eax, ebx
lea ecx, [ebx + eax*4]
lea edx, [ebx + ecx*2]
shl edx, 4
mov eax, dword [edx + 0x9e3748]
push eax
push str.Max_Retry_on_Seg_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 8
mov byte [esp + 0x12], 1
mov ebx, dword [esp + 0x38]
lea ecx, [esp + 0x28]
push ecx
call sym.Sure_XLite.exe__xFileClose_4
mov eax, dword [esp + 0x14]
cmp eax, edi
jle 0x4073d0
mov esi, 0x9e3778
mov ebp, eax
mov edx, dword [esi]
push edx
call sub.WSOCK32.dll_closesocket
add esi, 0x408b0
dec ebp
jne 0x4073b8
mov ebp, dword [esp + 0x42218]
mov al, byte [esp + 0x12]
test al, al
je 0x4073e7
push str.PQ_Push_Err_Out
call sym.Sure_XLite.exe_xLogMsg
add esp, 4
jmp 0x40745d
lea eax, [esp + 0x1c]
push eax
call fcn.0040c91f
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.0040d8fb
fstp qword [esp + 0x50]
fild qword [esp + 0x2c]
mov eax, ebx
add esp, 0xc
and eax, 0xff
fdiv qword [esp + 0x44]
push eax
fmul qword [0x4192c8]
fmul qword [0x4192b8]
call fcn.0040d084
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x4c]
fild dword [esp + 0x74]
mov edx, dword [esp + 0x48]
sub esp, 8
lea eax, [ebp + 0x220]
fmul qword [0x4192c0]
fstp qword [esp]
push ecx
push edx
push eax
push str.___PUSH_Fin_Upload_of__s_Secs_.0f_MBps_.2f_EOT_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 0x1c
mov al, byte [0x9a2f28]
test al, al
je 0x407497
push ebp
push str._Cancelled
mov byte [0x9a2f28], 0
call fcn.00407b30
mov al, byte [ebp + 1]
add esp, 8
test al, al
je 0x40739f
lea ecx, [ebp + 0x120]
push ecx
call sym.Sure_XLite.exe__xFileDelete_4
jmp 0x40739f
mov al, byte [esp + 0x38]
test al, al
je 0x4065ee
mov al, byte [ebp + 1]
test al, al
je 0x4074d3
mov edx, dword [esp + 0x42218]
xor esi, esi
lea edi, [edx + 0x120]
push edi
call sym.Sure_XLite.exe__xFileDelete_4
test eax, eax
je 0x4074d3
push 0x3e8
call sym.Sure_XLite.exe__xSleep_4
inc esi
cmp esi, 0xa
jl 0x4074b9
mov eax, dword [esp + 0x42218]
mov cl, byte [eax + 2]
test cl, cl
je 0x4074ea
add eax, 0x20
push eax
call sym.Sure_XLite.exe__xFileDelete_4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x42204
ret