Function at 0x4bdfa0
Capabilities:
Check http status code

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x59c], 0
push edi
mov edi, dword [esp + 0x24]
jne 0x4be0b8
cmp dword [esi + 0xc14], 0
jne 0x4be0b8
push 0xf
push edi
push 0x51ea38
call fcn.004a2a80
add esp, 0xc
test eax, eax
je 0x4be0b8
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
add edi, 0xf
push edi
call fcn.004c8870
add esp, 0x10
test eax, eax
jne 0x4be066
mov ecx, dword [esi + 0x990]
mov eax, dword [esi + 0x994]
mov edi, dword [esp + 0x10]
mov edx, ecx
or edx, eax
mov edx, dword [esp + 0x14]
je 0x4be039
cmp edx, eax
jl 0x4be039
jg 0x4be01e
cmp edi, ecx
jbe 0x4be039
push str.Maximum_file_size_exceeded
push esi
call fcn.00499e30
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x3f
pop ebx
add esp, 8
ret
push edx
push edi
push esi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edx
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edx
call fcn.004a8c40
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp eax, 1
jne 0x4be09d
mov eax, dword [esi + 0x990]
or eax, dword [esi + 0x994]
jne 0x4be01e
mov ecx, dword [esp + 0x20]
push 2
push ecx
call fcn.004a11c0
push str.Overflow_Content_Length:_value__n
push esi
call fcn.00499d60
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push str.Invalid_Content_Length:_value
push esi
call fcn.00499e30
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 8
ret
push 0xd
push edi
push 0x51ea48
call fcn.004a2a80
add esp, 0xc
test eax, eax
je 0x4be121
push edi
call fcn.004bae50
mov edi, eax
add esp, 4
test edi, edi
jne 0x4be0e8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 8
ret
cmp byte [edi], 0
jne 0x4be101
push edi
call dword [0x54ae6c]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [esi + 0x12c4]
push edx
call dword [0x54ae6c]
add esp, 4
mov dword [esi + 0x12c4], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov ebp, dword [esp + 0x20]
mov ebx, 0xa
cmp dword [ebp + 0x3e8], ebx
jne 0x4be172
cmp dword [ebp + 0x53c], 0
je 0x4be172
push str.keep_alive
push str.Proxy_Connection:
push edi
call fcn.004bbc10
add esp, 0xc
test eax, eax
je 0x4be172
push 0
push ebp
call fcn.004a11c0
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
push esi
call fcn.00499d60
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [ebp + 0x3e8], 0xb
jne 0x4be1bb
cmp dword [ebp + 0x53c], 0
je 0x4be1bb
push str.close
push str.Proxy_Connection:
push edi
call fcn.004bbc10
add esp, 0xc
test eax, eax
je 0x4be1bb
push 1
push ebp
call fcn.004a11c0
push str.HTTP_1.1_proxy_connection_set_close__n
push esi
call fcn.00499d60
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [ebp + 0x3e8], ebx
jne 0x4be1fa
push str.keep_alive
push str.Connection:
push edi
call fcn.004bbc10
add esp, 0xc
test eax, eax
je 0x4be1fa
push 0
push ebp
call fcn.004a11c0
push str.HTTP_1.0_connection_set_to_keep_alive__n
push esi
call fcn.00499d60
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push str.close
push str.Connection:
push edi
call fcn.004bbc10
add esp, 0xc
test eax, eax
je 0x4be226
push 2
push ebp
call fcn.004a11c0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x59c], 0
jne 0x4be28f
push 0x12
push edi
push str.Transfer_Encoding:
call fcn.004a2a80
add esp, 0xc
test eax, eax
je 0x4be262
push 1
add edi, 0x12
push edi
push ebp
call fcn.004a2d60
add esp, 0xc
test eax, eax
je 0x4be6f9
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0x59c], 0
jne 0x4be28f
push 0x11
push edi
push str.Content_Encoding:
call fcn.004a2a80
add esp, 0xc
test eax, eax
je 0x4be28f
cmp dword [esi + 0x9e8], 0
je 0x4be28f
push 0
add edi, 0x11
jmp 0x4be248
push 0xc
push edi
push str.Retry_After:
call fcn.004a2a80
add esp, 0xc
test eax, eax
je 0x4be31a
xor eax, eax
lea ebx, [edi + 0xc]
push ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.004c8330
mov edi, eax
add esp, 4
mov ebp, edx
cmp edi, 0xffffffff
jne 0x4be2f6
cmp ebp, eax
jne 0x4be2f6
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
push ebx
call fcn.004c8870
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
add esp, 0x10
mov dword [esi + 0x12d0], edi
pop edi
mov dword [esi + 0x12d4], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0
call fcn.004d846d
add esp, 4
sub edi, eax
sbb ebp, edx
mov dword [esi + 0x12d0], edi
pop edi
mov dword [esi + 0x12d4], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x59c], 0
jne 0x4be3e0
push 0xe
push edi
push str.Content_Range:
call fcn.004a2a80
add esp, 0xc
test eax, eax
je 0x4be3e0
mov al, byte [edi + 0xe]
add edi, 0xe
test al, al
je 0x4be36d
lea esp, [esp]
movzx ecx, al
push ecx
call fcn.004c1ba0
add esp, 4
test eax, eax
jne 0x4be36d
cmp byte [edi], 0x2a
je 0x4be36d
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4be350
movzx edx, byte [edi]
push edx
call fcn.004c1ba0
add esp, 4
test eax, eax
je 0x4be3ca
lea ebp, [esi + 0xf0]
push ebp
push ebx
push 0
push edi
call fcn.004c8870
add esp, 0x10
test eax, eax
jne 0x4be6f9
mov eax, dword [esi + 0x1188]
cmp eax, dword [ebp]
jne 0x4be6f9
mov ecx, dword [esi + 0x118c]
cmp ecx, dword [ebp + 4]
jne 0x4be6f9
pop edi
mov dword [esi + 0x590], 1
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
xor eax, eax
pop edi
mov dword [esi + 0x1188], eax
mov dword [esi + 0x118c], eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0xc94], 0
je 0x4be464
cmp dword [esi + 0x1260], 0
je 0x4be464
push 0xb
push edi
push str.Set_Cookie:
call fcn.004a2a80
add esp, 0xc
test eax, eax
je 0x4be464
push 2
push 2
push esi
call fcn.004a2a90
mov eax, dword [esi + 0x1218]
add esp, 0xc
test eax, eax
jne 0x4be423
mov eax, dword [ebp + 0x304]
mov edx, dword [ebp + 0x5f0]
mov ecx, dword [edx + 0x40]
mov edx, dword [esi + 0x11d8]
shr ecx, 1
and ecx, 1
push ecx
push edx
push eax
mov eax, dword [esi + 0xc94]
add edi, 0xb
push edi
push 0
push 1
push eax
push esi
call fcn.0049e2b0
push 2
push esi
call fcn.004a2ad0
add esp, 0x28
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x59c], 0
jne 0x4be4d6
push 0xe
push edi
push str.Last_Modified:
call fcn.004a2a80
add esp, 0xc
test eax, eax
je 0x4be4d6
cmp dword [esi + 0x84c], 0
jne 0x4be493
cmp dword [esi + 0xba8], 0
je 0x4be4d6
add edi, 0xe
push edi
call fcn.004c8330
add esp, 4
mov dword [esi + 0x120], eax
mov dword [esi + 0x124], edx
cmp dword [esi + 0xba8], 0
je 0x4be6f9
mov ecx, eax
mov dword [esi + 0x12a0], ecx
mov edx, dword [esi + 0x124]
pop edi
mov dword [esi + 0x12a4], edx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x11
push edi
push str.WWW_Authenticate:
call fcn.004a2a80
add esp, 0xc
test eax, eax
je 0x4be4f7
mov eax, dword [esi + 0xf8]
cmp eax, 0x191
je 0x4be518
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.004a2a80
add esp, 0xc
test eax, eax
je 0x4be55b
mov eax, dword [esi + 0xf8]
cmp eax, 0x197
jne 0x4be55b
xor ebx, ebx
cmp eax, 0x197
push edi
sete bl
call fcn.004bae50
mov esi, eax
add esp, 4
test esi, esi
je 0x4be0db
push esi
push ebx
push ebp
call fcn.004bb5e0
push esi
mov edi, eax
call dword [0x54ae6c]
add esp, 0x10
test edi, edi
je 0x4be6f9
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0xf
push edi
push str.Persistent_Auth
call fcn.004a2a80
add esp, 0xc
test eax, eax
je 0x4be5d3
cmp dword [esi + 0xef4], 4
jne 0x4be6f9
push edi
call fcn.004bae50
mov edi, eax
add esp, 4
test edi, edi
je 0x4be0db
push 5
push edi
push str.false
call fcn.004a2a80
neg eax
sbb eax, eax
neg eax
push edi
push eax
push str.Negotiate:_noauthpersist_____d__header_part:__s
push esi
mov dword [ebp + 0x73c], eax
mov dword [ebp + 0x740], 1
call fcn.00499d60
push edi
call dword [0x54ae6c]
add esp, 0x20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0xf8]
cmp eax, 0x12c
jl 0x4be66f
cmp eax, 0x190
jge 0x4be66f
push 9
push edi
push str.Location:
call fcn.004a2a80
add esp, 0xc
test eax, eax
je 0x4be66f
cmp dword [esi + 0x130], 0
jne 0x4be66f
push edi
call fcn.004bae50
add esp, 4
test eax, eax
je 0x4be0db
cmp byte [eax], 0
jne 0x4be636
push eax
call dword [0x54ae6c]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0xbdc], 0
mov dword [esi + 0x130], eax
je 0x4be6f9
push eax
call dword [0x54ae74]
add esp, 4
mov dword [esi + 0x134], eax
test eax, eax
je 0x4be0db
push ebp
call fcn.004bb120
add esp, 4
jmp 0x4be252
cmp dword [esi + 0xc98], 0
je 0x4be6dc
push 8
push edi
push str.Alt_Svc:
call fcn.004a2a80
add esp, 0xc
test eax, eax
je 0x4be6dc
mov eax, dword [ebp + 0x5f0]
test byte [eax + 0x48], 1
je 0x4be6dc
mov ecx, dword [ebp + 0x368]
xor ebx, ebx
cmp dword [ebp + 0x3e8], 0x14
push ecx
sete bl
lea ebx, [ebx*8 + 8]
call fcn.0049cf50
mov ecx, dword [esi + 0xc98]
movzx edx, ax
mov eax, dword [ebp + 0x304]
push edx
push eax
push ebx
add edi, 8
push edi
push ecx
push esi
call fcn.0049d6a0
add esp, 0x1c
jmp 0x4be252
mov edx, dword [ebp + 0x5f0]
test dword [edx + 0x40], 0x40000
je 0x4be6f9
push edi
push ebp
call fcn.004aba20
add esp, 8
test eax, eax
jne 0x4be6fb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret