Function at 0x530370
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x14], eax
push esi
push edi
mov dword [esp + 0x10], ebx
jne 0x53039b
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edi, edi
lea eax, [esp + 0x20]
call fcn.00487150
mov esi, dword [ebp + 8]
cmp esi, edi
jne 0x5303bf
mov eax, dword [ebx + 0x5c]
cmp dword [eax + 4], 4
jl 0x5303bf
lea ecx, [esp + 0x20]
mov dword [ebp + 8], ecx
mov esi, ecx
lea edx, [ebx + 0xb8]
push edx
call fcn.00495ac0
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push esi
call edx
cmp eax, 0xf4242
mov dword [esp + 0x1c], eax
je 0x53056b
cmp byte [ebx + 0xa0], 0
je 0x53056b
cmp esi, edi
je 0x53056b
cmp dword [esi], edi
je 0x53056b
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov eax, 0x10
mov edi, str.Content_encoding
lea ecx, [esp + 0x14]
call fcn.00459750
mov eax, dword [ebx]
mov eax, dword [eax + 0x70]
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call eax
lea edi, [esp + 0x14]
call fcn.00401700
mov eax, dword [esp + 0x18]
test eax, eax
je 0x530560
lea edi, [eax + 4]
mov edx, str.gzip
cmp edi, edx
je 0x5304ac
test edi, edi
je 0x530560
jmp 0x530460
mov cl, byte [edi]
test cl, cl
je 0x53049a
mov al, byte [edx]
cmp al, 0x41
jl 0x530472
cmp al, 0x5a
jg 0x530472
add al, 0x20
cmp cl, 0x41
jl 0x53047f
cmp cl, 0x5a
jg 0x53047f
add cl, 0x20
cmp al, cl
jl 0x530560
jg 0x530560
add edx, 1
add edi, 1
cmp byte [edx], 0
jne 0x530460
jmp 0x5304a3
cmp byte [edx], 0
jne 0x530560
cmp byte [edi], 0
jne 0x530560
mov eax, 0x18
mov edi, str.GZip_detected__inflating
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.00459750
mov ecx, dword [ebx + 0x5c]
push ecx
lea eax, [esp + 0x18]
mov ecx, 4
call fcn.00544020
lea edi, [esp + 0x14]
call fcn.00401700
mov ebx, esi
call fcn.00532a50
test eax, eax
jne 0x5304fd
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov dword [eax + 0xb0], edx
mov ebx, eax
jmp 0x530560
xor esi, esi
lea eax, [esi + 0x1b]
mov edi, str.Failed_to_inflate_GZip_data
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.00459750
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 0xa8]
mov eax, dword [ebx + 0x5c]
lea ecx, [esp + 0x14]
push ecx
push 1
call fcn.005440a0
lea edi, [esp + 0x14]
call fcn.00401700
lea eax, [esi + 0x1b]
mov edi, str.Failed_to_inflate_GZIP_data
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.00459750
lea esi, [esp + 0x14]
mov eax, ebx
call fcn.0052fce0
mov edi, esi
call fcn.00401700
mov esi, dword [ebp + 8]
lea edi, [esp + 0x18]
call fcn.00401700
xor edi, edi
mov edx, dword [ebx + 0x5c]
cmp dword [edx + 4], 4
jl 0x530691
cmp dword [esi], edi
mov byte [esp + 0xf], 0
je 0x53065f
mov ecx, ebx
call fcn.005322f0
test al, al
je 0x53059d
mov eax, dword [ebx + 0x5c]
cmp dword [eax + 4], 5
jl 0x53065f
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov eax, 0xc
mov edi, str.Content_type
lea ecx, [esp + 0x18]
call fcn.00459750
mov edx, dword [ebx]
mov edx, dword [edx + 0x70]
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call edx
lea edi, [esp + 0x18]
call fcn.00401700
mov eax, str.image
lea ecx, [esp + 0x10]
call fcn.0045a270
test al, al
jne 0x53064d
mov eax, dword [esi]
mov edi, dword [esi + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.00459750
mov eax, 0x13
mov edi, str.Received_response:_n
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.00459750
mov ecx, dword [ebx + 0xa8]
mov esi, dword [ebx + 0x5c]
lea eax, [esp + 0x14]
push eax
push ecx
push 4
lea ecx, [esp + 0x24]
call fcn.00543fa0
lea edi, [esp + 0x18]
call fcn.00401700
lea edi, [esp + 0x14]
mov byte [esp + 0xf], 1
call fcn.00401700
mov esi, dword [ebp + 8]
lea edi, [esp + 0x10]
call fcn.00401700
cmp byte [esp + 0xf], 0
jne 0x530691
xor edi, edi
mov edx, dword [esi]
push edx
push str.Received_response___d_bytes_
lea esi, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.00407380
mov edx, dword [ebx + 0xa8]
add esp, 8
mov eax, esi
push eax
mov eax, dword [ebx + 0x5c]
push 4
call fcn.005440a0
mov edi, esi
call fcn.00401700
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
call eax
xor esi, esi
cmp dword [ebx + 0x58], esi
mov edi, eax
mov dword [esp + 0x18], edi
je 0x5306ae
push ebx
call fcn.005311c0
mov ecx, dword [ebx + 0x5c]
push esi
push ebx
push ecx
mov dword [ebx + 0x10], esi
mov dword [ebx + 0xc], esi
call fcn.00543b40
cmp dword [esp + 0x1c], esi
jne 0x5307b3
lea edx, [edi - 0xc8]
cmp edx, 0xc7
ja 0x5306eb
lea esi, [esp + 0x20]
call fcn.00487190
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov edx, dword [eax + 0x5c]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
mov dword [esp + 0x14], esi
call edx
mov eax, dword [eax]
cmp eax, esi
je 0x530717
lea ecx, [eax + 4]
cmp ecx, esi
je 0x530717
cmp eax, esi
je 0x530713
add eax, 4
jmp 0x53071c
xor eax, eax
jmp 0x53071c
mov eax, 0x67b348
push eax
push edi
push str.HTTP_Error__d____s
lea esi, [esp + 0x1c]
call fcn.00407380
add esp, 0xc
lea edi, [esp + 0x1c]
call fcn.00401700
mov eax, ebx
call fcn.0052fce0
mov eax, dword [esp + 0x18]
cmp eax, 0x1f4
mov edi, esi
jb 0x530768
call fcn.00401700
lea esi, [esp + 0x20]
call fcn.00487190
mov eax, 0x7d4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x194
jne 0x53078b
call fcn.00401700
lea esi, [esp + 0x20]
call fcn.00487190
mov eax, 0x7d5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x193
jne 0x5307ae
call fcn.00401700
lea esi, [esp + 0x20]
call fcn.00487190
mov eax, 0x7d6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00401700
lea esi, [esp + 0x20]
call fcn.00487190
pop edi
pop esi
mov eax, 0x7d1
pop ebx
mov esp, ebp
pop ebp
ret 4