Function at 0x586600
Capabilities:
Check http status code

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 0x48]
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 0x30], eax
mov ebx, dword [ecx]
mov esi, dword [ebp + 0xe0]
lea edi, [ebp + 0x8fc]
push ebx
push 0xa
push esi
call fcn.005e12c0
add esp, 0xc
test eax, eax
mov dword [esp + 4], edi
je 0x586e54
lea ecx, [ebp + 0x80]
mov dword [esp + 0xc], ecx
lea ecx, [ebp + 0xf0]
mov dword [esp], ecx
mov dword [esp + 0x14], esi
mov ebp, esi
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x50]
mov ecx, eax
not ecx
add ebx, ebp
add ebx, ecx
mov dword [esi], ebx
add eax, 1
mov esi, dword [esp + 0x48]
mov dword [esi + 0xe0], eax
sub eax, ebp
push eax
mov dword [esp + 0xc], ebp
push ebp
push edi
call fcn.00522fc0
add esp, 0xc
test eax, eax
jne 0x586eeb
cmp dword [esi + 0xdc], 0
mov ebp, dword [esp + 4]
mov esi, dword [esp + 0x4c]
jne 0x5866cf
push ebp
call fcn.00523130
add esp, 4
mov ebx, eax
push ebp
call fcn.00444790
add esp, 4
mov ecx, dword [esp + 0x48]
mov edx, esi
push ebx
push eax
call fcn.00587040
add esp, 8
cmp eax, 2
je 0x586f21
push ebp
call fcn.00444790
add esp, 4
mov ebx, eax
movzx eax, byte [eax]
cmp al, 0xd
je 0x5866e5
cmp al, 0xa
jne 0x586750
mov eax, dword [esp]
mov eax, dword [eax]
lea ecx, [eax - 0x64]
cmp ecx, 0x63
mov edi, dword [esp + 0x48]
ja 0x586870
cmp eax, 0x65
je 0x5868c7
cmp eax, 0x64
jne 0x5868ed
mov byte [edi + 0x13c], 1
mov dword [edi + 0xdc], 0
cmp dword [edi + 0x108], 0
jle 0x586900
mov dword [edi + 0x108], 0
or byte [edi + 0xf4], 2
push 0
push edi
call fcn.00522790
add esp, 8
jmp 0x5868bc
mov edi, dword [esp + 0x48]
mov eax, dword [edi + 0xdc]
lea ecx, [eax + 1]
mov dword [edi + 0xdc], ecx
test eax, eax
jne 0x586b73
mov eax, dword [esi + 0x2a0]
mov eax, dword [eax + 0x44]
test al, 3
je 0x586b1c
mov dword [esp + 0x1c], 0
mov byte [esp + 0x1b], 0
lea eax, [esp + 0x1b]
push eax
push dword [esp + 4]
lea eax, [esp + 0x2b]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x38]
push eax
push str._HTTP__1d._1d_c_3d_c
push ebx
call fcn.004b2e3b
add esp, 0x1c
mov ebp, eax
cmp eax, 1
jne 0x586aed
cmp dword [esp + 0x28], 2
jl 0x586aed
push dword [esp]
lea eax, [esp + 0x32]
push eax
push str._HTTP__1_23___d
push ebx
call fcn.004b2e3b
add esp, 0x10
cmp eax, 2
jne 0x586aed
mov byte [esi + 0x114], 0
mov byte [esp + 0x23], 0x20
mov ebp, 4
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, ecx
and eax, 0xfffffffe
cmp eax, 0xa
jne 0x586cf4
mov byte [esi + 0x114], cl
cmp dword [edi + 0x10c], 2
jne 0x586840
push str.Lying_server__not_serving_HTTP_2
push edi
call fcn.0051ec50
add esp, 8
mov al, 1
cmp byte [esi + 0x114], 0x13
ja 0x586b13
mov eax, dword [esi + 0x4e4]
mov dword [eax], 0xffffffff
push str.Mark_bundle_as_not_supporting_multiuse
push edi
call fcn.0051ec50
add esp, 8
mov al, 1
jmp 0x586b13
mov byte [edi + 0x13c], 0
mov eax, dword [edi + 0x80]
and eax, dword [edi + 0x84]
cmp eax, 0xffffffff
jne 0x5868db
cmp byte [edi + 0x141], 0
jne 0x5868bc
cmp byte [esi + 0x25d], 0
jne 0x5868bc
cmp byte [esi + 0x114], 0xb
jne 0x5868bc
mov eax, dword [esi + 0x2a0]
test byte [eax + 0x46], 4
jne 0x5868bc
cmp dword [edi + 0xca0], 5
jne 0x586da6
cmp byte [edi + 0x13c], 0
jne 0x586900
jmp 0x5868db
cmp dword [edi + 0x10c], 1
je 0x586fd6
mov byte [edi + 0x13c], 0
push edi
call fcn.00586560
add esp, 4
test eax, eax
je 0x586900
jmp 0x586eeb
mov byte [edi + 0x13c], 1
mov dword [edi + 0xdc], 0
nop
cmp byte [esi + 0x25d], 0
mov ebp, dword [esp + 4]
je 0x5869a5
mov eax, dword [esp]
mov eax, dword [eax]
cmp eax, 0x197
je 0x58692f
cmp eax, 0x191
jne 0x58695b
cmp dword [esi + 0x310], 2
je 0x586938
jmp 0x586969
cmp dword [esi + 0x314], 2
jne 0x586987
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push edi
call fcn.0051ec50
add esp, 8
mov byte [edi + 0xd09], 1
cmp byte [esi + 0x25d], 0
je 0x5869a5
mov eax, dword [esp]
mov eax, dword [eax]
cmp eax, 0x197
je 0x586987
cmp eax, 0x191
jne 0x5869a5
mov eax, dword [esi + 0x398]
cmp eax, 1
je 0x586990
nop word cs:[eax + eax]
nop
cmp eax, 3
je 0x5869b0
jmp 0x5869c5
cmp dword [esi + 0x39c], 1
jne 0x5869a5
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push edi
call fcn.0051ec50
add esp, 8
mov byte [edi + 0xd09], 1
mov eax, dword [esi + 0x398]
cmp eax, 3
jne 0x5869c5
mov eax, dword [esp]
cmp dword [eax], 0x191
je 0x5869c5
mov dword [esi + 0x398], 4
cmp dword [esi + 0x39c], 3
jne 0x5869e3
mov eax, dword [esp]
cmp dword [eax], 0x197
je 0x5869e3
mov dword [esi + 0x39c], 4
cmp byte [edi + 0x71d], 1
mov esi, 3
sbb esi, 0
push ebp
call fcn.00523130
add esp, 4
mov ebx, eax
push ebp
call fcn.00444790
add esp, 4
push ebx
push eax
push esi
mov edi, dword [esp + 0x54]
push edi
call fcn.0051f270
add esp, 0x10
test eax, eax
jne 0x586eeb
mov ebp, ebx
sar ebp, 0x1f
add dword [edi + 0xd60], ebx
adc dword [edi + 0xd64], ebp
mov esi, dword [edi + 0xa0]
add esi, ebx
adc ebp, dword [edi + 0xa4]
mov dword [edi + 0xa0], esi
mov dword [edi + 0xa4], ebp
mov ecx, edi
call fcn.005835b0
mov ecx, dword [edi + 0xf0]
test al, al
jne 0x586ef2
add ecx, 0xffffff9c
cmp ecx, 0x64
mov eax, 0
cmovae esi, eax
cmovae ebp, eax
mov dword [edi + 0xac], ebp
mov dword [edi + 0xa8], esi
push edi
call fcn.00583100
add esp, 4
test eax, eax
jne 0x586eeb
mov eax, dword [esp]
cmp dword [eax], 0x12c
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 4]
jl 0x586adb
cmp byte [esi + 0x269], 0
jne 0x586ab5
cmp byte [esi + 0x25d], 0
je 0x586c3f
cmp byte [esi + 0x26a], 0
je 0x586adb
push str.Keep_sending_data_to_get_tossed_away_
push edi
mov ebp, edi
mov edi, ecx
call fcn.0051ec50
mov ecx, edi
mov edi, ebp
add esp, 8
or byte [ebp + 0xf4], 2
cmp byte [edi + 0x13c], 0
jne 0x586c03
jmp 0x586f0b
movzx eax, byte [esp + 0x1b]
push eax
call fcn.005a0290
add esp, 4
test eax, eax
je 0x586cd6
push str.Unsupported_response_code_in_HTTP_response
push edi
call fcn.0051ed60
add esp, 8
xor eax, eax
test al, al
jne 0x586b61
jmp 0x587037
test eax, 0x40000
je 0x586fb8
push dword [esp]
lea eax, [esp + 0x32]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push str._RTSP__1d._1d_c_3d
push ebx
call fcn.004b2e3b
add esp, 0x18
xor ebp, ebp
cmp eax, 4
jne 0x586b61
cmp byte [esp + 0x2e], 0x20
jne 0x586b61
mov byte [esi + 0x114], 0xb
mov ebp, 4
test ebp, ebp
je 0x586fb8
push esi
push edi
call fcn.00586470
add esp, 8
push ebx
push esi
push edi
call fcn.00585c60
add esp, 0xc
test eax, eax
jne 0x586eeb
cmp byte [edi + 0x71d], 1
mov esi, 3
sbb esi, 0
mov edi, ebx
mov ebx, dword [esp + 4]
push ebx
call fcn.00523130
add esp, 4
push eax
push edi
push 1
push dword [esp + 0x54]
call fcn.0051ecd0
add esp, 0x10
push ebx
call fcn.00523130
add esp, 4
push eax
push edi
push esi
mov edi, dword [esp + 0x54]
push edi
call fcn.0051f270
add esp, 0x10
test eax, eax
jne 0x586eeb
push ebx
call fcn.00523130
add esp, 4
add dword [edi + 0xd60], eax
adc dword [edi + 0xd64], 0
push ebx
call fcn.00523130
add esp, 4
add dword [edi + 0xa0], eax
adc dword [edi + 0xa4], 0
mov ecx, ebx
mov esi, edi
mov edi, ecx
push ecx
call fcn.00522fa0
add esp, 4
mov ebp, dword [esi + 0xe0]
cmp byte [ebp], 0
je 0x587020
mov esi, dword [esp + 0x50]
mov ebx, dword [esi]
push ebx
push 0xa
push ebp
call fcn.005e12c0
add esp, 0xc
test eax, eax
jne 0x586661
jmp 0x586e56
cmp byte [esi + 0x26a], 0
jne 0x586abe
mov eax, dword [edi + 0xca0]
add eax, 0xffffffff
cmp eax, 3
ja 0x586ab5
push 0
push edi
call fcn.00522790
mov ecx, dword [esp + 0xc]
add esp, 8
cmp byte [edi + 0x13e], 0
jne 0x586ab5
mov eax, dword [esp]
cmp dword [eax], 0x1a1
jne 0x586dc1
cmp byte [edi + 0xd0c], 0
je 0x586dc1
push str.Got_417_while_waiting_for_a_100
push edi
call fcn.0051ec50
add esp, 8
mov byte [edi + 0xd0d], 1
push dword [edi + 0xca4]
call dword [0x7c3888]
add esp, 4
mov dword [edi + 0x128], eax
push dword [esp + 0xc]
push edi
call fcn.00587960
mov ecx, dword [esp + 0xc]
add esp, 8
jmp 0x586ab5
cmp ebp, 4
jl 0x586d24
mov eax, dword [esp]
cmp dword [eax], 0x63
jle 0x586b03
cmp byte [esp + 0x23], 0x20
je 0x5867f5
jmp 0x586d28
mov eax, ecx
mov edx, 0x66666667
imul edx
mov eax, edx
shr eax, 0x1f
sar edx, 2
add edx, eax
lea eax, [edx + edx]
lea eax, [eax + eax*4]
sub ecx, eax
push ecx
push edx
push str.Unsupported_HTTP_version___u._d__in_response
push edi
call fcn.0051ed60
add esp, 0x10
jmp 0x586b11
test ebp, ebp
je 0x586d32
push str.Unsupported_HTTP_version_in_response
jmp 0x586b08
push dword [esp]
push str._HTTP__3d
push ebx
call fcn.004b2e3b
add esp, 0xc
mov ebp, eax
mov byte [esi + 0x114], 0xa
mov al, 1
test ebp, ebp
jne 0x586b13
mov dword [esp + 8], ebx
mov ebx, dword [esp + 4]
push ebx
call fcn.00523130
add esp, 4
mov ebp, eax
push ebx
call fcn.00444790
add esp, 4
mov ecx, edi
mov edx, eax
push ebp
call fcn.00587070
add esp, 4
xor ebp, ebp
cmp eax, 1
jne 0x586d9b
mov eax, dword [esp]
mov dword [eax], 0xc8
mov byte [esi + 0x114], 0xa
mov ebp, 1
mov ebx, dword [esp + 8]
mov al, 1
jmp 0x586b13
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push edi
call fcn.0051ec50
add esp, 8
push 2
push esi
call fcn.00529e60
jmp 0x586743
cmp byte [edi + 0x719], 0
je 0x586dff
push str.HTTP_error_before_end_of_send__keep_sending
push edi
call fcn.0051ec50
mov ecx, dword [esp + 0xc]
add esp, 8
cmp dword [edi + 0x108], 0
jle 0x586ab5
mov dword [edi + 0x108], 0
or byte [edi + 0xf4], 2
jmp 0x586ab5
push str.HTTP_error_before_end_of_send__stop_sending
push edi
call fcn.0051ec50
add esp, 8
push 2
push esi
call fcn.00529e60
add esp, 8
push dword [esp + 0xc]
push edi
call fcn.00587960
add esp, 8
test eax, eax
jne 0x586eeb
mov byte [edi + 0x13e], 1
cmp byte [edi + 0xd0c], 0
mov ecx, dword [esp + 4]
je 0x586ab5
mov dword [edi + 0x108], 3
jmp 0x586ab5
mov ebp, esi
push ebx
push ebp
push edi
call fcn.00522fc0
add esp, 0xc
mov ebp, eax
test eax, eax
mov esi, dword [esp + 0x4c]
jne 0x587022
xor ebp, ebp
mov edi, dword [esp + 0x48]
cmp dword [edi + 0xdc], 0
jne 0x587022
mov ebx, dword [esp + 4]
push ebx
call fcn.00523130
add esp, 4
mov dword [esp], eax
push ebx
call fcn.00444790
add esp, 4
mov ecx, edi
mov edx, esi
push dword [esp]
push eax
call fcn.00587040
add esp, 8
cmp eax, 2
jne 0x587022
mov byte [edi + 0x13c], 0
mov dword [edi + 0xd8], 2
push 2
push esi
call fcn.00529e60
add esp, 8
cmp byte [edi + 0x740], 0
jne 0x587022
push str.Received_HTTP_0.9_when_not_allowed
push dword [esp + 0x4c]
jmp 0x586fc7
mov ebp, eax
jmp 0x587022
push ecx
push str.The_requested_URL_returned_error:__d
push edi
call fcn.0051ed60
add esp, 0xc
mov ebp, 0x16
jmp 0x587022
cmp byte [edi + 0x720], 0
je 0x586f60
mov ecx, dword [esp + 0x54]
mov byte [ecx], 1
mov edx, dword [esp + 8]
jmp 0x586f8a
push 2
push esi
call fcn.00529e60
add esp, 8
mov edx, dword [esp + 0x48]
cmp byte [edx + 0x740], 0
je 0x586fc1
mov byte [edx + 0x13c], 0
mov eax, dword [esp + 0x50]
cmp dword [eax], 0
je 0x587006
mov dword [edx + 0xd8], 1
jmp 0x587020
mov eax, dword [esi + 0x2a0]
test byte [eax + 0x46], 4
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 8]
je 0x586f8a
cmp dword [edi + 0x6ac], 2
jne 0x586f8a
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
jns 0x586f8a
mov byte [ecx], 1
mov eax, dword [edi + 0x88]
or eax, dword [edi + 0x8c]
je 0x586f9f
cmp byte [ecx], 0
jne 0x586fa2
jmp 0x586fa9
mov byte [ecx], 1
and byte [edi + 0xf4], 0xfe
push ebx
push edx
push 1
push edi
call fcn.0051ecd0
add esp, 0x10
jmp 0x587020
mov byte [edi + 0x13c], 0
jmp 0x587020
push str.Received_HTTP_0.9_when_not_allowed
push edx
call fcn.0051ed60
add esp, 8
mov ebp, 1
jmp 0x587022
push str.Received_101
push edi
call fcn.0051ec50
add esp, 8
mov dword [edi + 0x10c], 2
mov byte [edi + 0x13c], 1
mov dword [edi + 0xdc], 0
mov ebp, 1
jmp 0x587022
mov dword [edx + 0xd8], 2
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov dword [edx + 0xe0], eax
xor ebp, ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005db451
mov eax, ebp
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebp, 1
jmp 0x587022