Function at 0x4bb4b9
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket
Send http request

Disassembly:
push 0x48
mov eax, 0x592c7b
call fcn.00584f68
mov esi, ecx
lea ecx, [ebp - 0x14]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::constructor_void_
lea edi, [esi - 4]
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], edi
call sym.txupd.exe_private:_int___thiscall_CTXHttpDownload::BuildRqHead_class_CTXStringA__
test eax, eax
je 0x4bb8ad
lea ecx, [ebp - 0x14]
call sym.txupd.exe_public:_bool___thiscall_CTXStringA::IsEmpty_void_const
test al, al
jne 0x4bb8ad
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x48], ebx
call sym.txupd.exe_public:_int___thiscall_CTXStringA::GetLength_void_const
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], eax
call sym.txupd.exe_public:_char____thiscall_CTXStringA::GetBuffer_int_
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x30], ebx
call sym.txupd.exe_public:_void___thiscall_CTXStringA::ReleaseBuffer_int_
mov ecx, dword [esi + 0x9c]
cmp ecx, ebx
mov dword [ebp - 0x3c], ebx
je 0x4bb539
call fcn.004f69f5
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0xb8]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x44], eax
call sym.txupd.exe_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const
push eax
lea eax, [ebp - 0x50]
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_Util::Convert::Utf8ToWS_char_const___int_
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 1
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push dword [esi + 0xd4]
mov edi, str.....SourceCommonNetworkHttpHttpDownload.cpp
push str.Id__lu__Run_strRqHead_r_n__r_n_s_
push 0x5b2f84
push 3
push str.CTXHttpDownload::Run
push 0xa63
push edi
call fcn.00452950
add esp, 0x20
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
jmp 0x4bb7f9
cmp dword [ebp - 0x18], ebx
je 0x4bb5c5
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x18]
push 1
call sym.txupd.exe_private:_int___thiscall_CTXHttpDownload::SelectSocket_int__int__int___int__
cmp dword [ebp - 0x18], ebx
je 0x4bb5ed
cmp dword [ebp - 0x28], ebx
je 0x4bb5ed
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x24], ebx
je 0x4bb5fb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, 0xea60
ja 0x4bb80d
cmp dword [ebp - 0x28], ebx
je 0x4bb7b9
cmp dword [ebp - 0x18], ebx
je 0x4bb7b9
cmp dword [ebp - 0x40], ebx
jne 0x4bb66b
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
sub ecx, edx
xor eax, eax
cmp ecx, ebx
jle 0x4bb648
mov eax, dword [ebp - 0x54]
push ebx
push ecx
add edx, eax
push edx
push dword [ebp - 0x44]
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 0x30]
add edx, eax
cmp edx, dword [ebp - 0x38]
mov dword [ebp - 0x30], edx
jne 0x4bb7b9
cmp dword [ebp - 0x3c], ebx
jbe 0x4bb7b6
mov dword [ebp - 0x40], 1
jmp 0x4bb7b9
mov ecx, dword [esi + 0x9c]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004f69f9
test eax, eax
jne 0x4bb696
cmp dword [ebp - 0x34], ebx
je 0x4bb696
cmp dword [ebp - 0x1c], ebx
jne 0x4bb858
cmp dword [ebp - 0x1c], ebx
jbe 0x4bb7b9
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x34]
push dword [ebp - 0x44]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebx
jle 0x4bb7b9
mov ecx, dword [esi + 0x9c]
push eax
call fcn.004f6a88
lea eax, [esi + 0x48]
push str.POST
push eax
call sym.txupd.exe_bool___cdecl_operator_class_CTXStringW_const___wchar_t_const__
test al, al
pop ecx
pop ecx
je 0x4bb6f7
mov ecx, dword [esi + 0x9c]
call fcn.004f69f5
mov ecx, dword [esi + 0x9c]
push eax
call fcn.004f69b2
mov ecx, dword [ebp - 0x10]
push eax
call sym.txupd.exe_private:_void___thiscall_CTXHttpDownload::NotifyProgress_unsigned_long_int__unsigned_long_int_
mov ecx, dword [esi + 0x9c]
call fcn.004f6aae
test eax, eax
je 0x4bb7b9
cmp dword [esi + 0x60], ebx
je 0x4bb7b6
cmp dword [ebp - 0x48], ebx
jne 0x4bb7b6
lea ecx, [ebp - 0x20]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::constructor_void_
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const
push eax
lea eax, [ebp - 0x20]
push str._r_n___s___r_n_r_n
push eax
call sym.txupd.exe_public:_void___cdecl_CTXStringA::Format_char_const__
mov ecx, dword [esi + 0x9c]
add esp, 0xc
cmp ecx, ebx
je 0x4bb753
push 1
call fcn.004b6665
push 0x41c
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x50], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x4bb778
push dword [esi + 0xd4]
mov ecx, eax
call fcn.004f6948
jmp 0x4bb77a
xor eax, eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [esi + 0x9c], eax
call sym.txupd.exe_public:_int___thiscall_CTXStringA::GetLength_void_const
push eax
push eax
lea ecx, [ebp - 0x20]
call sym.txupd.exe_public:_char____thiscall_CTXStringA::GetBuffer_int_
mov ecx, dword [esi + 0x9c]
push eax
call fcn.004f69b6
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], bl
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
jmp 0x4bb7b9
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x24], ebx
je 0x4bb7f9
mov ecx, dword [ebp - 0x10]
push 2
pop eax
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call sym.txupd.exe_private:_int___thiscall_CTXHttpDownload::ReadData_int___int__
test eax, eax
je 0x4bb85f
cmp dword [ebp - 0x4c], ebx
jne 0x4bb883
cmp dword [ebp - 0x50], ebx
jne 0x4bb886
mov ecx, esi
call sym.txupd.exe_protected:_int___thiscall_CTXThreadModel::QueryExitEvent_void_
test eax, eax
je 0x4bb5b8
jmp 0x4bb8b6
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x18]
push str.______________________
push 0x5b2f84
push 2
push str.CTXHttpDownload::Run
push 0xa89
push edi
call fcn.00458780
mov ecx, dword [ebp - 0x10]
add esp, 0x24
call sym.txupd.exe_private:_int___thiscall_CTXHttpDownload::IsOKResponse_void_
test eax, eax
je 0x4bb854
cmp dword [esi + 0x84], ebx
jne 0x4bb854
cmp dword [esi + 0x80], ebx
jne 0x4bb854
push ebx
jmp 0x4bb8b1
push 5
jmp 0x4bb8b1
push 2
mov ecx, dword [ebp - 0x10]
jmp 0x4bb8b1
cmp dword [esi + 0xcc], 1
mov ecx, dword [ebp - 0x10]
jne 0x4bb87b
call sym.txupd.exe_private:_int___thiscall_CTXHttpDownload::IsRedirectResponse_void_
test eax, eax
je 0x4bb8a2
call sym.txupd.exe_private:_void___thiscall_CTXHttpDownload::NotifyRedirect_void_
jmp 0x4bb8b6
push dword [esi + 0xd0]
jmp 0x4bb8b1
push ebx
jmp 0x4bb85a
mov ecx, dword [ebp - 0x10]
call sym.txupd.exe_private:_int___thiscall_CTXHttpDownload::IsOKResponse_void_
test eax, eax
je 0x4bb8a9
cmp dword [esi + 0x84], ebx
jne 0x4bb8a2
cmp dword [esi + 0x80], ebx
je 0x4bb851
call sym.txupd.exe_private:_void___thiscall_CTXHttpDownload::NotifyReConnect_void_
jmp 0x4bb8b6
push 3
jmp 0x4bb8b1
push 2
mov ecx, edi
call sym.txupd.exe_private:_void___thiscall_CTXHttpDownload::NotifyComplete_int_
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
xor eax, eax
inc eax
call fcn.00585040
ret