Function at 0x49cad0
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 0x4b0f37
mov eax, dword fs:[0]
push eax
sub esp, 0x6c4
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 - 0x610], ecx
mov dword [ebp - 0x6a0], 0
mov dword [ebp - 0x6c8], 4
mov dword [ebp - 0x614], 0
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x620], 0
push 0
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.Agent_ld
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, dword [ebp - 0x610]
cmp dword [edx], 0
je 0x49cbb6
mov eax, dword [ebp - 0x610]
add eax, 0xcc
push eax
mov ecx, dword [ebp - 0x610]
add ecx, 4
push ecx
push str.HTTPHTTP:___s:_s
lea edx, [ebp - 0x608]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
lea eax, [ebp - 0x608]
push eax
push 3
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x614], eax
jmp 0x49cbf9
mov edx, dword [ebp - 0x630]
and edx, 4
jne 0x49cbde
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x614], eax
jmp 0x49cbf9
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x614], eax
cmp dword [ebp - 0x614], 0
jne 0x49cc48
push 0x4cf4f0
push 0x1b3
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6cc], esp
push 0x4cf51c
call fcn.00418700
mov dword [ebp - 0x69c], 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 0x49d5dd
push 4
mov edx, dword [ebp - 0x610]
add edx, 0x1bc
push edx
push 2
mov eax, dword [ebp - 0x614]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push str.http
lea ecx, [ebp - 0x61c]
call fcn.004096a0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x60c]
call fcn.004096a0
mov byte [ebp - 4], 2
push 0
push 0x4cf54c
lea ecx, [ebp - 0x60c]
call fcn.0040ddd0
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0
jle 0x49cd63
mov edx, dword [ebp - 0x628]
push edx
lea eax, [ebp - 0x698]
push eax
lea ecx, [ebp - 0x60c]
call fcn.00411360
mov dword [ebp - 0x690], eax
mov ecx, dword [ebp - 0x690]
mov dword [ebp - 0x694], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x694]
push edx
lea ecx, [ebp - 0x61c]
call fcn.00409610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x698]
call fcn.00409680
lea ecx, [ebp - 0x60c]
call fcn.004097f0
sub eax, dword [ebp - 0x628]
sub eax, 3
push eax
lea eax, [ebp - 0x654]
push eax
lea ecx, [ebp - 0x60c]
call fcn.00411420
mov dword [ebp - 0x64c], eax
mov ecx, dword [ebp - 0x64c]
mov dword [ebp - 0x650], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x650]
push edx
lea ecx, [ebp - 0x60c]
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 0x4cf554
lea ecx, [ebp - 0x60c]
call fcn.0040ddd0
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0
jle 0x49ce44
mov eax, dword [ebp - 0x628]
push eax
lea ecx, [ebp - 0x660]
push ecx
lea ecx, [ebp - 0x60c]
call fcn.00411360
mov dword [ebp - 0x658], eax
mov edx, dword [ebp - 0x658]
mov dword [ebp - 0x65c], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x65c]
push eax
lea ecx, [ebp - 0x618]
call fcn.00409610
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x660]
call fcn.00409680
lea ecx, [ebp - 0x60c]
call fcn.004097f0
sub eax, dword [ebp - 0x628]
push eax
lea ecx, [ebp - 0x66c]
push ecx
lea ecx, [ebp - 0x60c]
call fcn.00411420
mov dword [ebp - 0x664], eax
mov edx, dword [ebp - 0x664]
mov dword [ebp - 0x668], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x668]
push eax
lea ecx, [ebp - 0x60c]
call fcn.00409610
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x66c]
call fcn.00409680
jmp 0x49ce66
lea ecx, [ebp - 0x60c]
push ecx
lea ecx, [ebp - 0x618]
call fcn.00409610
push 0x4cf558
lea ecx, [ebp - 0x60c]
call fcn.004095c0
cmp dword [ebp + 0x1c], 0x50
jne 0x49ce87
push 0x4cf55c
lea ecx, [ebp - 0x61c]
call fcn.00418dd0
test eax, eax
jne 0x49ce87
mov dword [ebp + 0x1c], 0x1bb
mov dword [ebp - 0x634], 0
mov edx, dword [ebp - 0x610]
mov eax, dword [ebp - 0x634]
cmp eax, dword [edx + 0x1b0]
jge 0x49cfb7
push 0
push bind
push 3
push 0
push 0
movzx ecx, word [ebp + 0x1c]
push ecx
lea ecx, [ebp - 0x618]
call sym.Install_rocket.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov edx, dword [ebp - 0x614]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
je 0x49ceed
jmp 0x49cfb7
mov eax, dword [ebp - 0x634]
add eax, 1
mov dword [ebp - 0x634], eax
mov ecx, dword [ebp - 0x610]
mov edx, dword [ebp - 0x634]
cmp edx, dword [ecx + 0x1b0]
jl 0x49cf9f
push 0x4cf568
push 0x1e9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6b8], esp
push 0x4cf598
call fcn.00418700
mov dword [ebp - 0x6a4], 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 eax, dword [ebp - 0x614]
push eax
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 - 0x60c]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x61c]
call fcn.00409680
mov eax, dword [ebp - 0x670]
jmp 0x49d5dd
mov ecx, dword [ebp - 0x610]
mov edx, dword [ecx + 0x1b4]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49ce91
mov eax, dword [ebp - 0x610]
cmp dword [eax], 0
je 0x49d022
mov ecx, dword [ebp - 0x610]
add ecx, 0xe4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp - 0x610]
add edx, 0xe4
push edx
push 0x2b
mov eax, dword [ebp - 0x624]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebp - 0x610]
add ecx, 0x148
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp - 0x610]
add edx, 0x148
push edx
push 0x2c
mov eax, dword [ebp - 0x624]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x630], VariantCopy
push str.https
lea ecx, [ebp - 0x61c]
call fcn.00418dd0
test eax, eax
jne 0x49d052
mov ecx, dword [ebp - 0x630]
or ecx, 0x803000
mov dword [ebp - 0x630], ecx
push 0
mov edx, dword [ebp - 0x630]
push edx
push 0x4eb320
push 0
push str.HTTP_1.1
lea ecx, [ebp - 0x60c]
call sym.Install_rocket.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push str.POST
mov eax, dword [ebp - 0x624]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x620], eax
cmp dword [ebp - 0x620], 0
jne 0x49d130
push 0x4cf5e8
push 0x20a
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6a8], esp
push 0x4cf618
call fcn.00418700
mov dword [ebp - 0x6ac], 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 ecx, dword [ebp - 0x624]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x614]
push edx
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 - 0x60c]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x61c]
call fcn.00409680
mov eax, dword [ebp - 0x674]
jmp 0x49d5dd
push 0x3e8
push 0
lea eax, [ebp - 0x478]
push eax
call fcn.00432e20
add esp, 0xc
push str.Accept:__r_n
lea ecx, [ebp - 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Host:
lea edx, [ebp - 0x478]
push edx
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 eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4cf664
lea ecx, [ebp - 0x478]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.User_Agent:Mozilla_5.0__Windows_NT_6.1__r_n
lea edx, [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Content_Type:application_x_www_form_urlencoded_r_n
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xa0000000
push 0xffffffffffffffff
lea ecx, [ebp - 0x478]
push ecx
mov edx, dword [ebp - 0x620]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov dword [ebp - 0x648], eax
cmp dword [ebp - 0x648], 0
jne 0x49d26e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4cf790
push 0x21c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6b0], esp
push 0x4cf66c
call fcn.00418700
mov dword [ebp - 0x6b4], 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 - 0x60c]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x61c]
call fcn.00409680
mov eax, dword [ebp - 0x678]
jmp 0x49d5dd
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
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 0x49d321
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4cf808
push 0x223
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6d0], esp
push 0x4cf6e4
call fcn.00418700
mov dword [ebp - 0x6bc], 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 - 0x60c]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x61c]
call fcn.00409680
mov eax, dword [ebp - 0x67c]
jmp 0x49d5dd
mov eax, dword [ebp - 0x620]
push eax
mov ecx, dword [ebp - 0x610]
call sym.Install_rocket.exe_public:_int___thiscall_CNsNet::isGzip_void__
mov dword [ebp - 0x688], eax
mov dword [ebp - 0x638], 0x4000
mov ecx, dword [ebp - 0x638]
cmp ecx, dword [ebp + 0x18]
jl 0x49d35a
mov edx, dword [ebp + 0x18]
sub edx, 1
mov dword [ebp - 0x638], edx
mov dword [ebp - 0x62c], 0
mov eax, dword [ebp + 0x18]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00432e20
add esp, 0xc
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x640], edx
mov eax, dword [ebp - 0x610]
movzx ecx, byte [eax + 0x1ac]
test ecx, ecx
jne 0x49d4cb
mov edx, dword [ebp - 0x62c]
add edx, dword [ebp - 0x638]
cmp edx, dword [ebp + 0x18]
jge 0x49d4cb
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 0x49d497
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x680], eax
mov ecx, dword [ebp - 0x680]
push ecx
push 0x4cf858
push 0x238
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6c0], esp
push str.d:my2018_nslib_nscore_nsnet.cpp
call fcn.00418700
mov dword [ebp - 0x6c4], eax
mov byte [ebp - 4], 0xc
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 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 - 0x684], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x618]
call fcn.00409680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60c]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x61c]
call fcn.00409680
mov eax, dword [ebp - 0x684]
jmp 0x49d5dd
cmp dword [ebp - 0x63c], 0
jne 0x49d4a2
jmp 0x49d4cb
mov edx, dword [ebp - 0x62c]
add edx, dword [ebp - 0x63c]
mov dword [ebp - 0x62c], edx
mov eax, dword [ebp - 0x640]
add eax, dword [ebp - 0x63c]
mov dword [ebp - 0x640], eax
jmp 0x49d37f
mov ecx, dword [ebp - 0x640]
mov byte [ecx], 0
mov edx, dword [ebp - 0x610]
mov eax, dword [ebp - 0x62c]
mov dword [edx + 0x1b8], eax
cmp dword [ebp - 0x688], 0
jne 0x49d503
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0043c190
add esp, 4
cmp dword [ebp - 0x62c], eax
je 0x49d576
mov dword [ebp - 0x644], 0
lea edx, [ebp + 0x18]
push edx
lea eax, [ebp - 0x644]
push eax
mov ecx, dword [ebp - 0x62c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
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 0x49d576
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x644]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.004332a0
add esp, 0xc
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov byte [eax], 0
mov ecx, dword [ebp - 0x610]
mov edx, dword [ebp + 0x18]
mov dword [ecx + 0x1b8], edx
mov eax, dword [ebp - 0x644]
push eax
call fcn.00439647
add esp, 4
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 - 0x68c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x618]
call fcn.00409680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60c]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x61c]
call fcn.00409680
mov eax, dword [ebp - 0x68c]
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 0x18