Function at 0x412dc6
Capabilities:
Connect to http server
Create http request

Disassembly:
mov eax, 0x429fb9
call fcn.004271f0
sub esp, 0x68
push ebx
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.004144eb
push dword [ebp + 8]
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041466b
add esp, 0x10
cmp dword [ebp - 0x50], ebx
mov byte [ebp - 4], 1
je 0x412f88
cmp dword [ebp - 0x40], ebx
je 0x412f88
mov byte [ebp + 0xb], bl
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x38], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [0x43b004]
mov byte [ebp - 4], 4
cmp eax, ebx
jne 0x412e36
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x412f09
mov eax, dword [ebp - 0x54]
cmp eax, ebx
jne 0x412e58
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x412ee1
mov eax, dword [ebp - 0x44]
cmp eax, ebx
jne 0x412e84
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push 0x400000
push ebx
push ebx
push ebx
push eax
push 0x4383e4
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x412eba
lea eax, [ebp - 0x10]
push eax
call fcn.00413989
pop ecx
mov dword [ebp - 0x20], eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
call esi
jmp 0x412eda
mov edx, str.Request_cannot_be_completed_on_current_url.
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov byte [ebp + 0xb], 1
push dword [ebp - 0x14]
call esi
jmp 0x412f01
mov edx, str.Cannot_connect_to_server.
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov byte [ebp + 0xb], 1
push dword [ebp - 0x18]
call esi
pop esi
jmp 0x412f29
mov edx, str.Cannot_initialize_library.
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov byte [ebp + 0xb], 1
cmp byte [ebp + 0xb], bl
je 0x412f48
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x74]
push eax
call fcn.00412ca4
lea eax, [ebp - 0x74]
push 0x4310d8
push eax
call sub.MSVCRT.dll__CxxThrowException
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, str.Cannot_get_file_size__bad_URL.
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_void_]
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x68]
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp - 0x74]
push 0x4310d8
push eax
mov dword [ebp - 0x74], vtable.HttpDownloaderException.0
mov byte [ebp - 4], 2
call sub.MSVCRT.dll__CxxThrowException