Function at 0x49d6c0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1009
mov eax, dword fs:[0]
push eax
sub esp, 0x6c0
mov eax, dword [0x4ea00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60c], ecx
mov dword [ebp - 0x69c], 0
mov dword [ebp - 0x6c4], 4
mov dword [ebp - 0x614], 0
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x620], 0
mov eax, dword [ebp - 0x60c]
mov dword [eax + 0x1b8], 0
push 0
lea ecx, [ebp - 0x62c]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4cf160
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp - 0x60c]
cmp dword [eax], 0
je 0x49d7b7
mov ecx, dword [ebp - 0x60c]
add ecx, 0xcc
push ecx
mov edx, dword [ebp - 0x60c]
add edx, 4
push edx
push 0x4cf174
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x608]
push ecx
push 3
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x614], eax
jmp 0x49d7fa
mov eax, dword [ebp - 0x62c]
and eax, 4
jne 0x49d7df
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x614], eax
jmp 0x49d7fa
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x614], eax
cmp dword [ebp - 0x614], 0
jne 0x49d849
push 0x4cf198
push 0xdf
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6c8], esp
push 0x4cf1c4
call fcn.00418700
mov dword [ebp - 0x698], eax
mov dword [ebp - 4], 0
call sym.Install_rocket.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
call sym.Install_rocket.exe_public:_void___thiscall_CNsLog::WriteLog2_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____int__wchar_t_const__
xor eax, eax
jmp 0x49e1e3
push 4
mov eax, dword [ebp - 0x60c]
add eax, 0x1bc
push eax
push 2
mov ecx, dword [ebp - 0x614]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
mov edx, dword [ebp - 0x60c]
add edx, 0x1bc
push edx
push 5
mov eax, dword [ebp - 0x614]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
mov ecx, dword [ebp - 0x60c]
add ecx, 0x1bc
push ecx
push 6
mov edx, dword [ebp - 0x614]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0x4cf1e8
lea ecx, [ebp - 0x61c]
call fcn.004096a0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x610]
call fcn.004096a0
mov byte [ebp - 4], 2
push 0
push 0x4cf1f4
lea ecx, [ebp - 0x610]
call fcn.0040ddd0
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0
jle 0x49d99f
mov ecx, dword [ebp - 0x628]
push ecx
lea edx, [ebp - 0x694]
push edx
lea ecx, [ebp - 0x610]
call fcn.00411360
mov dword [ebp - 0x68c], eax
mov eax, dword [ebp - 0x68c]
mov dword [ebp - 0x690], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x690]
push ecx
lea ecx, [ebp - 0x61c]
call fcn.00409610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x694]
call fcn.00409680
lea ecx, [ebp - 0x610]
call fcn.004097f0
sub eax, dword [ebp - 0x628]
sub eax, 3
push eax
lea edx, [ebp - 0x654]
push edx
lea ecx, [ebp - 0x610]
call fcn.00411420
mov dword [ebp - 0x64c], eax
mov eax, dword [ebp - 0x64c]
mov dword [ebp - 0x650], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x650]
push ecx
lea ecx, [ebp - 0x610]
call fcn.00409610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x654]
call fcn.00409680
lea ecx, [ebp - 0x618]
call fcn.004097c0
mov byte [ebp - 4], 5
push 0
push 0x4cf1fc
lea ecx, [ebp - 0x610]
call fcn.0040ddd0
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0
jle 0x49da80
mov edx, dword [ebp - 0x628]
push edx
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0x610]
call fcn.00411360
mov dword [ebp - 0x658], eax
mov ecx, dword [ebp - 0x658]
mov dword [ebp - 0x65c], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x65c]
push edx
lea ecx, [ebp - 0x618]
call fcn.00409610
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x660]
call fcn.00409680
lea ecx, [ebp - 0x610]
call fcn.004097f0
sub eax, dword [ebp - 0x628]
push eax
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x610]
call fcn.00411420
mov dword [ebp - 0x664], eax
mov ecx, dword [ebp - 0x664]
mov dword [ebp - 0x668], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x668]
push edx
lea ecx, [ebp - 0x610]
call fcn.00409610
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x66c]
call fcn.00409680
jmp 0x49daa2
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x618]
call fcn.00409610
push 0x4cf200
lea ecx, [ebp - 0x610]
call fcn.004095c0
cmp dword [ebp + 0x14], 0x50
jne 0x49dac3
push 0x4cf204
lea ecx, [ebp - 0x61c]
call fcn.00418dd0
test eax, eax
jne 0x49dac3
mov dword [ebp + 0x14], 0x1bb
mov dword [ebp - 0x634], 0
mov ecx, dword [ebp - 0x60c]
mov edx, dword [ebp - 0x634]
cmp edx, dword [ecx + 0x1b0]
jge 0x49dbf3
push 0
push bind
push 3
push 0
push 0
movzx eax, word [ebp + 0x14]
push eax
lea ecx, [ebp - 0x618]
call sym.Install_rocket.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x614]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
je 0x49db29
jmp 0x49dbf3
mov edx, dword [ebp - 0x634]
add edx, 1
mov dword [ebp - 0x634], edx
mov eax, dword [ebp - 0x60c]
mov ecx, dword [ebp - 0x634]
cmp ecx, dword [eax + 0x1b0]
jl 0x49dbdb
push 0x4cf210
push 0x117
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6b4], esp
push 0x4cf240
call fcn.00418700
mov dword [ebp - 0x6a0], eax
mov byte [ebp - 4], 8
call sym.Install_rocket.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov byte [ebp - 4], 5
mov ecx, eax
call sym.Install_rocket.exe_public:_void___thiscall_CNsLog::WriteLog2_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____int__wchar_t_const__
mov edx, dword [ebp - 0x614]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x670], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x618]
call fcn.00409680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x610]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x61c]
call fcn.00409680
mov eax, dword [ebp - 0x670]
jmp 0x49e1e3
mov eax, dword [ebp - 0x60c]
mov ecx, dword [eax + 0x1b4]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49dacd
mov edx, dword [ebp - 0x60c]
cmp dword [edx], 0
je 0x49dc5c
mov eax, dword [ebp - 0x60c]
add eax, 0xe4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp - 0x60c]
add ecx, 0xe4
push ecx
push 0x2b
mov edx, dword [ebp - 0x624]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x60c]
add eax, 0x148
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp - 0x60c]
add ecx, 0x148
push ecx
push 0x2c
mov edx, dword [ebp - 0x624]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x62c], VariantCopy
push 0x4cf264
lea ecx, [ebp - 0x61c]
call fcn.00418dd0
test eax, eax
jne 0x49dc8b
mov eax, dword [ebp - 0x62c]
or eax, 0x803000
mov dword [ebp - 0x62c], eax
push 0
mov ecx, dword [ebp - 0x62c]
push ecx
push 0x4eb328
push 0
push 0x4cf270
lea ecx, [ebp - 0x610]
call sym.Install_rocket.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cf284
mov edx, dword [ebp - 0x624]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x620], eax
cmp dword [ebp - 0x620], 0
jne 0x49dd69
push 0x4cf28c
push 0x139
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6a4], esp
push 0x4cf2bc
call fcn.00418700
mov dword [ebp - 0x6a8], eax
mov byte [ebp - 4], 9
call sym.Install_rocket.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov byte [ebp - 4], 5
mov ecx, eax
call sym.Install_rocket.exe_public:_void___thiscall_CNsLog::WriteLog2_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____int__wchar_t_const__
mov eax, dword [ebp - 0x624]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x614]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x674], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x618]
call fcn.00409680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x610]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x61c]
call fcn.00409680
mov eax, dword [ebp - 0x674]
jmp 0x49e1e3
push 0x3e8
push 0
lea edx, [ebp - 0x478]
push edx
call fcn.00432e20
add esp, 0xc
push 0x4cf2e0
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4cf2fc
lea ecx, [ebp - 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x618]
call sym.Install_rocket.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea edx, [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4cf308
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4cf310
lea ecx, [ebp - 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xa0000000
lea edx, [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x478]
push eax
mov ecx, dword [ebp - 0x620]
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov dword [ebp - 0x648], eax
cmp dword [ebp - 0x648], 0
jne 0x49dea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4cf388
push 0x149
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6ac], esp
push 0x4cf364
call fcn.00418700
mov dword [ebp - 0x6b0], eax
mov byte [ebp - 4], 0xa
call sym.Install_rocket.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
push eax
mov byte [ebp - 4], 5
call sym.Install_rocket.exe_public:_void___cdecl_CNsLog::WriteLog_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____int__wchar_t_const__
add esp, 0x28
mov dword [ebp - 0x678], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x618]
call fcn.00409680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x610]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x61c]
call fcn.00409680
mov eax, dword [ebp - 0x678]
jmp 0x49e1e3
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x620]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x648], eax
cmp dword [ebp - 0x648], 0
jne 0x49df50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4cf408
push 0x150
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6cc], esp
push 0x4cf3e4
call fcn.00418700
mov dword [ebp - 0x6b8], eax
mov byte [ebp - 4], 0xb
call sym.Install_rocket.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
push eax
mov byte [ebp - 4], 5
call sym.Install_rocket.exe_public:_void___cdecl_CNsLog::WriteLog_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____int__wchar_t_const__
add esp, 0x28
mov dword [ebp - 0x67c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x618]
call fcn.00409680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x610]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x61c]
call fcn.00409680
mov eax, dword [ebp - 0x67c]
jmp 0x49e1e3
mov eax, dword [ebp - 0x620]
push eax
mov ecx, dword [ebp - 0x60c]
call sym.Install_rocket.exe_public:_int___thiscall_CNsNet::isGzip_void__
mov dword [ebp - 0x684], eax
mov dword [ebp - 0x638], 0x4000
mov ecx, dword [ebp - 0x638]
cmp ecx, dword [ebp + 0x10]
jl 0x49df89
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp - 0x638], edx
mov dword [ebp - 0x630], 0
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00432e20
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x640], edx
mov eax, dword [ebp - 0x60c]
movzx ecx, byte [eax + 0x1ac]
test ecx, ecx
jne 0x49e0e5
mov edx, dword [ebp - 0x630]
add edx, dword [ebp - 0x638]
cmp edx, dword [ebp + 0x10]
jge 0x49e0e5
mov dword [ebp - 0x63c], 0
lea eax, [ebp - 0x63c]
push eax
mov ecx, dword [ebp - 0x638]
push ecx
mov edx, dword [ebp - 0x640]
push edx
mov eax, dword [ebp - 0x620]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x49e0b1
push 0x4cf458
push 0x164
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6bc], esp
push 0x4cf48c
call fcn.00418700
mov dword [ebp - 0x6c0], eax
mov byte [ebp - 4], 0xc
call sym.Install_rocket.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov byte [ebp - 4], 5
mov ecx, eax
call sym.Install_rocket.exe_public:_void___thiscall_CNsLog::WriteLog2_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____int__wchar_t_const__
mov ecx, dword [ebp - 0x620]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x624]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x614]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x680], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x618]
call fcn.00409680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x610]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x61c]
call fcn.00409680
mov eax, dword [ebp - 0x680]
jmp 0x49e1e3
cmp dword [ebp - 0x63c], 0
jne 0x49e0bc
jmp 0x49e0e5
mov ecx, dword [ebp - 0x630]
add ecx, dword [ebp - 0x63c]
mov dword [ebp - 0x630], ecx
mov edx, dword [ebp - 0x640]
add edx, dword [ebp - 0x63c]
mov dword [ebp - 0x640], edx
jmp 0x49dfae
mov eax, dword [ebp - 0x640]
mov byte [eax], 0
mov ecx, dword [ebp - 0x60c]
mov edx, dword [ebp - 0x630]
mov dword [ecx + 0x1b8], edx
cmp dword [ebp - 0x684], 0
je 0x49e17c
mov dword [ebp - 0x644], 0
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x644]
push ecx
mov edx, dword [ebp - 0x630]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sym.Install_rocket.exe_public:_static_class_CNsZlib____cdecl_CNsZlib::Instance_void_
mov ecx, eax
call sym.Install_rocket.exe_public:_long_int___thiscall_CNsZlib::DecodeGZipBuffer_unsigned_char___long_int__unsigned_char____long_int__
cmp dword [ebp - 0x644], 0
je 0x49e17c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x644]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004332a0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 0x10]
mov byte [ecx], 0
mov edx, dword [ebp - 0x60c]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x1b8], eax
mov ecx, dword [ebp - 0x644]
push ecx
call fcn.00439647
add esp, 4
mov edx, dword [ebp - 0x620]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x624]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x614]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x688], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x618]
call fcn.00409680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x610]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x61c]
call fcn.00409680
mov eax, dword [ebp - 0x688]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e29e
mov esp, ebp
pop ebp
ret 0x10