Function at 0x5665e6
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 8]
push edi
call sym.txupd.exe_public:_void___thiscall_CTXStringA::constructor_void_
lea eax, [ebp - 8]
lea edi, [esi - 4]
push eax
mov ecx, edi
call sym.txupd.exe_private:_int___thiscall_CTXHttpDownload::BuildRqHead_class_CTXStringA__
test eax, eax
je 0x566b17
lea ecx, [ebp - 8]
call sym.txupd.exe_public:_bool___thiscall_CTXStringA::IsEmpty_void_const
test al, al
jne 0x566b17
xor ebx, ebx
lea ecx, [ebp - 8]
mov dword [ebp - 0x38], ebx
call sym.txupd.exe_public:_int___thiscall_CTXStringA::GetLength_void_const
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 0x20], eax
call sym.txupd.exe_public:_char____thiscall_CTXStringA::GetBuffer_int_
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], ebx
call sym.txupd.exe_public:_void___thiscall_CTXStringA::ReleaseBuffer_int_
mov ecx, dword [esi + 0x98]
mov dword [ebp - 0x24], ebx
test ecx, ecx
je 0x56665d
call fcn.00576ebe
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xb4]
lea ecx, [ebp - 8]
push 0xffffffffffffffff
mov dword [ebp - 0x34], eax
call sym.txupd.exe_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const
push eax
lea eax, [ebp - 0x3c]
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_Util::Convert::Utf8ToWS_char_const___int_
add esp, 0xc
mov ecx, eax
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push dword [esi + 0xd4]
push str.Id__lu__Run_strRqHead_r_n__r_n_s_
push str.Http
push 3
push str.func
push 0xb60
push str.file
call fcn.004ce9b9
add esp, 0x20
lea ecx, [ebp - 0x3c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esi + 0xd4]
mov dword [ebp - 0x18], eax
push str.Id__lu___Run_Loop.
push str.Http
push 2
pop ebx
push ebx
push str.func
push 0xb6a
push str.file
call fcn.004ce9b9
add esp, 0x1c
jmp 0x566963
mov eax, dword [ebp - 4]
test eax, eax
je 0x566711
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push 1
mov ecx, edi
call sym.txupd.exe_private:_int___thiscall_CTXHttpDownload::SelectSocket_int__int__int___int__
cmp dword [ebp - 4], 0
je 0x566738
cmp dword [ebp - 0x14], 0
je 0x566738
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], 0
je 0x566747
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
cmp eax, 0xea60
ja 0x566abe
cmp dword [ebp - 0x14], 0
je 0x56691e
cmp dword [ebp - 4], 0
je 0x56691e
cmp dword [ebp - 0x28], 0
jne 0x5667bd
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
sub eax, edx
test eax, eax
jle 0x566799
push ecx
push eax
mov eax, dword [ebp - 0x40]
add eax, edx
push eax
push dword [ebp - 0x34]
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 0x1c]
mov ecx, eax
add edx, ecx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x20]
jne 0x56691e
cmp dword [ebp - 0x24], 0
jbe 0x56691a
mov dword [ebp - 0x28], 1
jmp 0x56691e
mov ecx, dword [esi + 0x98]
lea eax, [ebp - 0x30]
and dword [ebp - 0x2c], 0
and dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00576d81
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
test eax, eax
jne 0x5667ee
test edx, edx
je 0x5667ee
test ecx, ecx
jne 0x5669c7
test ecx, ecx
je 0x56691e
push 0
push ecx
push edx
push dword [ebp - 0x34]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x56691e
mov ecx, dword [esi + 0x98]
push eax
call fcn.00576ed2
lea eax, [esi + 0x48]
push 0x7153d0
push eax
call sym.txupd.exe_bool___cdecl_operator_class_CTXStringW_const___wchar_t_const__
pop ecx
pop ecx
test al, al
je 0x56684a
mov ecx, dword [esi + 0x98]
call fcn.00576ebe
mov ecx, dword [esi + 0x98]
push eax
call fcn.00576ec2
push eax
mov ecx, edi
call sym.txupd.exe_private:_void___thiscall_CTXHttpDownload::NotifyProgress_unsigned_long_int__unsigned_long_int_
mov ecx, dword [esi + 0x98]
call fcn.00576ec6
test eax, eax
je 0x56691e
cmp dword [esi + 0x60], 0
je 0x56691a
cmp dword [ebp - 0x38], 0
jne 0x56691a
lea ecx, [ebp - 0xc]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::constructor_void_
lea ecx, [esi + 0x64]
call sym.txupd.exe_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const
push eax
lea eax, [ebp - 0xc]
push str._r_n___s___r_n_r_n
push eax
call sym.txupd.exe_public:_void___cdecl_CTXStringA::Format_char_const__
mov eax, dword [esi + 0x98]
add esp, 0xc
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5668b6
mov ecx, eax
call fcn.00576d47
push 0x41c
push dword [ebp - 0x38]
call fcn.00682c08
pop ecx
pop ecx
and dword [esi + 0x98], 0
push 0x41c
call fcn.00682bd5
pop ecx
test eax, eax
je 0x5668db
push dword [esi + 0xd4]
mov ecx, eax
call fcn.00576d14
jmp 0x5668dd
xor eax, eax
mov dword [esi + 0x98], eax
test eax, eax
je 0x5669fe
lea ecx, [ebp - 0xc]
call sym.txupd.exe_public:_int___thiscall_CTXStringA::GetLength_void_const
push eax
push eax
lea ecx, [ebp - 0xc]
call sym.txupd.exe_public:_char____thiscall_CTXStringA::GetBuffer_int_
mov ecx, dword [esi + 0x98]
push eax
call fcn.00576ef6
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x38], 1
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
jmp 0x56691e
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x566963
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x3c]
and dword [ebp - 0x3c], 0
mov ecx, edi
push eax
lea eax, [ebp - 0x30]
mov dword [esi + 0xcc], ebx
push eax
mov dword [esi + 0xd0], ebx
call sym.txupd.exe_private:_int___thiscall_CTXHttpDownload::ReadData_int___int__
test eax, eax
je 0x566a6e
cmp dword [ebp - 0x3c], 0
jne 0x566a67
cmp dword [ebp - 0x30], 0
jne 0x566a33
mov ecx, esi
call sym.txupd.exe_protected:_int___thiscall_CTXThreadModel::QueryExitEvent_void_
test eax, eax
je 0x5666ff
push dword [esi + 0xd4]
push str.Id__lu___User_Cancel
push str.Http
push ebx
push str.func
push 0xb70
push str.file
call fcn.004ce9b9
add esp, 0x1c
push dword [esi + 0xd4]
push str.__lu___Exit_Loop.
push str.Http
push ebx
push str.func
push 0xc2c
push str.file
call fcn.004ce9b9
add esp, 0x1c
jmp 0x566b4a
xor eax, eax
test edx, edx
sete al
push eax
push ecx
push dword [esi + 0xd4]
push str.Id__lu___GetBuf_Failed__dwlen_lu__pBuf.IsEmpty___d.
push str.Http
push ebx
push str.func
push 0xbba
push str.file
call fcn.004ce9b9
add esp, 0x24
push ebx
jmp 0x566b0b
push dword [esi + 0xd4]
push str.__lu___OUT_OF_MEMORY
push str.Http
push ebx
push str.func
push 0xbdb
push str.file
call fcn.004ce9b9
add esp, 0x1c
lea ecx, [ebp - 0xc]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
jmp 0x566b4a
mov ecx, edi
call sym.txupd.exe_private:_int___thiscall_CTXHttpDownload::IsOKResponse_void_
test eax, eax
je 0x566a60
xor eax, eax
cmp dword [esi + 0x84], eax
jne 0x566a54
cmp dword [esi + 0x80], eax
je 0x566b06
mov ecx, edi
call sym.txupd.exe_private:_void___thiscall_CTXHttpDownload::NotifyReConnect_void_
jmp 0x56699a
push 3
jmp 0x566b0b
push 0
jmp 0x566b0b
cmp dword [esi + 0xcc], 1
jne 0x566a8e
mov ecx, edi
call sym.txupd.exe_private:_int___thiscall_CTXHttpDownload::IsRedirectResponse_void_
mov ecx, edi
test eax, eax
je 0x566a56
call sym.txupd.exe_private:_void___thiscall_CTXHttpDownload::NotifyRedirect_void_
jmp 0x56699a
push dword [esi + 0xd4]
push str.Id__lu___NEXTSTEP_RECONNECT___m_eNextStep
push str.Http
push ebx
push str.func
push 0xc06
push str.file
call fcn.004ce9b9
add esp, 0x1c
push dword [esi + 0xd0]
jmp 0x566b0b
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 4]
push str.______________________
push str.Http
push ebx
push str.func
push 0xb8a
push str.file
call fcn.004cee9c
add esp, 0x24
mov ecx, edi
call sym.txupd.exe_private:_int___thiscall_CTXHttpDownload::IsOKResponse_void_
test eax, eax
je 0x566b09
xor eax, eax
cmp dword [esi + 0x84], eax
jne 0x566b09
cmp dword [esi + 0x80], eax
jne 0x566b09
push eax
jmp 0x566b0b
push 5
mov ecx, edi
call sym.txupd.exe_private:_void___thiscall_CTXHttpDownload::NotifyComplete_int_
jmp 0x56699a
push dword [esi + 0xd4]
push str.Id__lu___BuildRqHead_Failed
push str.Http
push 2
pop ebx
push ebx
push str.func
push 0xb4a
push str.file
call fcn.004ce9b9
add esp, 0x1c
mov ecx, edi
push ebx
call sym.txupd.exe_private:_void___thiscall_CTXHttpDownload::NotifyComplete_int_
lea ecx, [ebp - 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret