Function at 0x408495
Capabilities:
Check http status code

Disassembly:
push 0xc0
mov eax, 0x431306
call fcn.0042e04d
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor ebx, ebx
push ebx
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
mov edi, ecx
push 0x20000013
push dword [edi + 8]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x8c], 4
call esi
test eax, eax
je 0x4084f6
cmp dword [ebp - 0x84], 0xc8
je 0x4084fd
xor al, al
jmp 0x408704
push ebx
lea eax, [ebp - 0x88]
push eax
push ebx
push 0x16
push dword [edi + 8]
call esi
mov eax, dword [ebp - 0x88]
cmp eax, ebx
jbe 0x4084f6
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a0b4
pop ecx
mov ecx, dword [ebp - 0x88]
lea ecx, [ecx + ecx + 2]
push ecx
push ebx
push eax
mov dword [ebp - 0x84], eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x84]
push 0x16
push dword [edi + 8]
call esi
test eax, eax
je 0x4084f6
push dword [ebp - 0x84]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], ebx
push dword [ebp - 0x84]
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
mov esi, 0x437f68
jmp 0x4086e2
push ebx
push esi
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
push eax
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push ebx
mov edi, 0x437f70
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
cmp eax, 0xffffffff
je 0x408688
push ebx
push edi
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
push eax
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00410670
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [ebp - 0x48]
push ebx
push edi
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
inc eax
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.00410670
mov edi, esi
lea ecx, [ebp - 0xac]
call fcn.0040612e
mov esi, eax
lea edi, [ebp - 0x64]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
call fcn.0040612e
push esi
mov esi, dword [ebp - 0x90]
push eax
mov byte [ebp - 4], 5
call fcn.0040261d
mov ecx, eax
call dword [0x43317c]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, edi
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, 0x437f68
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [ebp - 0x2c]
push ebx
push esi
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
inc eax
inc eax
push eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call dword [0x433208]
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebx
push esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebx
push esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
lea ecx, [ebp - 0x2c]
cmp eax, 0xffffffff
jne 0x408589
or dword [ebp - 4], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
call fcn.0042e0d0
ret 4