Function at 0x49b370
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 0x4aa700
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x4e100c]
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 0x4c7e60
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 0x49b44c
mov eax, dword [ebp - 0x228]
add eax, 0xcc
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 4
push ecx
push 0x4c7e74
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 0x49b48f
mov edx, dword [ebp - 0x240]
and edx, 4
jne 0x49b474
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 0x49b48f
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 0x49b49f
xor eax, eax
jmp 0x49b971
push 0x4c7e98
lea ecx, [ebp - 0x23c]
call fcn.004093e0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x224]
call fcn.004093e0
mov byte [ebp - 4], 1
push 0
push 0x4c7ea4
lea ecx, [ebp - 0x224]
call fcn.0040f3c0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jle 0x49b59c
mov eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00412440
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.00409350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.004093c0
lea ecx, [ebp - 0x224]
call fcn.00409530
sub eax, dword [ebp - 0x230]
sub eax, 3
push eax
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00412500
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.00409350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.004093c0
lea ecx, [ebp - 0x238]
call fcn.00409500
mov byte [ebp - 4], 4
push 0
push 0x4c7eac
lea ecx, [ebp - 0x224]
call fcn.0040f3c0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jle 0x49b67d
mov ecx, dword [ebp - 0x230]
push ecx
lea edx, [ebp - 0x270]
push edx
lea ecx, [ebp - 0x224]
call fcn.00412440
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.00409350
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x270]
call fcn.004093c0
lea ecx, [ebp - 0x224]
call fcn.00409530
sub eax, dword [ebp - 0x230]
push eax
lea edx, [ebp - 0x27c]
push edx
lea ecx, [ebp - 0x224]
call fcn.00412500
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.00409350
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.004093c0
jmp 0x49b69f
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x238]
call fcn.00409350
push 0x4c7eb0
lea ecx, [ebp - 0x224]
call fcn.00409300
cmp dword [ebp + 0xc], 0x50
jne 0x49b6c0
push 0x4c7eb4
lea ecx, [ebp - 0x23c]
call fcn.00419b70
test eax, eax
jne 0x49b6c0
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 0x49b74c
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.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004093c0
mov eax, dword [ebp - 0x280]
jmp 0x49b971
mov eax, dword [ebp - 0x228]
cmp dword [eax], 0
je 0x49b7b7
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 0x4c7ec0
lea ecx, [ebp - 0x23c]
call fcn.00419b70
test eax, eax
jne 0x49b7f3
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 0x4e2330
push 0
push 0x4c7ecc
lea ecx, [ebp - 0x224]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c7ee0
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 0x49b894
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.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004093c0
mov eax, dword [ebp - 0x284]
jmp 0x49b971
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 0x49b908
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 0x49b908
cmp dword [ebp - 0x24c], 0xc8
je 0x49b908
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.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004093c0
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.0042eb1e
mov esp, ebp
pop ebp
ret 8