Function at 0x585c60
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x7c3824]
xor eax, ebp
mov dword [esp + 0x10], eax
cmp byte [ebx + 0x140], 0
jne 0x585c96
cmp byte [ebx + 0x728], 0
je 0x585d28
push 0xd
push esi
push str.Content_Type:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x585ce1
push esi
call fcn.00583030
add esp, 4
test eax, eax
je 0x5861f0
mov edi, eax
cmp byte [eax], 0
mov eax, dword [0x7c3880]
je 0x585d7e
push dword [ebx + 0xd7c]
call eax
add esp, 4
mov dword [ebx + 0xd7c], edi
jmp 0x58601c
mov al, byte [edi + 0x114]
cmp al, 0xa
jne 0x585d8f
cmp byte [edi + 0x258], 0
je 0x585dcf
push str.keep_alive
push str.Proxy_Connection:
push esi
call fcn.00584000
add esp, 0xc
test al, al
je 0x585d89
push 0
push edi
call fcn.00529e60
add esp, 8
push str.HTTP_1.0_proxy_connection_set_to_keep_alive_
jmp 0x585df6
push 0xf
push esi
push str.Content_Length:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x585c96
add esi, 0xf
lea eax, [esp + 8]
push eax
push 0xa
push 0
push esi
call fcn.005a03b0
add esp, 0x10
cmp eax, 1
je 0x585ee1
test eax, eax
jne 0x585f01
movq xmm0, qword [esp + 8]
pshufd xmm0, xmm0, 0x44
movdqu xmmword [ebx + 0x80], xmm0
jmp 0x58601c
push edi
call eax
add esp, 4
jmp 0x58601c
mov al, byte [edi + 0x114]
cmp al, 0xb
jne 0x585dcb
cmp byte [edi + 0x258], 0
je 0x585e04
push str.close
push str.Proxy_Connection:
push esi
call fcn.00584000
add esp, 0xc
test al, al
je 0x585dc5
push 1
push edi
call fcn.00529e60
add esp, 8
push str.HTTP_1.1_proxy_connection_set_close_
jmp 0x585df6
mov al, byte [edi + 0x114]
cmp al, 0xa
jne 0x585e04
push str.keep_alive
push 0x668c6b
push esi
call fcn.00584000
add esp, 0xc
test al, al
je 0x585e04
push 0
push edi
call fcn.00529e60
add esp, 8
push str.HTTP_1.0_connection_set_to_keep_alive_
push ebx
call fcn.0051ec50
add esp, 8
jmp 0x58601c
push str.close
push 0x668c6b
push esi
call fcn.00584000
add esp, 0xc
test al, al
je 0x585e2b
push 2
push edi
call fcn.00529e60
add esp, 8
jmp 0x58601c
cmp byte [ebx + 0x140], 0
je 0x585e8a
push 0xc
push esi
push str.Retry_After:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x585f1c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
add esi, 0xc
push esi
call fcn.0059fd90
add esp, 4
mov edi, eax
and eax, edx
cmp eax, 0xffffffff
je 0x585ff3
mov ebx, edx
push 0
call fcn.005f73d0
add esp, 4
sub edi, eax
sbb ebx, edx
jmp 0x58600d
push 0x12
push esi
push str.Transfer_Encoding:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x58605f
add esi, 0x12
push 1
push esi
push ebx
call fcn.0052b2c0
add esp, 0xc
mov esi, ebx
mov ebx, eax
test eax, eax
jne 0x5861f5
cmp byte [esi + 0x141], 0
jne 0x58601c
push 1
push edi
call fcn.00529e60
add esp, 8
mov byte [esi + 0x142], 1
jmp 0x58601c
mov eax, dword [ebx + 0x500]
or eax, dword [ebx + 0x504]
je 0x5860a5
mov ecx, ebx
mov ebx, 0x3f
mov eax, str.Maximum_file_size_exceeded
jmp 0x585f0d
mov ecx, ebx
mov ebx, 8
mov eax, str.Invalid_Content_Length:_value
push eax
push ecx
call fcn.0051ed60
add esp, 8
jmp 0x5861f5
cmp byte [ebx + 0x140], 0
je 0x5860ba
cmp dword [ebx + 0x748], 0
je 0x586023
cmp byte [ebx + 0xd13], 0
je 0x586023
push 0xb
push esi
push str.Set_Cookie:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x586023
mov ebx, dword [ebx + 0xce8]
test ebx, ebx
jne 0x585f68
mov ebx, dword [edi + 0x64]
mov eax, dword [edi + 0x2a0]
mov byte [esp + 7], 1
test byte [eax + 0x44], 2
jne 0x585fb2
push ebx
push str.localhost
call fcn.0052afc0
add esp, 8
test eax, eax
jne 0x585fb2
push str.127.0.0.1
push ebx
call fcn.005fee30
add esp, 8
test eax, eax
je 0x585fb2
push str._::1_
push ebx
call fcn.005fee30
add esp, 8
test eax, eax
sete byte [esp + 7]
push 2
push 2
mov edi, dword [ebp + 8]
push edi
call fcn.0052af20
add esp, 0xc
add esi, 0xb
movzx eax, byte [esp + 7]
push eax
push dword [edi + 0xc98]
push ebx
push esi
push 0
push 1
push dword [edi + 0x748]
push edi
call fcn.00524bb0
add esp, 0x20
push 2
push edi
call fcn.0052af60
add esp, 8
jmp 0x58601c
lea eax, [esp + 8]
push eax
push 0xa
push 0
push esi
call fcn.005a03b0
add esp, 0x10
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + 0xd88], edi
mov dword [eax + 0xd8c], ebx
xor ebx, ebx
jmp 0x5861f5
cmp byte [ebx + 0x140], 0
je 0x58620a
push 0x11
push esi
push str.WWW_Authenticate:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x586112
cmp dword [ebx + 0xf0], 0x191
jne 0x586112
xor ebx, ebx
jmp 0x586137
cmp byte [ebx + 0x140], 0
jne 0x585e34
push 0x11
push esi
push str.Content_Encoding:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x585e34
cmp dword [ebx + 0x558], 0
je 0x585e34
add esi, 0x11
push 0
push esi
push ebx
call fcn.0052b2c0
add esp, 0xc
jmp 0x5863fe
push 2
push edi
call fcn.00529e60
add esp, 8
push str.Overflow_Content_Length:_value_
jmp 0x585df6
push 0xe
push esi
push str.Content_Range:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x585f29
mov al, byte [esi + 0xe]
add esi, 0xe
xor edi, edi
test al, al
je 0x586327
movzx eax, al
push eax
call fcn.005a0290
add esp, 4
movzx ecx, byte [esi]
test eax, eax
jne 0x58631e
cmp cl, 0x2a
je 0x586322
movzx eax, byte [esi + 1]
add esi, 1
test al, al
jne 0x5860e2
jmp 0x586327
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x586173
mov bl, 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0xf0], 0x197
jne 0x586173
push esi
call fcn.00583030
add esp, 4
test eax, eax
je 0x5861f0
mov edi, eax
movzx eax, bl
push edi
push eax
push dword [ebp + 8]
call fcn.00583940
add esp, 0xc
mov ebx, eax
push edi
call dword [0x7c3880]
add esp, 4
test ebx, ebx
jne 0x5861f5
jmp 0x58601c
push 0x10
push esi
push str.Persistent_Auth:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x58626e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x9ac], 4
jne 0x58601c
push esi
call fcn.00583030
add esp, 4
test eax, eax
je 0x5861f0
mov ebx, eax
push 5
push eax
push 0x662c56
call fcn.0052b1c0
add esp, 0xc
xor ecx, ecx
test eax, eax
setne cl
setne byte [edi + 0x3e0]
mov byte [edi + 0x3e1], 1
push ebx
push ecx
push str.Negotiate:_noauthpersist_____d__header_part:__s
push dword [ebp + 8]
call fcn.0051ec50
add esp, 0x10
push ebx
call dword [0x7c3880]
add esp, 4
jmp 0x58601c
mov ebx, 0x1b
mov ecx, dword [esp + 0x10]
xor ecx, ebp
call fcn.005db451
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xe
push esi
push str.Last_Modified:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x586030
cmp dword [ebx + 0x3ec], 0
jne 0x586238
cmp byte [ebx + 0x70d], 0
je 0x586030
add esi, 0xe
push esi
call fcn.0059fd90
add esp, 4
mov dword [ebx + 0x11c], edx
mov dword [ebx + 0x118], eax
cmp byte [ebx + 0x70d], 0
je 0x58601c
mov dword [ebx + 0xd58], eax
mov dword [ebx + 0xd5c], edx
jmp 0x58601c
mov eax, 0xfffffed4
mov ebx, dword [ebp + 8]
add eax, dword [ebx + 0xf0]
cmp eax, 0x63
ja 0x5862a2
push 9
push esi
push str.Location:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x5862a2
cmp dword [ebx + 0x124], 0
je 0x58640d
cmp dword [ebx + 0x74c], 0
je 0x5862cf
push 0x1a
push esi
push str.Strict_Transport_Security:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x5862cf
mov eax, dword [edi + 0x2a0]
test byte [eax + 0x4c], 1
jne 0x586395
cmp dword [ebx + 0x750], 0
je 0x5862fc
push 8
push esi
push str.Alt_Svc:
call fcn.0052b1c0
add esp, 0xc
test eax, eax
je 0x5862fc
mov eax, dword [edi + 0x2a0]
test byte [eax + 0x4c], 1
jne 0x5863bf
mov eax, dword [edi + 0x2a0]
test byte [eax + 0x46], 4
mov eax, dword [ebp + 8]
je 0x58601c
push esi
push eax
call fcn.0059b280
add esp, 8
jmp 0x5863fe
mov edi, ecx
jmp 0x586327
mov edi, 0x2a
push edi
call fcn.005a0290
add esp, 4
test eax, eax
je 0x58637c
lea eax, [ebx + 0xe8]
push eax
push 0xa
push 0
push esi
call fcn.005a03b0
add esp, 0x10
test eax, eax
jne 0x58601c
mov eax, dword [ebx + 0xc4c]
xor eax, dword [ebx + 0xec]
mov ecx, dword [ebx + 0xc48]
xor ecx, dword [ebx + 0xe8]
or ecx, eax
jne 0x58601c
mov byte [ebx + 0x13d], 1
jmp 0x58601c
mov dword [ebx + 0xc4c], 0
mov dword [ebx + 0xc48], 0
jmp 0x58601c
add esi, 0x1a
push esi
push dword [ebx + 0xc84]
push dword [ebx + 0x74c]
call fcn.00523ed0
add esp, 0xc
test eax, eax
je 0x58601c
push str.Illegal_STS_header_skipped
jmp 0x585df6
xor eax, eax
cmp byte [edi + 0x114], 0x14
sete al
lea ebx, [eax*8 + 8]
push dword [edi + 0xc8]
call fcn.005286b0
add esp, 4
add esi, 8
movzx eax, ax
push eax
push dword [edi + 0x64]
push ebx
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x750]
push eax
call fcn.005235b0
add esp, 0x18
mov ebx, eax
test eax, eax
jne 0x5861f5
jmp 0x58601c
push esi
call fcn.00583030
add esp, 4
mov ebx, 0x1b
test eax, eax
je 0x5861f5
cmp byte [eax], 0
je 0x586461
mov esi, dword [ebp + 8]
mov dword [esi + 0x124], eax
cmp byte [esi + 0x71a], 0
je 0x58601c
push eax
call dword [0x7c3888]
add esp, 4
mov dword [esi + 0x128], eax
test eax, eax
je 0x5861f5
mov ecx, esi
mov edx, edi
call fcn.00583380
jmp 0x5863fe
push eax
jmp 0x5861e2