Function at 0x49c3c0
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 0x4b0e80
mov eax, dword fs:[0]
push eax
sub esp, 0x284
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 - 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 0x4cf0c0
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 0x49c49c
mov eax, dword [ebp - 0x228]
add eax, 0xcc
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 4
push ecx
push 0x4cf0d4
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 0x49c4df
mov edx, dword [ebp - 0x240]
and edx, 4
jne 0x49c4c4
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 0x49c4df
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 0x49c4ef
xor eax, eax
jmp 0x49c9c1
push 0x4cf0f8
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 0x4cf104
lea ecx, [ebp - 0x224]
call fcn.0040ddd0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jle 0x49c5ec
mov eax, dword [ebp - 0x230]
push eax
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00411360
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.00411420
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 0x4cf10c
lea ecx, [ebp - 0x224]
call fcn.0040ddd0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jle 0x49c6cd
mov ecx, dword [ebp - 0x230]
push ecx
lea edx, [ebp - 0x270]
push edx
lea ecx, [ebp - 0x224]
call fcn.00411360
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.00411420
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 0x49c6ef
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x238]
call fcn.00409610
push 0x4cf110
lea ecx, [ebp - 0x224]
call fcn.004095c0
cmp dword [ebp + 0xc], 0x50
jne 0x49c710
push 0x4cf114
lea ecx, [ebp - 0x23c]
call fcn.00418dd0
test eax, eax
jne 0x49c710
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_rocket.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 0x49c79c
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 0x49c9c1
mov eax, dword [ebp - 0x228]
cmp dword [eax], 0
je 0x49c807
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 0x4cf120
lea ecx, [ebp - 0x23c]
call fcn.00418dd0
test eax, eax
jne 0x49c843
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 0x4eb330
push 0
push 0x4cf12c
lea ecx, [ebp - 0x224]
call sym.Install_rocket.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4cf140
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 0x49c8e4
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 0x49c9c1
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 0x49c958
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 0x49c958
cmp dword [ebp - 0x24c], 0xc8
je 0x49c958
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.0042e29e
mov esp, ebp
pop ebp
ret 8