Function at 0x40a488
Capabilities:
Check http status code

Disassembly:
push 0xc0
mov eax, 0x4357ac
call fcn.0041d834
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.wininet.dll_HttpQueryInfoW]
xor ebx, ebx
push ebx
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xc0]
push eax
mov esi, ecx
push 0x20000013
push dword [esi + 8]
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xc8], 4
call edi
test eax, eax
je 0x40a4e9
cmp dword [ebp - 0xc0], 0xc8
je 0x40a4f0
xor al, al
jmp 0x40a6f6
push ebx
lea eax, [ebp - 0xbc]
push eax
push ebx
push 0x16
push dword [esi + 8]
call edi
mov eax, dword [ebp - 0xbc]
cmp eax, ebx
jbe 0x40a4e9
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408ace
mov ebx, eax
mov eax, dword [ebp - 0xbc]
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0
push ebx
call dword [sym.imp.MSVCR100.dll_memset]
add esp, 0xc
push 0
lea eax, [ebp - 0xbc]
push eax
push ebx
push 0x16
push dword [esi + 8]
call edi
test eax, eax
je 0x40a4e9
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00408ace
and dword [ebp - 4], 0
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov ebx, dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
mov edi, 0x43dca0
jmp 0x40a6d1
push edi
call ebx
pop ecx
push eax
push edi
lea eax, [ebp - 0x2c]
call fcn.00408ace
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x48]
call fcn.00408ace
mov esi, 0x43dca8
push esi
mov byte [ebp - 4], 1
call ebx
pop ecx
push eax
push esi
lea eax, [ebp - 0x48]
call fcn.00408ace
cmp eax, 0xffffffff
je 0x40a685
push esi
call ebx
pop ecx
push eax
push esi
lea eax, [ebp - 0x48]
call fcn.00408ace
push eax
push 0
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x9c]
call fcn.00408ace
mov edi, esi
mov byte [ebp - 4], 2
call fcn.004134bc
mov esi, 0x43dca8
push esi
call ebx
pop ecx
push eax
push esi
lea eax, [ebp - 0x48]
call fcn.00408ace
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x48]
push eax
lea esi, [ebp - 0x64]
call fcn.00408ace
mov edi, esi
mov byte [ebp - 4], 3
call fcn.004134bc
mov eax, esi
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004065d0
mov edi, eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 4
call fcn.004065d0
add esp, 0x10
mov esi, dword [ebp - 0xc4]
push eax
mov byte [ebp - 4], 5
call fcn.004026fd
push edi
mov ecx, eax
call fcn.00408ace
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp - 0xb8]
call fcn.00408ace
push esi
push edi
lea ecx, [ebp - 0x80]
call fcn.00408ace
push esi
push edi
lea ecx, [ebp - 0x64]
call fcn.00408ace
push esi
push edi
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.00408ace
mov edi, 0x43dca0
push edi
call ebx
pop ecx
push eax
push edi
lea eax, [ebp - 0x2c]
call fcn.00408ace
push 0xffffffffffffffff
add eax, 2
push eax
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x80]
call fcn.00408ace
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00408ace
push 0
push 1
mov ecx, esi
call fcn.00408ace
push edi
call ebx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00408ace
push edi
call ebx
pop ecx
push eax
push edi
lea eax, [ebp - 0x2c]
call fcn.00408ace
cmp eax, 0xffffffff
jne 0x40a573
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408ace
mov al, 1
call fcn.0041d8b7
ret 4