Function at 0x505c70
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [edx + 0x80]
mov dword [ebp - 0x3c], eax
mov esi, dword [ebx]
mov edi, dword [edx + 0xe0]
lea eax, [edx + 0x8ec]
mov dword [ebp - 0x2c], eax
lea eax, [edx + 0xf0]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], edi
push esi
push 0xa
push edi
call fcn.0064f0c0
add esp, 0xc
test eax, eax
je 0x5065e3
mov ecx, eax
not ecx
add esi, edi
add esi, ecx
mov dword [ebx], esi
inc eax
mov esi, dword [ebp + 8]
mov dword [esi + 0xe0], eax
sub eax, edi
push eax
mov dword [ebp - 0x38], edi
push edi
push dword [ebp - 0x2c]
call fcn.004fd0b0
add esp, 0xc
test eax, eax
jne 0x5065dc
cmp dword [esi + 0xdc], 0
mov ebx, dword [ebp - 0x2c]
mov edi, esi
je 0x505d80
push ebx
call fcn.004fd280
add esp, 4
mov esi, eax
movzx eax, byte [eax]
cmp eax, 0xd
je 0x505d1e
cmp eax, 0xa
jne 0x505dd4
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
lea ecx, [eax - 0x64]
cmp ecx, 0x63
mov ebx, dword [ebp + 0xc]
ja 0x505e86
cmp eax, 0x65
je 0x505f36
cmp eax, 0x64
jne 0x505f70
mov byte [edi + 0x13c], 1
mov dword [edi + 0xdc], 0
cmp dword [edi + 0x108], 0
jle 0x50607a
xor eax, eax
mov dword [edi + 0x108], eax
or byte [edi + 0xf4], 2
push eax
push edi
call fcn.00511d90
add esp, 8
jmp 0x505ed6
push ebx
call fcn.004f47e0
add esp, 4
mov esi, eax
push ebx
call fcn.004fd280
add esp, 4
mov dword [ebp - 0x34], eax
mov ebx, dword [edi + 0x4f4]
mov al, 1
mov dword [ebp - 0x40], eax
test ebx, ebx
je 0x505ee5
mov edi, dword [ebx]
push edi
call fcn.0066b230
add esp, 4
cmp eax, esi
cmovae eax, esi
push eax
push dword [ebp - 0x34]
push edi
call fcn.0051c730
add esp, 0xc
test eax, eax
jne 0x505f1e
mov ebx, dword [ebx + 4]
jmp 0x505da2
mov eax, dword [edi + 0xdc]
lea ecx, [eax + 1]
mov dword [edi + 0xdc], ecx
test eax, eax
mov ebx, dword [ebp + 0xc]
jne 0x506489
xor eax, eax
dec eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x2a0]
mov eax, dword [eax + 0x44]
test al, 3
je 0x5062b9
mov byte [ebp - 0x1d], 0xff
mov word [ebp - 0x12], 0xffff
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x25], 0
lea eax, [ebp - 0x25]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x1d]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push str._HTTP__1d._1d_c_3d_c
push esi
call fcn.004f3a00
add esp, 0x1c
mov edi, eax
cmp eax, 1
jne 0x505f86
cmp dword [ebp - 0x18], 2
jl 0x505f86
push dword [ebp - 0x30]
lea eax, [ebp - 0x12]
push eax
push str._HTTP__1_23___d
push esi
call fcn.004f3a00
add esp, 0x10
cmp eax, 2
jne 0x505f86
mov byte [ebx + 0x114], 0
mov byte [ebp - 0x1d], 0x20
mov edi, 4
jmp 0x505fba
mov byte [edi + 0x13c], 0
mov eax, dword [edi + 0x80]
and eax, dword [edi + 0x84]
cmp eax, 0xffffffff
jne 0x505f4a
cmp byte [edi + 0x141], 0
jne 0x505ed6
cmp byte [ebx + 0x25d], 0
jne 0x505ed6
cmp byte [ebx + 0x114], 0xb
jne 0x505ed6
mov eax, dword [ebx + 0x2a0]
test byte [eax + 0x46], 4
jne 0x505ed6
cmp dword [edi + 0xc90], 5
jne 0x506538
cmp byte [edi + 0x13c], 0
jne 0x50607a
jmp 0x505f4a
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x2c]
cmp esi, 5
mov eax, 5
cmovae esi, eax
push esi
push dword [ebp - 0x34]
push str.HTTP_
call fcn.0051c730
add esp, 0xc
cmp byte [ebp - 0x40], 0
je 0x505d02
test eax, eax
jne 0x505d02
jmp 0x5066a2
cmp esi, 4
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x2c]
ja 0x505d02
mov dword [ebp - 0x40], 0
jmp 0x505eeb
cmp dword [edi + 0x10c], 1
je 0x506710
mov byte [edi + 0x13c], 0
cmp byte [edi + 0x142], 0
jne 0x505f60
cmp byte [edi + 0x141], 0
je 0x506027
mov eax, dword [ebp - 0x3c]
pcmpeqd xmm0, xmm0
movdqu xmmword [eax], xmm0
jmp 0x50607a
mov byte [edi + 0x13c], 1
mov dword [edi + 0xdc], 0
jmp 0x50607a
movzx eax, byte [ebp - 0x25]
push eax
call fcn.004faee0
add esp, 4
test eax, eax
jne 0x50679c
cmp edi, 4
jl 0x5063ac
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0x63
jle 0x50679c
cmp byte [ebp - 0x1d], 0x20
jne 0x5067d1
mov eax, dword [ebp - 0x18]
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x24], ecx
mov eax, ecx
and eax, 0xfffffffe
cmp eax, 0xa
jne 0x5067f7
mov byte [ebx + 0x114], cl
mov eax, ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x10c], 2
jne 0x506008
push str.Lying_server__not_serving_HTTP_2
push ebx
call fcn.00514fc0
mov eax, dword [ebp + 0xc]
add esp, 8
cmp byte [eax + 0x114], 0x13
ja 0x506471
mov eax, dword [eax + 0x4e4]
mov dword [eax], 0xffffffff
push str.Mark_bundle_as_not_supporting_multiuse
push ebx
call fcn.00514fc0
add esp, 8
jmp 0x506471
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x50607a
mov esi, dword [edi + 0x500]
mov edx, dword [edi + 0x504]
mov edi, esi
or edi, edx
je 0x506054
cmp esi, eax
sbb edx, ecx
jl 0x506826
push ecx
push eax
mov edi, dword [ebp + 8]
push edi
call fcn.00514090
add esp, 0xc
mov eax, dword [edi + 0x80]
mov ecx, dword [edi + 0x84]
mov dword [edi + 0x8c], ecx
mov dword [edi + 0x88], eax
cmp byte [ebx + 0x25d], 0
je 0x50610a
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
cmp eax, 0x197
je 0x5060a5
cmp eax, 0x191
jne 0x5060d1
cmp dword [ebx + 0x310], 2
je 0x5060ae
jmp 0x5060df
cmp dword [ebx + 0x314], 2
jne 0x5060ec
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push edi
call fcn.00514fc0
add esp, 8
mov byte [edi + 0xcf9], 1
cmp byte [ebx + 0x25d], 0
je 0x50610a
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
cmp eax, 0x197
je 0x5060ec
cmp eax, 0x191
jne 0x50610a
mov eax, dword [ebx + 0x398]
cmp eax, 1
je 0x5060f5
jmp 0x506110
cmp dword [ebx + 0x39c], 1
jne 0x50610a
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push edi
call fcn.00514fc0
add esp, 8
mov byte [edi + 0xcf9], 1
mov eax, dword [ebx + 0x398]
cmp eax, 3
jne 0x50612a
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0x191
je 0x50612a
mov dword [ebx + 0x398], 4
cmp dword [ebx + 0x39c], 3
jne 0x506148
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0x197
je 0x506148
mov dword [ebx + 0x39c], 4
cmp byte [edi + 0x70c], 1
mov edi, 3
sbb edi, 0
mov ebx, dword [ebp - 0x2c]
push ebx
call fcn.004f47e0
add esp, 4
mov esi, eax
push ebx
call fcn.004fd280
add esp, 4
push esi
push eax
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00515700
add esp, 0x10
test eax, eax
jne 0x5065dc
mov edx, esi
sar edx, 0x1f
add dword [edi + 0xd28], esi
adc dword [edi + 0xd2c], edx
mov ecx, dword [edi + 0xa0]
add ecx, esi
adc edx, dword [edi + 0xa4]
mov dword [edi + 0xa0], ecx
mov dword [edi + 0xa4], edx
mov eax, dword [edi + 0xf0]
cmp byte [edi + 0x707], 0
je 0x50620e
cmp eax, 0x190
jl 0x50620e
mov ecx, dword [edi + 0xc38]
or ecx, dword [edi + 0xc3c]
je 0x5061eb
cmp dword [edi + 0xc90], 0
jne 0x5061eb
xor ecx, ecx
mov edx, 0
cmp eax, 0x1a0
je 0x506245
cmp eax, 0x197
je 0x506221
cmp eax, 0x191
jne 0x506689
mov ecx, dword [edi + 0xc]
cmp byte [ecx + 0x263], 0
jne 0x506231
jmp 0x506689
add eax, 0xffffff9c
cmp eax, 0x64
mov eax, 0
cmovae edx, eax
cmovae ecx, eax
jmp 0x506245
mov ecx, dword [edi + 0xc]
cmp byte [ecx + 0x25a], 0
je 0x506689
xor ecx, ecx
cmp byte [edi + 0xcf9], 0
mov edx, 0
jne 0x506689
mov dword [edi + 0xa8], ecx
mov dword [edi + 0xac], edx
push edi
call fcn.00502540
add esp, 4
test eax, eax
jne 0x5065dc
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0x12c
mov ebx, dword [ebp + 0xc]
jl 0x5062a4
cmp byte [ebx + 0x269], 0
jne 0x506286
cmp byte [ebx + 0x25d], 0
je 0x506311
cmp byte [ebx + 0x26a], 0
je 0x5062a4
push str.Keep_sending_data_to_get_tossed_away_
push edi
call fcn.00514fc0
add esp, 8
or byte [edi + 0xf4], 2
cmp byte [edi + 0x13c], 0
mov eax, dword [ebp - 0x2c]
jne 0x506516
jmp 0x506662
bt eax, 0x12
jae 0x5066f9
mov byte [ebp - 0x12], 0xff
mov dword [ebp - 0x24], 0xffffffff
push dword [ebp - 0x30]
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push str._RTSP__1d._1d_c_3d
push esi
call fcn.004f3a00
add esp, 0x18
xor edi, edi
cmp eax, 4
jne 0x506474
cmp byte [ebp - 0x12], 0x20
jne 0x506474
mov byte [ebx + 0x114], 0xb
mov edi, 4
jmp 0x506474
cmp byte [ebx + 0x26a], 0
jne 0x50628f
mov eax, dword [edi + 0xc90]
dec eax
cmp eax, 3
ja 0x506286
push 0
push edi
call fcn.00511d90
add esp, 8
cmp byte [edi + 0x13e], 0
jne 0x506286
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0x1a1
jne 0x506553
cmp byte [edi + 0xcfc], 0
je 0x506553
push str.Got_417_while_waiting_for_a_100
push edi
call fcn.00514fc0
add esp, 8
mov byte [edi + 0xcfd], 1
mov ecx, dword [fcn.00663270]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc94]
call dword [section..00cfg]
push edi
mov edi, dword [ebp + 8]
call ecx
add esp, 4
mov dword [edi + 0x128], eax
push dword [ebp - 0x3c]
push edi
call fcn.0051e360
add esp, 8
jmp 0x506286
test edi, edi
jne 0x5067d1
push dword [ebp - 0x30]
push str._HTTP__3d
push esi
call fcn.004f3a00
add esp, 0xc
mov edi, eax
mov byte [ebx + 0x114], 0xa
test eax, eax
jne 0x506471
mov edi, esi
mov esi, dword [ebp - 0x2c]
push esi
call fcn.004f47e0
add esp, 4
mov dword [ebp - 0x34], eax
push esi
mov esi, edi
call fcn.004fd280
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x4f4]
test edi, edi
je 0x506431
mov ebx, dword [edi]
push ebx
call fcn.0066b230
add esp, 4
mov ecx, dword [ebp - 0x34]
cmp eax, ecx
cmovae eax, ecx
push eax
push dword [ebp - 0x38]
push ebx
call fcn.0051c730
add esp, 0xc
test eax, eax
jne 0x50642b
mov edi, dword [edi + 4]
jmp 0x5063fe
cmp dword [ebp - 0x34], 4
ja 0x50645b
mov ebx, dword [ebp - 0x34]
cmp ebx, 5
mov eax, 5
cmovb eax, ebx
push eax
push dword [ebp - 0x38]
push str.HTTP_
call fcn.0051c730
add esp, 0xc
xor edi, edi
test eax, eax
je 0x506471
cmp ebx, 5
jb 0x506471
mov eax, dword [ebp - 0x30]
mov dword [eax], 0xc8
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x114], 0xa
xor edi, edi
inc edi
mov ebx, dword [ebp + 0xc]
test edi, edi
mov edi, dword [ebp + 8]
je 0x5066f9
push ebx
push edi
call fcn.00505b70
add esp, 8
push esi
push ebx
push edi
call fcn.00505330
add esp, 0xc
test eax, eax
jne 0x5065dc
cmp byte [edi + 0x70c], 1
mov edi, 3
sbb edi, 0
mov ebx, esi
mov esi, dword [ebp - 0x2c]
push esi
call fcn.004f47e0
add esp, 4
push eax
push ebx
push 1
push dword [ebp + 8]
call fcn.005150d0
add esp, 0x10
push esi
call fcn.004f47e0
add esp, 4
push eax
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00515700
add esp, 0x10
test eax, eax
jne 0x5065dc
push esi
call fcn.004f47e0
add esp, 4
add dword [edi + 0xd28], eax
adc dword [edi + 0xd2c], 0
push esi
call fcn.004f47e0
add esp, 4
add dword [edi + 0xa0], eax
adc dword [edi + 0xa4], 0
mov eax, esi
push eax
call fcn.004fd090
add esp, 4
mov edi, dword [edi + 0xe0]
cmp byte [edi], 0
je 0x5067bb
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebx]
jmp 0x505cb2
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push edi
call fcn.00514fc0
add esp, 8
push 2
push ebx
call fcn.004f7600
jmp 0x505d78
cmp byte [edi + 0x708], 0
je 0x50658d
push str.HTTP_error_before_end_of_send__keep_sending
push edi
call fcn.00514fc0
add esp, 8
cmp dword [edi + 0x108], 0
jle 0x506286
mov dword [edi + 0x108], 0
or byte [edi + 0xf4], 2
jmp 0x506286
push str.HTTP_error_before_end_of_send__stop_sending
push edi
call fcn.00514fc0
add esp, 8
push 2
push ebx
call fcn.004f7600
add esp, 8
push dword [ebp - 0x3c]
push edi
call fcn.0051e360
add esp, 8
test eax, eax
jne 0x5065dc
mov byte [edi + 0x13e], 1
cmp byte [edi + 0xcfc], 0
mov ebx, dword [ebp + 0xc]
je 0x506286
mov dword [edi + 0x108], 3
jmp 0x506286
mov ebx, eax
jmp 0x5067bd
push esi
push edi
push dword [ebp - 0x2c]
call fcn.004fd0b0
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x5067bd
mov edi, dword [ebp + 8]
cmp dword [edi + 0xdc], 0
jne 0x5067bb
mov esi, dword [ebp - 0x2c]
push esi
call fcn.004f47e0
add esp, 4
mov dword [ebp - 0x34], eax
push esi
call fcn.004fd280
add esp, 4
mov dword [ebp - 0x2c], eax
mov edi, dword [edi + 0x4f4]
mov bl, 1
test edi, edi
je 0x50673e
mov esi, dword [edi]
push esi
call fcn.0066b230
add esp, 4
mov ecx, dword [ebp - 0x34]
cmp eax, ecx
cmovae eax, ecx
push eax
push dword [ebp - 0x2c]
push esi
call fcn.0051c730
add esp, 0xc
test eax, eax
jne 0x5067e6
mov edi, dword [edi + 4]
jmp 0x50662d
cmp byte [edi + 0x70f], 0
mov ecx, dword [ebp + 0x14]
je 0x506671
mov byte [ecx], 1
mov eax, dword [edi + 0x88]
or eax, dword [edi + 0x8c]
je 0x5066da
cmp byte [ecx], 0
mov eax, dword [ebp - 0x38]
jne 0x5066e0
jmp 0x5066e7
push eax
push str.The_requested_URL_returned_error:__d
push edi
call fcn.00515170
add esp, 0xc
mov ebx, 0x16
jmp 0x5067bd
push 2
push dword [ebp + 0xc]
call fcn.004f7600
add esp, 8
cmp byte [edi + 0x72f], 0
je 0x506705
mov byte [edi + 0x13c], 0
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x5067a3
mov dword [edi + 0xd8], 1
jmp 0x5067bb
mov byte [ecx], 1
mov eax, dword [ebp - 0x38]
and byte [edi + 0xf4], 0xfe
push esi
push eax
push 1
push edi
call fcn.005150d0
add esp, 0x10
jmp 0x5067bb
mov byte [edi + 0x13c], 0
jmp 0x5067bb
push str.Received_HTTP_0.9_when_not_allowed
push edi
jmp 0x5067d9
push str.Received_101
push edi
call fcn.00514fc0
add esp, 8
mov dword [edi + 0x10c], 2
mov byte [edi + 0x13c], 1
mov dword [edi + 0xdc], 0
jmp 0x5067e1
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x34]
cmp ecx, 5
mov eax, 5
cmovb eax, ecx
push eax
push dword [ebp - 0x2c]
push str.HTTP_
call fcn.0051c730
add esp, 0xc
test bl, bl
je 0x5067bb
test eax, eax
jne 0x5067bb
mov byte [esi + 0x13c], 0
mov eax, 2
mov dword [esi + 0xd8], eax
push eax
push dword [ebp + 0xc]
call fcn.004f7600
add esp, 8
cmp byte [esi + 0x72f], 0
mov ebx, 0
jne 0x5067bd
push str.Received_HTTP_0.9_when_not_allowed
push esi
jmp 0x5067d9
push str.Unsupported_response_code_in_HTTP_response
jmp 0x5067d6
mov dword [edi + 0xd8], 2
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
mov eax, dword [ebp - 0x48]
mov dword [edi + 0xe0], eax
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
push str.Unsupported_HTTP_version_in_response
push dword [ebp + 8]
call fcn.00515170
add esp, 8
xor ebx, ebx
inc ebx
jmp 0x5067bd
xor ebx, ebx
cmp dword [ebp - 0x34], 4
mov esi, dword [ebp + 8]
jbe 0x506741
jmp 0x5067bd
mov edx, 0x66666667
mov eax, ecx
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 dword [ebp + 8]
call fcn.00515170
add esp, 0x10
jmp 0x5067e1
push str.Maximum_file_size_exceeded
push dword [ebp + 8]
call fcn.00515170
add esp, 8
mov ebx, 0x3f
jmp 0x5067bd