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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fadb
mov eax, dword fs:[0]
push eax
sub esp, 0x924
mov eax, dword [0x45d070]
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
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
mov dword [ebp - 0x8ec], edi
mov dword [ebp - 0x8f0], 0
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x468], ax
lea eax, [ebp - 0x466]
push eax
call sub.MSVCR110.dll_memset
push 0x3c
lea eax, [ebp - 0x8d8]
push 0
push eax
call sub.MSVCR110.dll_memset
lea eax, [ebp - 0x260]
mov dword [ebp - 0x8c8], eax
lea eax, [ebp - 0x468]
add esp, 0x24
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x8ac], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x8d8], 0x3c
mov dword [ebp - 0x8a4], 0
mov dword [ebp - 0x8a0], 0
mov dword [ebp - 0x8c4], 0x103
mov dword [ebp - 0x8b4], 0
mov dword [ebp - 0x8b0], 0
mov dword [ebp - 0x8d4], 0
mov dword [ebp - 0x8d0], 0
mov dword [ebp - 0x8a8], 0x103
jb 0x416920
mov ebx, dword [ebx]
lea ecx, [ebp - 0x8d8]
push ecx
push SysReAllocString
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x416956
push eax
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], eax
push 0x446923
mov ecx, edi
mov byte [edi], al
call fcn.004054c0
jmp 0x416c72
mov dword [ebp - 0x8e4], 0
mov dword [ebp - 0x8e0], 0
mov byte [ebp - 0x8d9], 1
mov dword [ebp - 0x87c], 0xf
mov dword [ebp - 0x880], 0
mov byte [ebp - 0x890], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x41699f
mov esi, dword [esi]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x8e8], eax
test eax, eax
jne 0x4169e6
lea eax, [ebp - 0x86c]
push eax
lea ecx, [ebp - 0x8fc]
mov dword [ebp - 0x86c], str.Internet_Open_Failed_
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x451704
lea eax, [ebp - 0x8fc]
push eax
call sub.MSVCR110.dll__CxxThrowException
push 0
push 0
push 3
push 0x4450f0
push 0x4450f0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x8e4], eax
test eax, eax
jne 0x416a3f
lea eax, [ebp - 0x86c]
push eax
lea ecx, [ebp - 0x908]
mov dword [ebp - 0x86c], str.Internet_Connect_Failed_
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x451704
lea eax, [ebp - 0x908]
push eax
call sub.MSVCR110.dll__CxxThrowException
push 0
push 0x80000100
push 0
push 0
push str.HTTP_1.0
lea ecx, [ebp - 0x468]
push ecx
push 0x4468d8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
mov dword [ebp - 0x8e0], ebx
test ebx, ebx
jne 0x416a9c
lea eax, [ebp - 0x86c]
push eax
lea ecx, [ebp - 0x914]
mov dword [ebp - 0x86c], str.Http_Open_Failed_
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x451704
lea eax, [ebp - 0x914]
push eax
call sub.MSVCR110.dll__CxxThrowException
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
lea eax, [ebp - 0x86c]
jne 0x416add
push eax
lea ecx, [ebp - 0x92c]
mov dword [ebp - 0x86c], str.Http_Send_Request_Failed_
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x451704
lea eax, [ebp - 0x92c]
push eax
call sub.MSVCR110.dll__CxxThrowException
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0
push eax
lea eax, [ebp - 0x878]
push eax
push 0x20000013
push ebx
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x86c], 4
call esi
test eax, eax
jne 0x416b3b
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0x920]
mov dword [ebp - 0x870], str.Http_query_Failed_
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x451704
lea eax, [ebp - 0x920]
push eax
call sub.MSVCR110.dll__CxxThrowException
push 0
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x58]
push eax
push 5
push ebx
mov dword [ebp - 0x874], 0x40
call esi
test eax, eax
je 0x416b6c
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVCR110.dll__wtol]
add esp, 4
mov esi, eax
jmp 0x416b71
mov esi, 0x400
mov dword [ebp - 0x86c], 0
mov ecx, 0x400
mov eax, esi
cmp esi, 0x400
cmovae eax, ecx
lea ecx, [ebp - 0x870]
push ecx
push eax
lea eax, [ebp - 0x868]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x416bb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x8d9], 0
jmp 0x416c15
mov eax, dword [ebp - 0x870]
add dword [ebp - 0x86c], eax
sub esi, eax
test eax, eax
je 0x416c15
push eax
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x890]
call fcn.00403630
mov ecx, 0x400
test esi, esi
jg 0x416b80
jmp 0x416c15
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x416c29
push ebx
call esi
mov eax, dword [ebp - 0x8e4]
test eax, eax
je 0x416c36
push eax
call esi
mov eax, dword [ebp - 0x8e8]
test eax, eax
je 0x416c43
push eax
call esi
mov al, byte [ebp - 0x8d9]
mov ecx, edi
test al, al
je 0x416c5d
lea eax, [ebp - 0x890]
push eax
call fcn.004061f0
jmp 0x416c67
push 0x446923
call fcn.004055c0
lea ecx, [ebp - 0x890]
call fcn.00406260
mov eax, edi
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.0043bd5c
mov esp, ebp
pop ebp
ret