Function at 0x49cad0
Capabilities:
Check http status code
Check internet connectivity via wininet
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1710
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x4eb00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x244], 0
push 0
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4cf0e0
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, dword [ebp - 0x228]
cmp dword [edx], 0
je 0x49cbac
mov eax, dword [ebp - 0x228]
add eax, 0xcc
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 4
push ecx
push 0x4cf0f4
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
lea eax, [ebp - 0x220]
push eax
push 3
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x22c], eax
jmp 0x49cbef
mov edx, dword [ebp - 0x240]
and edx, 4
jne 0x49cbd4
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x22c], eax
jmp 0x49cbef
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x49cbff
xor eax, eax
jmp 0x49d0d1
push 0x4cf118
lea ecx, [ebp - 0x23c]
call fcn.004096a0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x224]
call fcn.004096a0
mov byte [ebp - 4], 1
push 0
push 0x4cf124
lea ecx, [ebp - 0x224]
call fcn.0040ed80
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jle 0x49ccfc
mov eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00411df0
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x254], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00409610
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.00409680
lea ecx, [ebp - 0x224]
call fcn.004097f0
sub eax, dword [ebp - 0x230]
sub eax, 3
push eax
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00411eb0
mov dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x260], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x260]
push eax
lea ecx, [ebp - 0x224]
call fcn.00409610
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.00409680
lea ecx, [ebp - 0x238]
call fcn.004097c0
mov byte [ebp - 4], 4
push 0
push 0x4cf12c
lea ecx, [ebp - 0x224]
call fcn.0040ed80
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jle 0x49cddd
mov ecx, dword [ebp - 0x230]
push ecx
lea edx, [ebp - 0x270]
push edx
lea ecx, [ebp - 0x224]
call fcn.00411df0
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.00409610
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x270]
call fcn.00409680
lea ecx, [ebp - 0x224]
call fcn.004097f0
sub eax, dword [ebp - 0x230]
push eax
lea edx, [ebp - 0x27c]
push edx
lea ecx, [ebp - 0x224]
call fcn.00411eb0
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00409610
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.00409680
jmp 0x49cdff
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x238]
call fcn.00409610
push 0x4cf130
lea ecx, [ebp - 0x224]
call fcn.004095c0
cmp dword [ebp + 0xc], 0x50
jne 0x49ce20
push 0x4cf134
lea ecx, [ebp - 0x23c]
call fcn.00419520
test eax, eax
jne 0x49ce20
mov dword [ebp + 0xc], 0x1bb
push 0
push 0x200
push 3
push 0
push 0
movzx eax, word [ebp + 0xc]
push eax
lea ecx, [ebp - 0x238]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x49ceac
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x280], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.00409680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.00409680
mov eax, dword [ebp - 0x280]
jmp 0x49d0d1
mov eax, dword [ebp - 0x228]
cmp dword [eax], 0
je 0x49cf17
mov ecx, dword [ebp - 0x228]
add ecx, 0xe4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp - 0x228]
add edx, 0xe4
push edx
push 0x2b
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebp - 0x228]
add ecx, 0x148
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp - 0x228]
add edx, 0x148
push edx
push 0x2c
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x240], 0x400200
push 0x4cf140
lea ecx, [ebp - 0x23c]
call fcn.00419520
test eax, eax
jne 0x49cf53
mov ecx, dword [ebp - 0x240]
or ecx, 0x800000
or ecx, 0x1000
or ecx, 0x2000
mov dword [ebp - 0x240], ecx
push 0
mov edx, dword [ebp - 0x240]
push edx
push 0x4ec330
push 0
push 0x4cf14c
lea ecx, [ebp - 0x224]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cf160
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
jne 0x49cff4
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x284], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.00409680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.00409680
mov eax, dword [ebp - 0x284]
jmp 0x49d0d1
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x49d068
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x288], 4
push 0
lea ecx, [ebp - 0x288]
push ecx
lea edx, [ebp - 0x24c]
push edx
push 0x20000013
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x49d068
cmp dword [ebp - 0x24c], 0xc8
je 0x49d068
mov dword [ebp - 0x248], 0
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x28c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.00409680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.00409680
mov eax, dword [ebp - 0x28c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e9de
mov esp, ebp
pop ebp
ret 8