Function at 0x4c7c4e
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esi, [ebx + 0x18]
mov eax, dword [esi + 0x5c]
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x60], eax
push dword [edi]
push 0xa
push eax
call fcn.004a06b0
add esp, 0xc
test eax, eax
mov dword [esi + 0x64], eax
je 0x4c85ef
sub eax, dword [esi + 0x5c]
inc eax
sub dword [edi], eax
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x64]
inc eax
mov dword [esi + 0x5c], eax
sub eax, dword [esi + 0x60]
push eax
call fcn.004c64d2
test eax, eax
pop ecx
jne 0x4c8720
mov eax, dword [esi + 0x54]
mov dword [esi + 0x64], eax
mov eax, dword [ebx + 0x524]
xor edx, edx
cmp dword [esi + 0x50], edx
mov dword [esi + 0x68], eax
jne 0x4c7cd4
cmp dword [esi + 0x58], 5
jbe 0x4c7cd4
push dword [ebx + 0x524]
mov eax, ebx
call fcn.004c64cd
test eax, eax
pop ecx
je 0x4c8637
xor edx, edx
mov eax, dword [esi + 0x68]
mov cl, byte [eax]
cmp cl, 0xa
je 0x4c8478
cmp cl, 0xd
je 0x4c847d
mov ecx, dword [esi + 0x50]
cmp ecx, edx
lea edi, [ecx + 1]
mov dword [esi + 0x50], edi
jne 0x4c7eff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x30]
test cl, 1
je 0x4c7d9c
mov ecx, dword [ebp + 0xc]
lea edi, [esi + 0x78]
push edi
add ecx, 0x114
push ecx
lea ecx, [ebp - 4]
push ecx
push str._HTTP__d._d__3d
push eax
call fcn.004a03f5
add esp, 0x14
cmp eax, 3
jne 0x4c7d44
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
imul ecx, ecx, 0xa
add dword [eax + 0x114], ecx
jmp 0x4c7df9
push edi
push str._HTTP__3d
push dword [esi + 0x68]
call fcn.004a03f5
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
add eax, 0x114
add esp, 0xc
cmp dword [ebp + 8], 0
mov dword [eax], 0xa
jne 0x4c7df6
push dword [esi + 0x68]
mov eax, ebx
call fcn.004c6477
test eax, eax
pop ecx
je 0x4c7dec
mov eax, dword [ebp + 0xc]
add eax, 0x114
mov dword [edi], 0xc8
mov dword [ebp + 8], 1
mov dword [eax], 0xa
jmp 0x4c7dec
test ecx, 0x40000
je 0x4c865d
mov ecx, dword [ebp + 0xc]
lea edi, [esi + 0x78]
push edi
add ecx, 0x118
push ecx
lea ecx, [ebp - 8]
push ecx
push str._RTSP__d._d__3d
push eax
call fcn.004a03f5
add esp, 0x14
cmp eax, 3
jne 0x4c7de8
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
imul ecx, ecx, 0xa
add dword [eax + 0x118], ecx
mov dword [eax + 0x114], 0xb
jmp 0x4c7df9
and dword [ebp + 8], 0
cmp dword [ebp + 8], 0
je 0x4c865d
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi]
mov dword [ebx + 0x8674], ecx
mov ecx, dword [eax + 0x114]
mov dword [ebx + 0x867c], ecx
lea ecx, [ebx + 0x860c]
mov edx, dword [ecx]
test edx, edx
je 0x4c7e21
cmp edx, dword [eax + 0x114]
jle 0x4c7e29
mov edx, dword [eax + 0x114]
mov dword [ecx], edx
xor edx, edx
cmp dword [ebx + 0x2b0], edx
je 0x4c7e88
mov ecx, dword [edi]
cmp ecx, 0x190
jl 0x4c7e88
cmp ecx, 0x191
jne 0x4c7e4d
cmp dword [eax + 0x1a4], edx
jne 0x4c7e88
cmp ecx, 0x197
jne 0x4c7e5d
cmp dword [eax + 0x1a8], edx
jne 0x4c7e88
mov edx, dword [ebx + 0x8638]
or edx, dword [ebx + 0x863c]
je 0x4c867b
cmp dword [ebx + 0x210], 1
jne 0x4c867b
cmp ecx, 0x1a0
jne 0x4c867b
mov ecx, dword [eax + 0x114]
cmp ecx, 0xa
jne 0x4c7eaf
push str.HTTP_1.0__assume_close_after_body_n
push ebx
call fcn.004c31ff
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
mov dword [eax + 0x194], 1
jmp 0x4c7ec7
cmp ecx, 0xb
jl 0x4c7ec7
cmp dword [eax + 0x194], 0
jne 0x4c7ec7
mov dword [eax + 0x248], 1
mov edi, dword [edi]
sub edi, 0xcc
je 0x4c7ed6
sub edi, 0x64
jne 0x4c7eff
xor eax, eax
cmp dword [ebx + 0x200], eax
je 0x4c7eea
mov dword [ebx + 0x8684], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xb4], 1
cmp dword [esi + 0xb4], 0
jne 0x4c7fb3
cmp dword [ebx + 0x30c], 0
jne 0x4c7fb3
push 0xf
push dword [esi + 0x68]
push str.Content_Length:
call fcn.004cb45f
add esp, 0xc
test eax, eax
je 0x4c7fb3
mov eax, dword [esi + 0x68]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.004ac628
mov edi, dword [ebx + 0x278]
mov ecx, dword [ebx + 0x27c]
add esp, 0xc
or edi, ecx
je 0x4c7f6c
cmp edx, ecx
jg 0x4c8666
jl 0x4c7f6c
cmp eax, dword [ebx + 0x278]
ja 0x4c8666
test edx, edx
jl 0x4c7f91
jg 0x4c7f76
test eax, eax
jb 0x4c7f91
push edx
push eax
push ebx
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.004cac67
add esp, 0xc
jmp 0x4c8414
mov ecx, dword [ebp + 0xc]
push edx
push eax
push str.Negative_content_length:__lld__closing_after_transfer_n
push ebx
mov dword [ecx + 0x194], 1
call fcn.004c31ff
add esp, 0x10
jmp 0x4c8414
push 0xd
push dword [esi + 0x68]
push str.Content_Type:
call fcn.004cb45f
add esp, 0xc
test eax, eax
je 0x4c7ffe
push dword [esi + 0x68]
call fcn.004c59cc
test eax, eax
pop ecx
mov dword [ebp + 8], eax
je 0x4c8677
cmp byte [eax], 0
je 0x4c83d6
lea edi, [ebx + 0x869c]
push dword [edi]
call fcn.004bb992
mov eax, dword [ebp + 8]
pop ecx
mov dword [edi], eax
jmp 0x4c8414
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x114], 0xa
jne 0x4c8033
cmp dword [edi + 0x1a0], 0
je 0x4c8033
push str.keep_alive
push str.Proxy_Connection:
push dword [esi + 0x68]
call fcn.004c6284
add esp, 0xc
test eax, eax
je 0x4c8033
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
jmp 0x4c8096
cmp dword [edi + 0x114], 0xb
jne 0x4c806f
cmp dword [edi + 0x1a0], 0
je 0x4c806f
push str.close
push str.Proxy_Connection:
push dword [esi + 0x68]
call fcn.004c6284
add esp, 0xc
test eax, eax
je 0x4c806f
mov dword [edi + 0x194], 1
push str.HTTP_1.1_proxy_connection_set_close__n
jmp 0x4c809d
cmp dword [edi + 0x114], 0xa
jne 0x4c80a9
push str.keep_alive
push str.Connection:
push dword [esi + 0x68]
call fcn.004c6284
add esp, 0xc
test eax, eax
je 0x4c80a9
push str.HTTP_1.0_connection_set_to_keep_alive__n
and dword [edi + 0x194], 0
push ebx
call fcn.004c31ff
pop ecx
jmp 0x4c83dd
push str.close
push str.Connection:
push dword [esi + 0x68]
call fcn.004c6284
add esp, 0xc
test eax, eax
je 0x4c80d1
mov dword [edi + 0x194], 1
jmp 0x4c8414
push str.chunked
push str.Transfer_Encoding:
push dword [esi + 0x68]
call fcn.004c6284
add esp, 0xc
test eax, eax
je 0x4c8108
test dword [edi + 0x30], 0x40000
jne 0x4c8108
push edi
mov dword [esi + 0xc8], 1
call fcn.004cbac5
jmp 0x4c83dd
push 0x11
push dword [esi + 0x68]
push str.Content_Encoding:
call fcn.004cb45f
add esp, 0xc
test eax, eax
je 0x4c8201
cmp dword [ebx + 0x348], 0
je 0x4c8201
mov edi, dword [esi + 0x68]
add edi, 0x11
jmp 0x4c8146
movzx eax, al
push eax
call fcn.004a1123
test eax, eax
pop ecx
je 0x4c814c
inc edi
mov al, byte [edi]
test al, al
jne 0x4c8137
push 8
push edi
push str.identity
call fcn.004cb45f
add esp, 0xc
test eax, eax
je 0x4c816c
and dword [esi + 0x88], 0
jmp 0x4c8414
push 7
push edi
push str.deflate
call fcn.004cb45f
add esp, 0xc
test eax, eax
je 0x4c818f
mov dword [esi + 0x88], 1
jmp 0x4c8414
push 4
push edi
push str.gzip
call fcn.004cb45f
add esp, 0xc
test eax, eax
jne 0x4c81f2
push 6
push edi
push str.x_gzip
call fcn.004cb45f
add esp, 0xc
test eax, eax
jne 0x4c81f2
push 8
push edi
push str.compress
call fcn.004cb45f
add esp, 0xc
test eax, eax
jne 0x4c81e3
push 0xa
push edi
push str.x_compress
call fcn.004cb45f
add esp, 0xc
test eax, eax
je 0x4c8414
mov dword [esi + 0x88], 3
jmp 0x4c8414
mov dword [esi + 0x88], 2
jmp 0x4c8414
push 0xe
push dword [esi + 0x68]
push str.Content_Range:
call fcn.004cb45f
add esp, 0xc
test eax, eax
je 0x4c8270
mov edi, dword [esi + 0x68]
add edi, 0xe
jmp 0x4c822e
movzx eax, al
push eax
call fcn.004a102c
test eax, eax
pop ecx
jne 0x4c8234
inc edi
mov al, byte [edi]
test al, al
jne 0x4c821f
push 0xa
push 0
push edi
call fcn.004ac628
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
mov eax, dword [ebx + 0x8638]
add esp, 0xc
cmp eax, dword [esi + 0x70]
jne 0x4c8414
mov eax, dword [ebx + 0x863c]
cmp eax, edx
jne 0x4c8414
mov dword [esi + 0x6c], 1
jmp 0x4c8414
cmp dword [ebx + 0x408], 0
je 0x4c82d5
push 0xb
push dword [esi + 0x68]
push str.Set_Cookie:
call fcn.004cb45f
add esp, 0xc
test eax, eax
je 0x4c82d5
push 2
push 2
push ebx
call fcn.004c508a
mov eax, dword [edi + 0x234]
add esp, 0xc
test eax, eax
jne 0x4c82a9
mov eax, dword [edi + 0x7c]
push dword [ebx + 0x8624]
push eax
mov eax, dword [esi + 0x68]
add eax, 0xb
push eax
push 1
push dword [ebx + 0x408]
push ebx
call fcn.004c20b1
push 2
push ebx
call fcn.004c50c3
add esp, 0x20
jmp 0x4c8414
push 0xe
push dword [esi + 0x68]
push str.Last_Modified:
call fcn.004cb45f
add esp, 0xc
test eax, eax
je 0x4c8341
cmp dword [ebx + 0x200], 0
jne 0x4c82fd
cmp dword [ebx + 0x294], 0
je 0x4c8341
push 0
call fcn.004a1b5b
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x68]
add eax, 0xe
push eax
mov dword [ebp - 0xc], edx
call fcn.004ccb9c
add esp, 0xc
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], edx
cmp dword [ebx + 0x294], 0
je 0x4c8414
mov dword [ebx + 0x8680], eax
jmp 0x4c8414
push 0x11
push dword [esi + 0x68]
push str.WWW_Authenticate:
call fcn.004cb45f
add esp, 0xc
test eax, eax
je 0x4c8361
mov eax, dword [esi + 0x78]
cmp eax, 0x191
je 0x4c8381
push 0x13
push dword [esi + 0x68]
push str.Proxy_authenticate:
call fcn.004cb45f
add esp, 0xc
test eax, eax
je 0x4c8390
mov eax, dword [esi + 0x78]
cmp eax, 0x197
jne 0x4c8390
push dword [esi + 0x68]
push eax
push edi
call fcn.004c5e76
add esp, 0xc
jmp 0x4c840c
mov eax, dword [esi + 0x78]
cmp eax, 0x12c
jl 0x4c8414
cmp eax, 0x190
jge 0x4c8414
push 9
push dword [esi + 0x68]
push str.Location:
call fcn.004cb45f
add esp, 0xc
test eax, eax
je 0x4c8414
cmp dword [ebx + 0xd0], 0
jne 0x4c8414
push dword [esi + 0x68]
call fcn.004c59cc
test eax, eax
pop ecx
je 0x4c8677
cmp byte [eax], 0
jne 0x4c83e0
push eax
call dword [0x5045d8]
pop ecx
jmp 0x4c8414
cmp dword [ebx + 0x2b4], 0
mov dword [ebx + 0xd0], eax
je 0x4c8414
push eax
call dword [0x5045e0]
test eax, eax
pop ecx
mov dword [ebx + 0xd4], eax
je 0x4c8677
push edi
call fcn.004c5b6d
pop ecx
test eax, eax
jne 0x4c8720
cmp dword [ebx + 0x2bc], 0
push 2
pop edi
je 0x4c8423
push 3
pop edi
cmp dword [ebx + 0x2d8], 0
je 0x4c8440
push dword [ebp + 0xc]
push dword [esi + 0x58]
push dword [esi + 0x68]
push 1
push ebx
call fcn.004c3143
add esp, 0x14
push dword [esi + 0x58]
push dword [esi + 0x68]
push edi
push dword [ebp + 0xc]
call fcn.004c3426
add esp, 0x10
test eax, eax
jne 0x4c8720
mov eax, dword [esi + 0x58]
add dword [ebx + 0x8688], eax
mov eax, dword [esi + 0x58]
add dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x524]
and dword [esi + 0x58], 0
jmp 0x4c85cf
cmp cl, 0xd
jne 0x4c8481
inc eax
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x68]
cmp byte [eax], 0xa
jne 0x4c848d
inc eax
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x78]
cmp eax, 0x64
jl 0x4c84bb
cmp eax, 0xc7
jg 0x4c84bb
lea eax, [esi + 0x84]
cmp dword [eax], edx
mov dword [esi + 0x48], 1
mov dword [esi + 0x50], edx
je 0x4c8507
or dword [esi + 0xa8], 2
mov dword [eax], edx
jmp 0x4c8507
mov eax, dword [esi]
and eax, dword [esi + 4]
mov dword [esi + 0x48], edx
cmp eax, 0xffffffff
jne 0x4c8507
cmp dword [esi + 0xc8], edx
jne 0x4c8507
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x194], edx
jne 0x4c8507
cmp dword [eax + 0x114], 0xb
jl 0x4c8507
test dword [eax + 0x30], 0x40000
jne 0x4c8507
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end_n
push ebx
call fcn.004c31ff
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
mov dword [eax + 0x194], 1
cmp dword [esi + 0x78], 0x1a1
jne 0x4c8521
and dword [esi + 0xa8], 0xfffffffd
mov dword [esi + 0x84], 3
push dword [ebp + 0xc]
call fcn.004c5f09
test eax, eax
pop ecx
jne 0x4c867b
cmp dword [ebx + 0x2bc], eax
push 2
pop ecx
je 0x4c8540
push 3
pop ecx
mov eax, dword [ebx + 0x524]
mov edi, dword [esi + 0x68]
sub edi, eax
push edi
push eax
push ecx
push dword [ebp + 0xc]
call fcn.004c3426
add esp, 0x10
test eax, eax
jne 0x4c8720
add dword [ebx + 0x48], edi
add dword [ebx + 0x8688], edi
mov eax, dword [esi + 0x78]
cmp eax, 0x64
mov ecx, dword [ebx + 0x48]
jl 0x4c857c
cmp eax, 0xc7
jle 0x4c857e
xor ecx, ecx
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x4c], ecx
cmp dword [eax], 0
jne 0x4c85bb
push dword [ebp + 0xc]
call fcn.004c6578
test eax, eax
pop ecx
jne 0x4c8720
mov eax, dword [ebp + 0xc]
xor edx, edx
cmp dword [eax + 0x1d0], edx
je 0x4c85bd
push str.Keep_sending_data_to_get_tossed_away__n
push ebx
call fcn.004c31ff
or dword [esi + 0xa8], 2
pop ecx
pop ecx
xor edx, edx
cmp dword [esi + 0x48], edx
je 0x4c8694
mov eax, dword [ebx + 0x524]
mov dword [esi + 0x58], edx
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x4c871e
mov eax, dword [esi + 0x5c]
cmp byte [eax], 0
je 0x4c871e
jmp 0x4c7c5d
push dword [edi]
call fcn.004c64d2
test eax, eax
pop ecx
jne 0x4c8720
cmp dword [esi + 0x50], eax
jne 0x4c871e
cmp dword [esi + 0x58], 5
jbe 0x4c871e
push dword [ebx + 0x524]
mov eax, ebx
call fcn.004c64cd
test eax, eax
pop ecx
jne 0x4c871e
and dword [esi + 0x48], eax
mov dword [esi + 0x4c], 2
jmp 0x4c871e
and dword [esi + 0x48], 0
cmp dword [edi], 0
je 0x4c864c
mov dword [esi + 0x4c], 1
jmp 0x4c871e
mov eax, dword [ebp + 8]
mov dword [esi + 0x4c], 2
mov dword [edi], eax
jmp 0x4c871e
and dword [esi + 0x48], 0
jmp 0x4c871e
push str.Maximum_file_size_exceeded
push ebx
call fcn.004c3272
pop ecx
pop ecx
push 0x3f
jmp 0x4c868e
push 0x1b
jmp 0x4c868e
push dword [esi + 0x78]
push str.The_requested_URL_returned_error:__d
push ebx
call fcn.004c3272
add esp, 0xc
push 0x16
pop eax
jmp 0x4c8720
cmp dword [ebx + 0x2c8], edx
je 0x4c86a7
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
jmp 0x4c86bd
cmp dword [esi + 0xc8], edx
je 0x4c86bd
or eax, 0xffffffff
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
mov ecx, dword [esi + 4]
jne 0x4c86cb
cmp ecx, eax
je 0x4c86e3
push ecx
push eax
push ebx
call fcn.004cac67
mov eax, dword [esi]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0x14], eax
xor edx, edx
cmp dword [esi + 0x10], edx
jne 0x4c86f6
cmp dword [esi + 0x14], edx
jne 0x4c86f6
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [ebp + 0x14]
cmp dword [eax], edx
je 0x4c8704
and dword [esi + 0xa8], 0xfffffffe
cmp dword [ebx + 0x2d8], edx
je 0x4c871e
push dword [ebp + 0xc]
push edi
push dword [esi + 0x60]
push 1
push ebx
call fcn.004c3143
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret