Function at 0x407cd0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov eax, 0x80c80
call fcn.0040ce80
mov eax, dword [str._FileX_Post_]
mov ecx, dword [0x41dde0]
mov edx, dword [0x41dde4]
push ebx
mov ebx, dword [esp + 0x80c8c]
push ebp
push esi
push edi
mov dword [esp + 0x24], eax
mov al, byte [0x41dde8]
push ebx
push str.FileX_Post_URL_s
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], al
call sym.Sure_XLite.exe_xLogMsg
mov edi, 0xba77f8
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov ebp, dword [esp + 0x80c94]
push 0
not ecx
dec ecx
push ecx
mov ecx, dword [ebp + 0x14]
push 0xba77f8
push ecx
call sub.WSOCK32.dll_send
lea edx, [esp + 0x4c]
push edx
push 0x41ddc4
push ebx
call sym.Sure_XLite.exe__WS_CmdParm_12
lea eax, [esp + 0x4c]
push 0x460170
push eax
call fcn.0040eb50
add esp, 8
test eax, eax
je 0x407d86
lea ecx, [esp + 0x4c]
push 0x41ddc0
push ecx
call fcn.0040de00
add esp, 8
test eax, eax
je 0x407d7f
mov byte [eax], 0
lea edx, [esp + 0x4c]
push edx
jmp 0x407d8b
push str.89.187.182.140
call sub.WSOCK32.dll_inet_addr
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4c]
lea esi, [ebp + 0xa4]
push eax
push str.Content_Length:
push esi
call sym.Sure_XLite.exe__WS_HeadParse_12
lea ecx, [esp + 0x4c]
push ecx
call fcn.0040dfdf
add esp, 4
lea edx, [esp + 0x4c]
mov dword [ebp + 0x24], eax
push edx
push str.uid
push esi
call sym.Sure_XLite.exe__WS_CookieX_12
lea eax, [esp + 0x4c]
push eax
call fcn.0040dfdf
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x250]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x41dda4
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x254]
push ecx
call fcn.0040de00
add esp, 0xc
test eax, eax
je 0x407e41
lea edx, [esp + 0x24c]
lea ecx, [esp + 0x14c]
sub eax, edx
mov esi, eax
lea eax, [esp + 0x24c]
push esi
push eax
push ecx
call fcn.0040e9d0
add esp, 0xc
mov byte [esp + esi + 0x14c], 0
jmp 0x407e6c
lea edi, [esp + 0x24c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14c]
push ecx
push edx
call fcn.0040de00
mov edx, eax
add esp, 8
test edx, edx
je 0x40837c
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
or ecx, 0xffffffff
add edi, edx
lea edx, [esp + 0x14c]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call sub.WSOCK32.dll_inet_ntoa
lea edx, [esp + 0x14c]
push eax
push edx
push str.FileX_Post__s_to___s_
call sym.Sure_XLite.exe_xLogMsg
add esp, 0xc
lea eax, [esp + 0x68c]
push eax
push str.Alias
push ebx
call sym.Sure_XLite.exe__WS_CmdParm_12
lea ecx, [esp + 0x68c]
push 0x460170
push ecx
call fcn.0040eb50
add esp, 8
test eax, eax
jne 0x407f34
lea edi, [esp + 0x14c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x68c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
lea eax, [ebp + 0xa4]
push ecx
push str.Last_Modified:
push eax
call sym.Sure_XLite.exe__WS_HeadParse_12
test eax, eax
jne 0x407f5e
lea edx, [esp + 0x4c]
push edx
call sym.Sure_XLite.exe__WS_BanTime_4
mov dword [esp + 0x10], eax
jmp 0x407f66
mov dword [esp + 0x10], 0
or ecx, 0xffffffff
mov edi, 0xba80b2
xor eax, eax
lea edx, [esp + 0x78c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x790]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x12
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x154]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xa98]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x794]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xa98]
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]
mov edi, str..tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xa98]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
call sym.Sure_XLite.exe__xFileOpen_16
mov eax, dword [ebp + 0x24]
cdq
mov ebx, eax
mov edi, edx
xor eax, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], eax
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
sub eax, edx
je 0x408074
mov ecx, eax
lea esi, [edx + ebp + 0xa4]
mov edx, ecx
lea edi, [esp + 0xc90]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x38]
mov dword [ebp + 0x20], eax
mov al, byte [ebp + 1]
test al, al
jne 0x4081c2
mov al, byte [0xba85c4]
test al, al
jne 0x4081c2
mov eax, dword [ebp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push 0
lea edx, [esp + 0x994]
push 0
push edx
push 1
mov dword [esp + 0x9a0], 1
mov dword [esp + 0x9a4], eax
mov dword [esp + 0x50], 0x3c
mov dword [esp + 0x54], 0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x4082c6
test eax, eax
je 0x4082db
mov ecx, dword [ebp + 0x14]
push 0
lea eax, [esp + 0xc94]
push 0x80000
push eax
push ecx
call sub.WSOCK32.dll_recv
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, 0xffffffff
je 0x4082ea
test eax, eax
je 0x4082ea
lea edx, [esp + 0xc90]
push esi
lea eax, [esp + 0x24]
push edx
push eax
call sym.Sure_XLite.exe__xFileWrite_12
cmp eax, esi
jne 0x408301
mov ecx, dword [esp + 0x18]
mov eax, esi
mov esi, dword [esp + 0x1c]
cdq
add ecx, eax
adc esi, edx
cmp ecx, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
jne 0x4081b7
mov eax, esi
cmp eax, edi
jne 0x4081b7
lea ecx, [esp + 0x20]
push ecx
call sym.Sure_XLite.exe__xFileClose_4
lea edx, [esp + 0x78c]
lea eax, [esp + 0xa90]
push edx
push eax
call sym.Sure_XLite.exe__xFileRename_8
push edi
push ebx
push str._FILE_DONE_FileSize_I64d_
call sym.Sure_XLite.exe_xLogMsg
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x40818f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x78c]
push ecx
push edx
call sym.Sure_XLite.exe__xSetFileTime_8
mov edi, 0xba81b8
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x14]
not ecx
dec ecx
push ecx
push 0xba81b8
push eax
call sub.WSOCK32.dll_send
mov edi, dword [esp + 0x38]
mov byte [ebp + 1], 1
mov al, byte [ebp + 1]
test al, al
je 0x408082
lea eax, [esp + 0x78c]
push eax
push str.__Queue__s_for_Upload
call sym.Sure_XLite.exe_xLogMsg
mov dword [esp + 0x370], edi
lea edi, [esp + 0x794]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x36c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x364], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x46c]
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 + 0x78c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x56c]
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 + 0x68c]
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
mov al, byte [0xba81b3]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov word [esp + 0x670], 0x50
test al, al
mov dword [esp + 0x66c], ecx
mov dword [esp + 0x358], 0
mov byte [esp + 0x34f], 1
je 0x40833f
lea edx, [esp + 0x44]
lea eax, [esp + 0x14c]
push edx
push eax
call sym.Sure_XLite.exe__WS_Ext_8
lea ecx, [esp + 0x44]
push ecx
call fcn.00407c50
add esp, 4
mov byte [esp + 0x34d], al
jmp 0x408347
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.FileX_Post_Socket_Error___d
call sym.Sure_XLite.exe_xLogMsg
add esp, 8
jmp 0x408301
push str.FileX_Post_timeout
call sym.Sure_XLite.exe_xLogMsg
add esp, 4
jmp 0x408301
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
push eax
push ecx
push str.FileX_Post__d__recv_err_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 0xc
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.FileX_Post_recv_err_d
call sym.Sure_XLite.exe_xLogMsg
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
push str.FileX_Post__d__Nob_d_Knt_d_Tot_d
call sym.Sure_XLite.exe_xLogMsg
add esp, 0x1c
mov byte [ebp + 2], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c80
ret
mov byte [esp + 0x34d], 0
lea edx, [esp + 0x34c]
mov byte [esp + 0x34e], 1
push edx
mov byte [esp + 0x354], 0
mov byte [esp + 0x350], 0
call fcn.00407a90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c80
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x80c80
ret