Function at 0x49d250
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 0x4b1ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x4ec00c]
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 0x4d0100
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 0x49d32c
mov eax, dword [ebp - 0x228]
add eax, 0xcc
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 4
push ecx
push 0x4d0114
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 0x49d36f
mov edx, dword [ebp - 0x240]
and edx, 4
jne 0x49d354
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 0x49d36f
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 0x49d37f
xor eax, eax
jmp 0x49d851
push 0x4d0138
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 0x4d0144
lea ecx, [ebp - 0x224]
call fcn.0040f4b0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jle 0x49d47c
mov eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00412520
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.004125e0
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 0x4d014c
lea ecx, [ebp - 0x224]
call fcn.0040f4b0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jle 0x49d55d
mov ecx, dword [ebp - 0x230]
push ecx
lea edx, [ebp - 0x270]
push edx
lea ecx, [ebp - 0x224]
call fcn.00412520
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.004125e0
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 0x49d57f
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x238]
call fcn.00409610
push 0x4d0150
lea ecx, [ebp - 0x224]
call fcn.004095c0
cmp dword [ebp + 0xc], 0x50
jne 0x49d5a0
push 0x4d0154
lea ecx, [ebp - 0x23c]
call fcn.00419c50
test eax, eax
jne 0x49d5a0
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_adv.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 0x49d62c
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 0x49d851
mov eax, dword [ebp - 0x228]
cmp dword [eax], 0
je 0x49d697
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 0x4d0160
lea ecx, [ebp - 0x23c]
call fcn.00419c50
test eax, eax
jne 0x49d6d3
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 0x4ed330
push 0
push 0x4d016c
lea ecx, [ebp - 0x224]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4d0180
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 0x49d774
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 0x49d851
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 0x49d7e8
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 0x49d7e8
cmp dword [ebp - 0x24c], 0xc8
je 0x49d7e8
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.0042f10e
mov esp, ebp
pop ebp
ret 8