Function at 0x476570
Capabilities:
Check http status code
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
push esi
push edi
mov dword [ebp - 8], ebx
lea edi, [ebx + 0x50]
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x5c]
mov dword [edi + 0x60], eax
push dword [ecx]
push 0xa
push eax
call dword [sym.imp.MSVCR120.dll_memchr]
mov esi, eax
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, edi
mov dword [edi + 0x64], esi
mov ecx, ebx
test esi, esi
je 0x47741e
sub esi, dword [edi + 0x5c]
inc esi
sub dword [eax], esi
mov eax, dword [edi + 0x64]
inc eax
mov dword [edi + 0x5c], eax
sub eax, dword [edi + 0x60]
push eax
call fcn.00476400
add esp, 4
test eax, eax
jne 0x477455
mov eax, dword [edi + 0x54]
mov dword [edi + 0x64], eax
mov eax, dword [ebx + 0x59c]
mov ebx, dword [edi + 0x50]
mov dword [edi + 0x68], eax
test ebx, ebx
jne 0x476604
cmp dword [edi + 0x58], 5
jbe 0x476604
mov eax, dword [ebp - 8]
mov ecx, eax
mov edx, dword [eax + 0x59c]
call fcn.00476320
test al, al
je 0x4772d0
mov ecx, dword [edi + 0x68]
mov al, byte [ecx]
cmp al, 0xa
je 0x47701a
cmp al, 0xd
je 0x47701e
lea eax, [ebx + 1]
mov dword [edi + 0x50], eax
test ebx, ebx
jne 0x476866
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x27c]
mov eax, dword [eax + 0x3c]
test al, 3
je 0x4766d1
lea ebx, [edi + 0x78]
push ebx
lea esi, [edx + 0x13c]
push esi
lea eax, [ebp - 0xc]
push eax
push str._HTTP__d._d__d
push ecx
call dword [sym.imp.MSVCR120.dll_sscanf]
add esp, 0x14
cmp eax, 3
jne 0x476694
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*4]
add eax, eax
add dword [esi], eax
cmp dword [edi + 0x88], 2
jne 0x47671c
cmp dword [esi], 0x14
je 0x47671c
mov eax, dword [ebp - 8]
push str.Lying_server__not_serving_HTTP_2_n
push eax
call fcn.0046c300
add esp, 8
jmp 0x47671c
push ebx
push str._HTTP__3d
push dword [edi + 0x68]
call dword [sym.imp.MSVCR120.dll_sscanf]
add esp, 0xc
mov dword [esi], 0xa
test eax, eax
jne 0x47671c
mov edx, dword [edi + 0x68]
mov ecx, dword [ebp - 8]
call fcn.00476320
test al, al
je 0x47744f
mov dword [ebx], 0xc8
mov dword [esi], 0xa
jmp 0x47671c
test eax, 0x40000
je 0x47744f
lea ebx, [edi + 0x78]
push ebx
lea esi, [edx + 0x140]
push esi
lea eax, [ebp - 0x10]
push eax
push str._RTSP__d._d__3d
push ecx
call dword [sym.imp.MSVCR120.dll_sscanf]
add esp, 0x14
cmp eax, 3
jne 0x47744f
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*4]
add eax, eax
add dword [esi], eax
mov esi, dword [ebp - 4]
add esi, 0x13c
mov dword [esi], 0xb
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
mov dword [edx + 0x8734], eax
mov eax, dword [esi]
mov dword [edx + 0x873c], eax
mov eax, dword [edx + 0x86c0]
test eax, eax
je 0x47673d
cmp eax, dword [esi]
jle 0x476745
mov eax, dword [esi]
mov dword [edx + 0x86c0], eax
cmp byte [edx + 0x300], 0
je 0x4767a8
mov ecx, dword [ebx]
cmp ecx, 0x190
jl 0x4767a8
mov eax, dword [ebp - 4]
cmp ecx, 0x191
jne 0x47676c
cmp byte [eax + 0x255], 0
jne 0x4767a8
cmp ecx, 0x197
jne 0x47677d
cmp byte [eax + 0x256], 0
jne 0x4767a8
mov eax, dword [edx + 0x86d8]
or eax, dword [edx + 0x86dc]
je 0x4772fe
cmp dword [edx + 0x288], 1
jne 0x4772fe
cmp ecx, 0x1a0
jne 0x4772fe
mov eax, dword [esi]
cmp eax, 0xa
jne 0x4767c9
push str.HTTP_1.0__assume_close_after_body_n
push edx
call fcn.0046c300
mov esi, dword [ebp - 4]
add esp, 8
mov byte [esi + 0x251], 1
jmp 0x476821
cmp eax, 0x14
je 0x476812
cmp dword [edi + 0x88], 1
jne 0x4767dc
cmp dword [ebx], 0x65
je 0x476812
cmp eax, 0xb
jl 0x476821
mov esi, dword [ebp - 4]
cmp byte [esi + 0x251], 0
jne 0x476821
cmp dword [esi + 0x55c], 0
je 0x476821
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.0046f8b0
test al, al
jne 0x476821
mov eax, dword [esi + 0x55c]
mov dword [eax], 1
jmp 0x476821
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x55c]
mov dword [eax], 2
mov eax, dword [ebx]
sub eax, 0xcc
je 0x47682f
sub eax, 0x64
jne 0x476866
mov ebx, dword [ebp - 8]
cmp dword [ebx + 0x278], 0
je 0x476842
mov byte [ebx + 0x8744], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [edi + 0xee], 1
jmp 0x476869
mov ebx, dword [ebp - 8]
cmp byte [edi + 0xee], 0
jne 0x4769ab
cmp byte [ebx + 0x327], 0
jne 0x4769ab
mov esi, dword [edi + 0x68]
mov ecx, str.Content_Length:
push 0xf
mov edx, esi
call fcn.0047b230
add esp, 4
test eax, eax
je 0x4769ab
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call dword [sym.imp.MSVCR120.dll_strtoll]
mov ebx, dword [ebx + 0x2e0]
mov ecx, eax
mov eax, dword [ebp - 8]
add esp, 0xc
mov esi, dword [eax + 0x2e4]
mov eax, ebx
or eax, esi
je 0x4768d9
cmp edx, esi
jg 0x477311
jl 0x4768d9
cmp ecx, ebx
ja 0x477311
test edx, edx
jl 0x47698a
jg 0x4768eb
test ecx, ecx
jb 0x47698a
push edx
mov dword [edi], ecx
mov dword [edi + 0x10], ecx
push ecx
mov ecx, dword [ebp - 8]
mov dword [edi + 4], edx
mov dword [edi + 0x14], edx
call fcn.00477a30
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, 2
mov edx, 3
cmp byte [eax + 0x304], 0
cmovne ebx, edx
cmp byte [eax + 0x310], 0
je 0x47693c
push ecx
push dword [edi + 0x58]
mov edx, 1
mov ecx, eax
push dword [edi + 0x68]
call fcn.0046ca70
add esp, 0xc
mov ecx, dword [edi + 0x58]
mov esi, dword [edi + 0x68]
test ecx, ecx
jne 0x476959
mov ecx, esi
lea edx, [ecx + 1]
jmp 0x476950
mov al, byte [ecx]
inc ecx
test al, al
jne 0x476950
sub ecx, edx
push ecx
mov ecx, dword [ebp - 4]
mov edx, ebx
push esi
call fcn.0046c6d0
add esp, 8
test eax, eax
jne 0x477455
mov ebx, dword [ebp - 8]
mov eax, dword [edi + 0x58]
add dword [ebx + 0x8748], eax
mov eax, dword [edi + 0x58]
add dword [ebx + 0x80], eax
jmp 0x4771fa
mov eax, dword [ebp - 4]
push edx
push ecx
push str.Negative_content_length:__I64d__closing_after_transfer_n
push dword [ebp - 8]
mov byte [eax + 0x251], 1
call fcn.0046c300
add esp, 0x10
jmp 0x476903
mov esi, dword [edi + 0x68]
mov ecx, str.Content_Type:
push 0xd
mov edx, esi
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476a02
mov ecx, esi
call fcn.00473090
mov esi, eax
test esi, esi
je 0x47732d
cmp byte [esi], 0
jne 0x4769e8
push esi
call dword [0x4e52dc]
add esp, 4
jmp 0x476903
push dword [ebx + 0x875c]
call dword [0x4e52dc]
add esp, 4
mov dword [ebx + 0x875c], esi
jmp 0x476903
push 7
mov edx, esi
mov ecx, str.Server:
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476a6d
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x13c], 0x14
jge 0x476906
mov ecx, esi
call fcn.00473090
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x55c]
test ecx, ecx
je 0x476a5e
cmp dword [ecx], 1
jne 0x476a5e
mov edx, esi
mov ecx, ebx
call fcn.0046f990
test al, al
je 0x476a5e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x55c]
mov dword [eax], 0xffffffff
push esi
call dword [0x4e52dc]
add esp, 4
jmp 0x476903
mov eax, dword [ebp - 4]
cmp dword [eax + 0x13c], 0xa
jne 0x476ab4
cmp byte [eax + 0x254], 0
je 0x476ab4
push str.keep_alive
mov edx, str.Proxy_Connection:
mov ecx, esi
call fcn.00474180
add esp, 4
test al, al
je 0x476ab4
mov eax, dword [ebp - 4]
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
push ebx
mov byte [eax + 0x251], 0
call fcn.0046c300
jmp 0x476900
mov esi, dword [ebp - 4]
cmp dword [esi + 0x13c], 0xb
jne 0x476afe
cmp byte [esi + 0x254], 0
je 0x476afe
mov ecx, dword [edi + 0x68]
mov edx, str.Proxy_Connection:
push str.close
call fcn.00474180
add esp, 4
test al, al
je 0x476afe
push str.HTTP_1.1_proxy_connection_set_close__n
push ebx
mov byte [esi + 0x251], 1
call fcn.0046c300
add esp, 8
mov ecx, esi
jmp 0x476906
cmp dword [esi + 0x13c], 0xa
jne 0x476b3c
mov ecx, dword [edi + 0x68]
mov edx, str.Connection:
push str.keep_alive
call fcn.00474180
add esp, 4
test al, al
je 0x476b3c
push str.HTTP_1.0_connection_set_to_keep_alive__n
push ebx
mov byte [esi + 0x251], 0
call fcn.0046c300
add esp, 8
mov ecx, esi
jmp 0x476906
mov ecx, dword [edi + 0x68]
mov edx, str.Connection:
push str.close
call fcn.00474180
add esp, 4
test al, al
je 0x476b63
mov ecx, esi
mov byte [ecx + 0x251], 1
jmp 0x476906
mov esi, dword [edi + 0x68]
mov ecx, str.Transfer_Encoding:
push 0x12
mov edx, esi
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476c92
add esi, 0x12
mov al, byte [esi]
test al, al
je 0x476bae
jmp 0x476b90
movzx eax, al
push eax
call dword [sym.imp.MSVCR120.dll_isspace]
add esp, 4
test eax, eax
jne 0x476ba6
cmp byte [esi], 0x2c
jne 0x476bae
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x476b90
push 7
mov edx, esi
mov ecx, str.chunked
call fcn.0047b230
mov ecx, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x476be5
mov byte [edi + 0x100], 1
add esi, 7
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x20], 0
cmp dword [edi + 0x8c], 0
jne 0x476906
push 8
mov edx, esi
mov ecx, str.identity
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476c19
mov dword [edi + 0x8c], 0
add esi, 8
jmp 0x476b82
push 7
mov edx, esi
mov ecx, str.deflate
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476c40
mov dword [edi + 0x8c], 1
add esi, 7
jmp 0x476b82
push 4
mov edx, esi
mov ecx, str.gzip
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476c67
mov dword [edi + 0x8c], 2
add esi, 4
jmp 0x476b82
push 6
mov edx, esi
mov ecx, str.x_gzip
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476903
mov dword [edi + 0x8c], 2
add esi, 6
jmp 0x476b82
push 0x11
mov edx, esi
mov ecx, str.Content_Encoding:
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476d60
cmp dword [ebx + 0x35c], 0
je 0x476d60
mov al, byte [esi + 0x11]
add esi, 0x11
test al, al
je 0x476cdb
movzx eax, al
push eax
call dword [sym.imp.MSVCR120.dll_isspace]
add esp, 4
test eax, eax
je 0x476cdb
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x476cc2
push 8
mov edx, esi
mov ecx, str.identity
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476cff
mov dword [edi + 0x8c], 0
jmp 0x476903
push 7
mov edx, esi
mov ecx, str.deflate
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476d23
mov dword [edi + 0x8c], 1
jmp 0x476903
push 4
mov edx, esi
mov ecx, str.gzip
call fcn.0047b230
add esp, 4
test eax, eax
jne 0x476d51
push 6
mov edx, esi
mov ecx, str.x_gzip
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476903
mov dword [edi + 0x8c], 2
jmp 0x476903
push 0xe
mov edx, esi
mov ecx, str.Content_Range:
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476e06
mov al, byte [esi + 0xe]
add esi, 0xe
test al, al
je 0x476da1
movzx eax, al
push eax
call dword [sym.imp.MSVCR120.dll_isdigit]
add esp, 4
test eax, eax
jne 0x476da1
cmp byte [esi], 0x2a
je 0x476da1
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x476d83
movzx eax, byte [esi]
push eax
call dword [sym.imp.MSVCR120.dll_isdigit]
add esp, 4
test eax, eax
je 0x476ded
push 0xa
push 0
push esi
call dword [sym.imp.MSVCR120.dll_strtoll]
mov dword [edi + 0x70], eax
add esp, 0xc
mov dword [edi + 0x74], edx
mov eax, dword [ebx + 0x86d8]
cmp eax, dword [edi + 0x70]
jne 0x476903
mov ecx, dword [ebp - 4]
cmp dword [ebx + 0x86dc], edx
jne 0x476906
mov byte [edi + 0x6c], 1
jmp 0x476906
mov dword [ebx + 0x86d8], 0
mov dword [ebx + 0x86dc], 0
jmp 0x476903
cmp dword [ebx + 0x470], 0
je 0x476e78
push 0xb
mov edx, esi
mov ecx, str.Set_Cookie:
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476e78
push ecx
mov edx, 2
mov ecx, ebx
call fcn.0047aca0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ecx + 0x2ac]
test eax, eax
jne 0x476e47
mov eax, dword [ecx + 0x98]
push dword [ebx + 0x86cc]
mov edx, dword [ebx + 0x470]
mov ecx, ebx
push eax
mov eax, dword [edi + 0x68]
add eax, 0xb
push eax
push 1
call fcn.0046da10
add esp, 0x10
mov edx, 2
mov ecx, ebx
call fcn.0047ace0
jmp 0x476903
push 0xe
mov edx, esi
mov ecx, str.Last_Modified:
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476edc
cmp dword [ebx + 0x278], 0
jne 0x476e9f
cmp byte [ebx + 0x2f9], 0
je 0x476edc
push 0
call dword [sym.imp.MSVCR120.dll__time64]
mov ecx, dword [edi + 0x68]
add esp, 4
add ecx, 0xe
call fcn.004800e0
mov ecx, dword [ebp - 4]
mov dword [edi + 0xd0], eax
mov dword [edi + 0xd4], edx
cmp byte [ebx + 0x2f9], 0
je 0x476906
mov dword [ebx + 0x8740], eax
jmp 0x476906
push 0x11
mov edx, esi
mov ecx, str.WWW_Authenticate:
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476efb
mov eax, dword [edi + 0x78]
cmp eax, 0x191
je 0x476f1a
push 0x13
mov edx, esi
mov ecx, str.Proxy_authenticate:
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476f5e
mov eax, dword [edi + 0x78]
cmp eax, 0x197
jne 0x476f5e
cmp eax, 0x197
mov ecx, esi
sete bl
call fcn.00473090
mov esi, eax
test esi, esi
je 0x47732d
mov ecx, dword [ebp - 4]
mov dl, bl
push esi
call fcn.004738d0
add esp, 4
mov ebx, eax
push esi
call dword [0x4e52dc]
add esp, 4
test ebx, ebx
je 0x476903
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x78]
cmp eax, 0x12c
jl 0x476ff8
cmp eax, 0x190
jge 0x476ff8
push 9
mov edx, esi
mov ecx, str.Location:
call fcn.0047b230
add esp, 4
test eax, eax
je 0x476ff8
cmp dword [ebx + 0x140], 0
jne 0x476ff8
mov ecx, esi
call fcn.00473090
test eax, eax
je 0x47732d
cmp byte [eax], 0
jne 0x476fb8
push eax
call dword [0x4e52dc]
add esp, 4
jmp 0x476903
cmp byte [ebx + 0x301], 0
mov dword [ebx + 0x140], eax
je 0x476903
push eax
call dword [0x4e52d4]
add esp, 4
mov dword [ebx + 0x144], eax
test eax, eax
je 0x47732d
mov ecx, dword [ebp - 4]
call fcn.004732c0
test eax, eax
jne 0x477455
jmp 0x476903
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x27c]
test dword [eax + 0x3c], 0x40000
je 0x476906
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0xd
jne 0x477024
lea eax, [ecx + 1]
mov dword [edi + 0x68], eax
mov eax, dword [edi + 0x68]
cmp byte [eax], 0xa
jne 0x477030
inc eax
mov dword [edi + 0x68], eax
mov eax, dword [edi + 0x78]
cmp eax, 0x64
jl 0x477254
cmp eax, 0xc7
jg 0x477254
mov byte [edi + 0x48], 1
mov dword [edi + 0x50], 0
sub eax, 0x64
je 0x47722b
dec eax
jne 0x47706b
cmp dword [edi + 0x88], 1
je 0x477339
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
cmp byte [ebx + 0x251], 0
je 0x4770b5
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
jne 0x477090
cmp dword [ebx + 0x30c], 2
je 0x4770a0
cmp eax, 0x197
jne 0x4770b5
cmp dword [ebx + 0x348], 2
jne 0x4770b5
push str.Connection_closure_while_negotiating_auth__HTTP_1.0___n
push esi
call fcn.0046c300
add esp, 8
mov byte [esi + 0x868c], 1
mov ecx, ebx
call fcn.00473bd0
test eax, eax
jne 0x477401
cmp byte [esi + 0x304], al
mov ebx, 2
mov esi, dword [esi + 0x59c]
mov eax, 3
cmovne ebx, eax
mov eax, dword [edi + 0x68]
sub eax, esi
mov dword [ebp - 0x14], eax
mov ecx, eax
jne 0x4770f9
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4770f0
sub ecx, edx
push ecx
mov ecx, dword [ebp - 4]
mov edx, ebx
push esi
call fcn.0046c6d0
add esp, 8
test eax, eax
jne 0x477455
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
add dword [ebx + 0x80], esi
add dword [ebx + 0x8748], esi
mov eax, dword [edi + 0x78]
mov ecx, dword [ebx + 0x80]
cmp eax, 0x64
jl 0x477137
cmp eax, 0xc7
jle 0x477139
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x84], ecx
cmp byte [eax], 0
jne 0x4771f0
mov ecx, dword [ebp - 4]
call fcn.00473480
test eax, eax
jne 0x477455
cmp dword [edi + 0x78], 0x12c
mov ecx, dword [ebp - 4]
jl 0x4771cf
cmp byte [ecx + 0x25f], al
jne 0x4771cf
cmp byte [ecx + 0x251], al
jne 0x4771cf
cmp byte [ecx + 0x260], al
jne 0x4771d8
mov eax, dword [ebx + 0x288]
add eax, 0xfffffffe
cmp eax, 2
ja 0x4771cf
cmp byte [edi + 0xec], 0
jne 0x4771cf
push str.HTTP_error_before_end_of_send__stop_sending_n
push ebx
call fcn.0046c300
mov ecx, dword [ebp - 4]
add esp, 8
mov byte [ecx + 0x251], 1
and dword [edi + 0xe8], 0xfffffffd
mov byte [edi + 0xec], 1
cmp byte [ebx + 0x86c4], 0
je 0x4771cf
mov dword [edi + 0x84], 3
cmp byte [ecx + 0x260], 0
je 0x4771ed
push str.Keep_sending_data_to_get_tossed_away__n
push ebx
call fcn.0046c300
add esp, 8
or dword [edi + 0xe8], 2
mov eax, dword [ebp + 0xc]
cmp byte [edi + 0x48], 0
je 0x47735f
mov eax, dword [ebx + 0x59c]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x58], 0
cmp byte [eax], 0
jne 0x477453
mov eax, dword [edi + 0x5c]
cmp byte [eax], 0
jne 0x476584
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x84], 0
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
je 0x477071
or dword [edi + 0xe8], 2
mov dword [edi + 0x84], 0
jmp 0x477071
mov eax, dword [edi]
and eax, dword [edi + 4]
mov byte [edi + 0x48], 0
cmp eax, 0xffffffff
jne 0x47706b
cmp byte [edi + 0x100], 0
jne 0x47706b
mov esi, dword [ebp - 4]
cmp byte [esi + 0x251], 0
jne 0x47706b
cmp dword [esi + 0x13c], 0xb
jne 0x47706b
mov eax, dword [esi + 0x27c]
mov esi, dword [ebp - 8]
test dword [eax + 0x3c], 0x40000
jne 0x47706e
cmp dword [esi + 0x288], 5
je 0x47706e
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end_n
push esi
call fcn.0046c300
mov ebx, dword [ebp - 4]
add esp, 8
mov byte [ebx + 0x251], 1
jmp 0x477071
mov eax, dword [ebp + 8]
mov byte [edi + 0x48], 0
cmp dword [eax], 0
je 0x4772ec
mov dword [edi + 0x4c], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x4c], 2
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.004764d0
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Maximum_file_size_exceeded
push dword [ebp - 8]
call fcn.0046c410
add esp, 8
mov eax, 0x3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Received_101_n
push dword [ebp - 8]
call fcn.0046c300
add esp, 8
mov dword [edi + 0x88], 2
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x307], 0
je 0x47736d
mov byte [eax], 1
jmp 0x477391
cmp byte [edi + 0x100], 0
je 0x477391
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov ecx, dword [edi]
mov eax, dword [edi + 4]
cmp ecx, 0xffffffff
jne 0x47739f
cmp eax, ecx
je 0x4773b6
push eax
push ecx
mov ecx, ebx
call fcn.00477a30
mov eax, dword [edi]
add esp, 8
mov dword [edi + 0x10], eax
mov eax, dword [edi + 4]
mov dword [edi + 0x14], eax
cmp dword [edi + 0x10], 0
jne 0x4773ca
cmp dword [edi + 0x14], 0
jne 0x4773ca
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
jmp 0x4773d2
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x4773d9
and dword [edi + 0xe8], 0xfffffffe
cmp byte [ebx + 0x310], 0
je 0x477453
push dword [ebp - 4]
mov edx, 1
mov ecx, ebx
push esi
push dword [edi + 0x60]
call fcn.0046ca70
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0x78]
push str.The_requested_URL_returned_error:__d
push esi
call fcn.0046c410
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [eax]
call fcn.00476400
add esp, 4
test eax, eax
jne 0x477455
cmp dword [edi + 0x50], eax
jne 0x477453
cmp dword [edi + 0x58], 5
jbe 0x477453
mov edx, dword [ebx + 0x59c]
mov ecx, ebx
call fcn.00476320
test al, al
jne 0x477453
mov dword [edi + 0x4c], 2
mov byte [edi + 0x48], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret