Function at 0x4a71e0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
lea ebx, [ebx]
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x60], eax
mov ecx, dword [ebx]
push ecx
push 0xa
push eax
call fcn.0058efa0
add esp, 0xc
mov dword [esi + 0x64], eax
test eax, eax
je 0x4a7bd3
sub eax, dword [esi + 0x5c]
inc eax
sub dword [ebx], eax
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x64]
inc eax
mov dword [esi + 0x5c], eax
sub eax, dword [esi + 0x60]
mov ecx, dword [edi + 0x450]
mov ebx, eax
mov eax, dword [esi + 0x58]
add eax, ebx
cmp eax, ecx
jb 0x4a727d
lea eax, [eax + eax*2]
shr eax, 1
add ecx, ecx
mov dword [ebp - 4], eax
cmp eax, ecx
ja 0x4a7244
mov dword [ebp - 4], ecx
mov eax, dword [edi + 0x44c]
mov ecx, dword [esi + 0x54]
sub ecx, eax
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
push ecx
push eax
call dword [0x75f008]
add esp, 8
test eax, eax
je 0x4a7c13
mov edx, dword [ebp - 4]
mov dword [edi + 0x44c], eax
add eax, dword [ebp - 8]
mov dword [edi + 0x450], edx
mov dword [esi + 0x54], eax
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x54]
push ebx
push edx
push eax
call fcn.005905c0
add dword [esi + 0x54], ebx
add dword [esi + 0x58], ebx
mov eax, dword [esi + 0x54]
mov byte [eax], 0
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x64], ecx
mov edx, dword [edi + 0x44c]
add esp, 0xc
cmp dword [esi + 0x50], 0
mov dword [esi + 0x68], edx
jne 0x4a72ca
cmp dword [esi + 0x58], 5
jbe 0x4a72ca
mov ebx, dword [edi + 0x44c]
mov eax, edi
call fcn.004a7040
test al, al
je 0x4a7c99
mov eax, dword [esi + 0x68]
mov cl, byte [eax]
cmp cl, 0xa
je 0x4a7a34
cmp cl, 0xd
je 0x4a7a39
mov ecx, dword [esi + 0x50]
lea edx, [ecx + 1]
mov dword [esi + 0x50], edx
test ecx, ecx
jne 0x4a742c
lea ecx, [esi + 0x78]
push ecx
lea ebx, [esi + 0x7c]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push str._HTTP__d._d__3d
push eax
call fcn.00590dac
add esp, 0x14
cmp eax, 3
jne 0x4a731d
mov eax, dword [ebp - 0xc]
lea edx, [eax + eax*4]
add edx, edx
add dword [ebx], edx
jmp 0x4a735c
lea eax, [esi + 0x78]
push eax
mov eax, dword [esi + 0x68]
push str._HTTP__3d
push eax
call fcn.00590dac
add esp, 0xc
mov dword [ebx], 0xa
test eax, eax
jne 0x4a735c
mov ebx, dword [esi + 0x68]
mov eax, edi
call fcn.004a7040
test al, al
je 0x4a7ccc
mov dword [esi + 0x78], 0xc8
mov dword [esi + 0x7c], 0xa
cmp byte [edi + 0x255], 0
mov ecx, dword [esi + 0x78]
mov ebx, dword [ebp + 8]
mov dword [edi + 0x8548], ecx
mov edx, dword [esi + 0x7c]
mov dword [edi + 0x8550], edx
je 0x4a73ce
mov eax, dword [esi + 0x78]
cmp eax, 0x190
jl 0x4a73ce
cmp eax, 0x191
jne 0x4a7394
cmp byte [ebx + 0x11c], 0
jne 0x4a73ce
cmp eax, 0x197
jne 0x4a73a4
cmp byte [ebx + 0x11d], 0
jne 0x4a73ce
mov ecx, dword [edi + 0x8538]
or ecx, dword [edi + 0x853c]
je 0x4a7cc6
cmp dword [edi + 0x1e0], 1
jne 0x4a7cc6
cmp eax, 0x1a0
jne 0x4a7cc6
mov eax, dword [esi + 0x7c]
cmp eax, 0xa
jne 0x4a73ed
push str.HTTP_1.0__assume_close_after_body_n
push edi
call fcn.004ab130
add esp, 8
mov byte [ebx + 0x118], 1
jmp 0x4a7402
cmp eax, 0xb
jl 0x4a7402
cmp byte [ebx + 0x118], 0
jne 0x4a7402
mov byte [ebx + 0x162], 1
mov eax, dword [esi + 0x78]
sub eax, 0xcc
je 0x4a7416
sub eax, 0x64
je 0x4a7416
sub eax, 0x70
jne 0x4a742f
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov byte [esi + 0xae], 1
jmp 0x4a742f
mov ebx, dword [ebp + 8]
cmp byte [esi + 0xae], 0
jne 0x4a74dd
cmp byte [edi + 0x27b], 0
jne 0x4a74dd
mov edx, dword [esi + 0x68]
push 0xf
push edx
push 0x6914dc
call fcn.004ac270
add esp, 0xc
test eax, eax
je 0x4a74dd
mov eax, dword [esi + 0x68]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.00591ae0
mov ebx, dword [edi + 0x240]
mov ecx, dword [edi + 0x244]
add esp, 0xc
or ebx, ecx
je 0x4a7499
cmp edx, ecx
jg 0x4a7cd7
jl 0x4a7499
cmp eax, dword [edi + 0x240]
ja 0x4a7cd7
test edx, edx
jl 0x4a74be
jg 0x4a74a3
test eax, eax
jb 0x4a74be
push edx
push eax
push edi
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.004ae510
add esp, 0xc
jmp 0x4a79d0
mov ecx, dword [ebp + 8]
push edx
push eax
push str.Negative_content_length:__lld__closing_after_transfer_n
push edi
mov byte [ecx + 0x118], 1
call fcn.004ab130
add esp, 0x10
jmp 0x4a79d0
mov edx, dword [esi + 0x68]
push 0xd
push edx
push str.Content_Type:
call fcn.004ac270
add esp, 0xc
test eax, eax
je 0x4a7538
mov eax, dword [esi + 0x68]
push eax
call fcn.004b8260
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4a7c21
cmp byte [ebx], 0
jne 0x4a751e
push ebx
call dword [0x75f004]
add esp, 4
jmp 0x4a79d0
mov ecx, dword [edi + 0x856c]
push ecx
call fcn.004a2820
add esp, 4
mov dword [edi + 0x856c], ebx
jmp 0x4a79d0
cmp dword [esi + 0x7c], 0xa
jne 0x4a757b
cmp byte [ebx + 0x11b], 0
je 0x4a757b
mov edx, dword [esi + 0x68]
push str.keep_alive
push str.Proxy_Connection:
push edx
call fcn.004b8db0
add esp, 0xc
test al, al
je 0x4a757b
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
push edi
mov byte [ebx + 0x118], 0
call fcn.004ab130
add esp, 8
jmp 0x4a79d0
cmp dword [esi + 0x7c], 0xb
jne 0x4a75be
cmp byte [ebx + 0x11b], 0
je 0x4a75be
mov eax, dword [esi + 0x68]
push str.close
push str.Proxy_Connection:
push eax
call fcn.004b8db0
add esp, 0xc
test al, al
je 0x4a75be
push str.HTTP_1.1_proxy_connection_set_close__n
push edi
mov byte [ebx + 0x118], 1
call fcn.004ab130
add esp, 8
jmp 0x4a79d0
cmp dword [esi + 0x7c], 0xa
jne 0x4a75f8
mov ecx, dword [esi + 0x68]
push str.keep_alive
push str.Connection:
push ecx
call fcn.004b8db0
add esp, 0xc
test al, al
je 0x4a75f8
push str.HTTP_1.0_connection_set_to_keep_alive__n
push edi
mov byte [ebx + 0x118], 0
call fcn.004ab130
add esp, 8
jmp 0x4a79d0
mov edx, dword [esi + 0x68]
push str.close
push str.Connection:
push edx
call fcn.004b8db0
add esp, 0xc
test al, al
je 0x4a761e
mov byte [ebx + 0x118], 1
jmp 0x4a79d0
mov eax, dword [esi + 0x68]
push str.chunked
push str.Transfer_Encoding:
push eax
call fcn.004b8db0
add esp, 0xc
test al, al
je 0x4a764d
push ebx
mov byte [esi + 0xc0], 1
call fcn.004c0770
add esp, 4
jmp 0x4a79d0
mov ecx, dword [esi + 0x68]
push 8
push ecx
push str.Trailer:
call fcn.004ac270
add esp, 0xc
test eax, eax
jne 0x4a79c9
mov edx, dword [esi + 0x68]
push 9
push edx
push str.Trailers:
call fcn.004ac270
add esp, 0xc
test eax, eax
jne 0x4a79c9
mov eax, dword [esi + 0x68]
push 0x11
push eax
push str.Content_Encoding:
call fcn.004ac270
add esp, 0xc
test eax, eax
je 0x4a7790
cmp dword [edi + 0x2ac], 0
je 0x4a7790
mov ebx, dword [esi + 0x68]
mov al, byte [ebx + 0x11]
add ebx, 0x11
test al, al
je 0x4a76d8
jmp 0x4a76c0
movzx ecx, al
push ecx
call fcn.005913ad
add esp, 4
test eax, eax
je 0x4a76d8
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x4a76c0
push 8
push ebx
push str.identity
call fcn.004ac270
add esp, 0xc
test eax, eax
je 0x4a76fb
mov dword [esi + 0x8c], 0
jmp 0x4a79d0
push 7
push ebx
push str.deflate
call fcn.004ac270
add esp, 0xc
test eax, eax
je 0x4a771e
mov dword [esi + 0x8c], 1
jmp 0x4a79d0
push 4
push ebx
push str.gzip
call fcn.004ac270
add esp, 0xc
test eax, eax
jne 0x4a7781
push 6
push ebx
push str.x_gzip
call fcn.004ac270
add esp, 0xc
test eax, eax
jne 0x4a7781
push 8
push ebx
push str.compress
call fcn.004ac270
add esp, 0xc
test eax, eax
jne 0x4a7772
push 0xa
push ebx
push str.x_compress
call fcn.004ac270
add esp, 0xc
test eax, eax
je 0x4a79d0
mov dword [esi + 0x8c], 3
jmp 0x4a79d0
mov dword [esi + 0x8c], 2
jmp 0x4a79d0
mov edx, dword [esi + 0x68]
push 0xe
push edx
push str.Content_Range:
call fcn.004ac270
add esp, 0xc
test eax, eax
je 0x4a7803
mov ebx, dword [esi + 0x68]
mov al, byte [ebx + 0xe]
add ebx, 0xe
test al, al
je 0x4a77cc
movzx eax, al
push eax
call fcn.005912a8
add esp, 4
test eax, eax
jne 0x4a77cc
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x4a77b4
push 0xa
push 0
push ebx
call fcn.00591ae0
add esp, 0xc
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
cmp dword [edi + 0x8538], eax
jne 0x4a79d0
mov edx, dword [edi + 0x853c]
cmp edx, dword [esi + 0x74]
jne 0x4a79d0
mov byte [esi + 0x6c], 1
jmp 0x4a79d0
cmp dword [edi + 0x334], 0
je 0x4a786b
mov eax, dword [esi + 0x68]
push 0xb
push eax
push str.Set_Cookie:
call fcn.004ac270
add esp, 0xc
test eax, eax
je 0x4a786b
push 2
push 2
push edi
call fcn.004b02f0
mov eax, dword [ebx + 0x158]
add esp, 0xc
test eax, eax
jne 0x4a783d
mov eax, dword [ebx + 0x60]
mov ecx, dword [edi + 0x852c]
mov edx, dword [esi + 0x68]
push ecx
push eax
mov eax, dword [edi + 0x334]
add edx, 0xb
push edx
push 1
push eax
push edi
call fcn.004a9db0
push 2
push edi
call fcn.004b0330
add esp, 0x20
jmp 0x4a79d0
mov ecx, dword [esi + 0x68]
push 0xe
push ecx
push str.Last_Modified:
call fcn.004ac270
add esp, 0xc
test eax, eax
je 0x4a78da
cmp dword [edi + 0x1d0], 0
jne 0x4a7894
cmp byte [edi + 0x24d], 0
je 0x4a78da
push 0
call fcn.0058d82f
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x18]
push edx
add eax, 0xe
push eax
call fcn.004c0750
add esp, 0xc
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], edx
cmp byte [edi + 0x24d], 0
je 0x4a79d0
mov ecx, eax
mov dword [edi + 0x8554], ecx
jmp 0x4a79d0
mov edx, dword [esi + 0x68]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.004ac270
add esp, 0xc
test eax, eax
je 0x4a78fb
mov eax, dword [esi + 0x78]
cmp eax, 0x191
je 0x4a791c
mov eax, dword [esi + 0x68]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.004ac270
add esp, 0xc
test eax, eax
je 0x4a7937
mov eax, dword [esi + 0x78]
cmp eax, 0x197
jne 0x4a7937
mov ecx, dword [esi + 0x68]
push ecx
push eax
push ebx
call fcn.004b8870
add esp, 0xc
test eax, eax
jne 0x4a7d98
jmp 0x4a79d0
mov eax, dword [esi + 0x78]
cmp eax, 0x12c
jl 0x4a79d0
cmp eax, 0x190
jge 0x4a79d0
mov edx, dword [esi + 0x68]
push 9
push edx
push str.Location:
call fcn.004ac270
add esp, 0xc
test eax, eax
je 0x4a79d0
mov eax, dword [esi + 0x68]
push eax
call fcn.004b8260
add esp, 4
test eax, eax
je 0x4a7c21
cmp byte [eax], 0
jne 0x4a798c
push eax
call dword [0x75f004]
add esp, 4
jmp 0x4a79d0
cmp byte [edi + 0x256], 0
mov dword [edi + 0xc8], eax
je 0x4a79d0
push eax
call dword [0x75f00c]
add esp, 4
mov dword [edi + 0xcc], eax
test eax, eax
je 0x4a7c21
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b8470
add esp, 4
test eax, eax
jne 0x4a7d98
jmp 0x4a79d0
mov byte [esi + 0xc4], 1
cmp byte [edi + 0x258], 0
mov ebx, 2
je 0x4a79e3
mov ebx, 3
cmp byte [edi + 0x264], 0
je 0x4a7a03
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x68]
push edx
push eax
push ecx
push 1
push edi
call fcn.004ab050
add esp, 0x14
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x68]
mov ecx, dword [ebp + 8]
push edx
push eax
push ebx
push ecx
call fcn.004ab350
add esp, 0x10
test eax, eax
jne 0x4a7d98
mov edx, dword [esi + 0x58]
add dword [edi + 0x8558], edx
mov eax, dword [esi + 0x58]
add dword [edi + 0x48], eax
jmp 0x4a7ba3
cmp cl, 0xd
jne 0x4a7a3d
inc eax
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x68]
cmp byte [eax], 0xa
jne 0x4a7a49
inc eax
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x78]
cmp eax, 0x64
jl 0x4a7a78
cmp eax, 0xc7
jg 0x4a7a78
xor eax, eax
mov byte [esi + 0x48], 1
mov dword [esi + 0x50], eax
cmp dword [esi + 0x88], eax
je 0x4a7ab6
or dword [esi + 0xa8], 2
mov dword [esi + 0x88], eax
jmp 0x4a7ab6
mov edx, dword [esi]
and edx, dword [esi + 4]
mov byte [esi + 0x48], 0
cmp edx, 0xffffffff
jne 0x4a7ab6
cmp byte [esi + 0xc0], 0
jne 0x4a7ab6
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x118], 0
jne 0x4a7ab6
cmp dword [esi + 0x7c], 0xb
jl 0x4a7ab6
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end_n
push edi
call fcn.004ab130
add esp, 8
mov byte [ebx + 0x118], 1
cmp dword [esi + 0x78], 0x1a1
jne 0x4a7ad0
and dword [esi + 0xa8], 0xfffffffd
mov dword [esi + 0x88], 3
mov eax, dword [ebp + 8]
push eax
call fcn.004b89e0
add esp, 4
test eax, eax
jne 0x4a7cef
lea ecx, [eax + 2]
cmp byte [edi + 0x258], al
je 0x4a7af2
lea ecx, [eax + 3]
mov eax, dword [edi + 0x44c]
mov ebx, dword [esi + 0x68]
sub ebx, eax
push ebx
push eax
push ecx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ab350
add esp, 0x10
test eax, eax
jne 0x4a7d98
add dword [edi + 0x48], ebx
add dword [edi + 0x8558], ebx
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 0x48]
cmp eax, 0x64
jl 0x4a7b2f
cmp eax, 0xc7
jle 0x4a7b31
xor ecx, ecx
mov edx, dword [edi + 0x8538]
or edx, dword [edi + 0x853c]
mov dword [edi + 0x4c], ecx
je 0x4a7b5c
cmp dword [edi + 0x1e0], 1
jne 0x4a7b5c
cmp dword [esi + 0x78], 0x1a0
jne 0x4a7b5c
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x4a7b99
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 0
jne 0x4a7b99
mov edx, dword [ebp + 8]
push edx
call fcn.004b9040
add esp, 4
test eax, eax
jne 0x4a7d98
mov eax, dword [ebp + 8]
cmp byte [eax + 0x127], 0
je 0x4a7b99
push str.Keep_sending_data_to_get_tossed_away__n
push edi
call fcn.004ab130
add esp, 8
or dword [esi + 0xa8], 2
cmp byte [esi + 0x48], 0
je 0x4a7d0b
mov ecx, dword [edi + 0x44c]
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], ecx
cmp byte [edx], 0
jne 0x4a7d96
mov eax, dword [esi + 0x5c]
cmp byte [eax], 0
je 0x4a7d96
mov ebx, dword [ebp + 0xc]
jmp 0x4a71f0
mov eax, dword [esi + 0x58]
add eax, dword [ebx]
mov ecx, dword [edi + 0x450]
cmp eax, ecx
jb 0x4a7c40
lea eax, [eax + eax*2]
shr eax, 1
add ecx, ecx
mov dword [ebp - 4], eax
cmp eax, ecx
ja 0x4a7bf3
mov dword [ebp - 4], ecx
mov eax, dword [edi + 0x44c]
mov ecx, dword [esi + 0x54]
sub ecx, eax
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
push ecx
push eax
call dword [0x75f008]
add esp, 8
test eax, eax
jne 0x4a7c2b
push str.Failed_to_alloc_memory_for_big_header_
push edi
call fcn.004ab1b0
add esp, 8
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov dword [edi + 0x44c], eax
add eax, dword [ebp - 8]
mov dword [edi + 0x450], edx
mov dword [esi + 0x54], eax
mov edx, dword [ebx]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x54]
push edx
push eax
push ecx
call fcn.005905c0
mov edx, dword [ebx]
add dword [esi + 0x54], edx
mov eax, dword [ebx]
add dword [esi + 0x58], eax
mov eax, dword [esi + 0x58]
add esp, 0xc
cmp dword [esi + 0x50], 0
jne 0x4a7d96
cmp eax, 5
jbe 0x4a7d96
mov ebx, dword [edi + 0x44c]
mov eax, edi
call fcn.004a7040
test al, al
jne 0x4a7d96
mov byte [esi + 0x48], al
mov dword [esi + 0x4c], 2
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov byte [esi + 0x48], 0
cmp dword [eax], 0
je 0x4a7cb3
mov dword [esi + 0x4c], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x4c], 2
mov dword [eax], ecx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x78]
push edx
jmp 0x4a7cf3
mov byte [esi + 0x48], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Maximum_file_size_exceeded
push edi
call fcn.004ab1b0
add esp, 8
mov eax, 0x3f
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x78]
push eax
push str.The_requested_URL_returned_error:__d
push edi
call fcn.004ab1b0
add esp, 0xc
mov eax, 0x16
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x25b], 0
je 0x4a7d1c
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
jmp 0x4a7d32
cmp byte [esi + 0xc0], 0
je 0x4a7d32
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x4a7d40
cmp ecx, eax
je 0x4a7d56
push ecx
push eax
push edi
call fcn.004ae510
mov edx, dword [esi]
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
cmp dword [esi + 0x10], 0
jne 0x4a7d6a
cmp dword [esi + 0x14], 0
jne 0x4a7d6a
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
jmp 0x4a7d72
mov edx, dword [ebp + 0x10]
cmp byte [edx], 0
je 0x4a7d79
and dword [esi + 0xa8], 0xfffffffe
cmp byte [edi + 0x264], 0
je 0x4a7d96
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x60]
push eax
push ebx
push ecx
push 1
push edi
call fcn.004ab050
add esp, 0x14
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret