Function at 0x4211c9
Capabilities:
Check http status code

Disassembly:
push 0x1c
mov eax, 0x488630
call fcn.00464e48
mov esi, ecx
mov dword [ebp - 0x20], esi
xor ebx, ebx
mov dword [ebp - 0x14], 0xff
push 0x200
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], 4
call fcn.0044a8a2
mov edi, eax
mov eax, dword [ebp - 0x14]
pop ecx
inc eax
mov dword [ebp - 0x1c], edi
push eax
push ebx
push edi
call fcn.00466990
add esp, 0xc
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4213fa
cmp dword [ebp - 0x18], 0x197
jne 0x421236
push 0x29
jmp 0x421245
cmp dword [ebp - 0x18], 0x191
jne 0x4213d2
push 0x28
pop esi
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4212b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4212b1
push edi
call fcn.0044a89d
mov eax, dword [ebp - 0x14]
pop ecx
xor ecx, ecx
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044a8a2
mov edi, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
pop ecx
inc eax
push eax
push ebx
push edi
call fcn.00466990
add esp, 0xc
lea eax, [ebp - 0x14]
push ebx
push eax
push edi
push esi
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4213fa
push edi
lea ecx, [ebp - 0x10]
call fcn.0040279b
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x10]
movzx eax, word [esi]
push eax
call fcn.0046e0be
pop ecx
test eax, eax
je 0x4212e8
push 2
pop edi
add esi, edi
movzx eax, word [esi]
push eax
call fcn.0046e0be
pop ecx
test eax, eax
jne 0x4212d5
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
cmp esi, eax
je 0x421337
push dword [eax - 0xc]
sub esi, eax
lea ecx, [ebp - 0x10]
sar esi, 1
mov dword [ebp - 0x20], esi
call fcn.00402b5d
mov edi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
lea edx, [edi + esi*2]
mov esi, ecx
sub esi, dword [ebp - 0x20]
lea eax, [esi*2 + 2]
push eax
push edx
lea eax, [ecx*2 + 2]
push eax
push edi
call fcn.0040974e
add esp, 0x10
lea ecx, [ebp - 0x10]
push esi
call fcn.00402bea
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.0040ac0a
push str.Authentication_scheme:
lea ecx, [ebp - 0x20]
call fcn.0040279b
push 2
pop eax
mov byte [ebp - 4], al
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x10]
xor ecx, ecx
push ebx
push eax
inc ecx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402def
push ebx
push str.basic
lea ecx, [ebp - 0x10]
call fcn.0040920e
test eax, eax
je 0x4213c7
push ebx
push str.digest
lea ecx, [ebp - 0x10]
call fcn.0040920e
test eax, eax
je 0x4213c7
push str.Authentication_scheme_is_other_than_basic_or_digest....
lea ecx, [ebp - 0x1c]
call fcn.0040279b
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
xor ecx, ecx
lea edx, [ebp - 0x1c]
push ebx
push eax
inc ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x4213ca
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
jmp 0x4213f5
push str.Status_says_No_Authentication_required...
lea ecx, [ebp - 0x20]
call fcn.0040279b
xor ecx, ecx
mov dword [ebp - 4], ebx
push ebx
lea edx, [ebp - 0x20]
inc ecx
call fcn.00413e51
pop ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402def
push edi
call fcn.0044a89d
pop ecx
mov eax, ebx
call fcn.00464e11
ret