Function at 0x491b80
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef2ca
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x484
mov eax, dword [0x56f734]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x43c]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x424], 0
lea ecx, [ebp - 0x424]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x434]
push eax
call fcn.00492f10
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x444], 0xa4200000
mov dword [ebp - 0x45c], 0xffffffff
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x47c]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.mfc120u.dll_Ordinal_2290
test eax, eax
jne 0x491c84
mov dword [ebp - 0x468], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov eax, dword [ebp - 0x468]
jmp 0x49206b
movzx eax, word [ebp - 0x42c]
cmp eax, 0x1bb
jne 0x491ca4
mov ecx, dword [ebp - 0x444]
or ecx, 0x800000
mov dword [ebp - 0x444], ecx
push 0
push 0
push 0
push 0
push 0x52acfc
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
je 0x492012
mov dword [ebp - 0x454], 1
push 4
lea edx, [ebp - 0x454]
push edx
push 0x41
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x448], eax
push 0
mov ecx, dword [ebp - 0x444]
push ecx
push 3
push 0
push 0
movzx edx, word [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x43c]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
je 0x492005
push 0
mov ecx, dword [ebp - 0x444]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x438]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push str.POST
mov edx, dword [ebp - 0x44c]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
je 0x491ff8
lea ecx, [ebp - 0x428]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 2
push str.Accept_encoding:_gzip_n
lea ecx, [ebp - 0x428]
call dword [sym.imp.mfc120u.dll_Ordinal_1520]
cmp dword [ebp + 0xc], 0
je 0x491dd0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x491dd0
push 0x52ad40
lea ecx, [ebp - 0x428]
call dword [sym.imp.mfc120u.dll_Ordinal_1687]
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x428]
call dword [sym.imp.mfc120u.dll_Ordinal_1687]
mov edx, dword [ebp - 0x434]
push edx
mov eax, dword [ebp - 0x424]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x428]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
je 0x491fdb
mov dword [ebp - 0x41c], 0
lea ecx, [ebp - 0x474]
call sub.mfc120u.dll_Ordinal_321
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
push 0x9021
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x494]
call sub.mfc120u.dll_Ordinal_968
mov byte [ebp - 4], 5
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x41c], 0
lea eax, [ebp - 0x41c]
push eax
push 0x400
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x491f1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0x2f8f
jne 0x491f1f
mov dword [ebp - 0x454], 0
push 4
lea eax, [ebp - 0x454]
push eax
push 0x41
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x448], eax
mov edx, dword [ebp - 0x434]
push edx
mov eax, dword [ebp - 0x424]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
je 0x491f1f
lea eax, [ebp - 0x41c]
push eax
push 0x400
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x41c], 0
jbe 0x491f6e
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0x401
jae 0x491f42
jmp 0x491f47
call fcn.004dfc08
mov ecx, dword [ebp - 0x458]
mov byte [ebp + ecx - 0x418], 0
mov edx, dword [ebp - 0x41c]
push edx
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x494]
call sub.mfc120u.dll_Ordinal_14482
cmp dword [ebp - 0x440], 0
je 0x491f84
cmp dword [ebp - 0x41c], 0
ja 0x491e4c
lea ecx, [ebp - 0x494]
call sub.mfc120u.dll_Ordinal_2857
mov dword [ebp - 0x45c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x494]
call sub.mfc120u.dll_Ordinal_1444
jmp 0x491fbc
mov dword [ebp - 4], 3
jmp 0x491fcc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x474]
call fcn.00475450
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x428]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov eax, dword [ebp - 0x44c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x424], 0
je 0x492036
mov edx, dword [ebp - 0x424]
mov dword [ebp - 0x460], edx
mov eax, dword [ebp - 0x460]
push eax
call sub.mfc120u.dll_Ordinal_266
add esp, 4
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x464], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov eax, dword [ebp - 0x464]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004df9ac
mov esp, ebp
pop ebp
ret 0x10