Function at 0x4bdff0
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 0x4be108
cmp dword [esi + 0xc14], 0
jne 0x4be108
push 0xf
push edi
push 0x51ea00
call fcn.004a2a90
add esp, 0xc
test eax, eax
je 0x4be108
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
add edi, 0xf
push edi
call fcn.004c88b0
add esp, 0x10
test eax, eax
jne 0x4be0b6
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 0x4be089
cmp edx, eax
jl 0x4be089
jg 0x4be06e
cmp edi, ecx
jbe 0x4be089
push str.Maximum_file_size_exceeded
push esi
call fcn.00499e40
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.004a8c60
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp eax, 1
jne 0x4be0ed
mov eax, dword [esi + 0x990]
or eax, dword [esi + 0x994]
jne 0x4be06e
mov ecx, dword [esp + 0x20]
push 2
push ecx
call fcn.004a11d0
push str.Overflow_Content_Length:_value__n
push esi
call fcn.00499d70
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.00499e40
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 8
ret
push 0xd
push edi
push 0x51ea10
call fcn.004a2a90
add esp, 0xc
test eax, eax
je 0x4be171
push edi
call fcn.004bae90
mov edi, eax
add esp, 4
test edi, edi
jne 0x4be138
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 8
ret
cmp byte [edi], 0
jne 0x4be151
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 0x4be1c2
cmp dword [ebp + 0x53c], 0
je 0x4be1c2
push str.keep_alive
push str.Proxy_Connection:
push edi
call fcn.004bbc50
add esp, 0xc
test eax, eax
je 0x4be1c2
push 0
push ebp
call fcn.004a11d0
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
push esi
call fcn.00499d70
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [ebp + 0x3e8], 0xb
jne 0x4be20b
cmp dword [ebp + 0x53c], 0
je 0x4be20b
push str.close
push str.Proxy_Connection:
push edi
call fcn.004bbc50
add esp, 0xc
test eax, eax
je 0x4be20b
push 1
push ebp
call fcn.004a11d0
push str.HTTP_1.1_proxy_connection_set_close__n
push esi
call fcn.00499d70
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [ebp + 0x3e8], ebx
jne 0x4be24a
push str.keep_alive
push str.Connection:
push edi
call fcn.004bbc50
add esp, 0xc
test eax, eax
je 0x4be24a
push 0
push ebp
call fcn.004a11d0
push str.HTTP_1.0_connection_set_to_keep_alive__n
push esi
call fcn.00499d70
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.004bbc50
add esp, 0xc
test eax, eax
je 0x4be276
push 2
push ebp
call fcn.004a11d0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x59c], 0
jne 0x4be2df
push 0x12
push edi
push str.Transfer_Encoding:
call fcn.004a2a90
add esp, 0xc
test eax, eax
je 0x4be2b2
push 1
add edi, 0x12
push edi
push ebp
call fcn.004a2d70
add esp, 0xc
test eax, eax
je 0x4be749
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0x59c], 0
jne 0x4be2df
push 0x11
push edi
push str.Content_Encoding:
call fcn.004a2a90
add esp, 0xc
test eax, eax
je 0x4be2df
cmp dword [esi + 0x9e8], 0
je 0x4be2df
push 0
add edi, 0x11
jmp 0x4be298
push 0xc
push edi
push str.Retry_After:
call fcn.004a2a90
add esp, 0xc
test eax, eax
je 0x4be36a
xor eax, eax
lea ebx, [edi + 0xc]
push ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.004c8370
mov edi, eax
add esp, 4
mov ebp, edx
cmp edi, 0xffffffff
jne 0x4be346
cmp ebp, eax
jne 0x4be346
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
push ebx
call fcn.004c88b0
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.004d849d
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 0x4be430
push 0xe
push edi
push str.Content_Range:
call fcn.004a2a90
add esp, 0xc
test eax, eax
je 0x4be430
mov al, byte [edi + 0xe]
add edi, 0xe
test al, al
je 0x4be3bd
lea esp, [esp]
movzx ecx, al
push ecx
call fcn.004c1bf0
add esp, 4
test eax, eax
jne 0x4be3bd
cmp byte [edi], 0x2a
je 0x4be3bd
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4be3a0
movzx edx, byte [edi]
push edx
call fcn.004c1bf0
add esp, 4
test eax, eax
je 0x4be41a
lea ebp, [esi + 0xf0]
push ebp
push ebx
push 0
push edi
call fcn.004c88b0
add esp, 0x10
test eax, eax
jne 0x4be749
mov eax, dword [esi + 0x1188]
cmp eax, dword [ebp]
jne 0x4be749
mov ecx, dword [esi + 0x118c]
cmp ecx, dword [ebp + 4]
jne 0x4be749
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 0x4be4b4
cmp dword [esi + 0x1260], 0
je 0x4be4b4
push 0xb
push edi
push str.Set_Cookie:
call fcn.004a2a90
add esp, 0xc
test eax, eax
je 0x4be4b4
push 2
push 2
push esi
call fcn.004a2aa0
mov eax, dword [esi + 0x1218]
add esp, 0xc
test eax, eax
jne 0x4be473
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.0049e2c0
push 2
push esi
call fcn.004a2ae0
add esp, 0x28
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x59c], 0
jne 0x4be526
push 0xe
push edi
push str.Last_Modified:
call fcn.004a2a90
add esp, 0xc
test eax, eax
je 0x4be526
cmp dword [esi + 0x84c], 0
jne 0x4be4e3
cmp dword [esi + 0xba8], 0
je 0x4be526
add edi, 0xe
push edi
call fcn.004c8370
add esp, 4
mov dword [esi + 0x120], eax
mov dword [esi + 0x124], edx
cmp dword [esi + 0xba8], 0
je 0x4be749
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.004a2a90
add esp, 0xc
test eax, eax
je 0x4be547
mov eax, dword [esi + 0xf8]
cmp eax, 0x191
je 0x4be568
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.004a2a90
add esp, 0xc
test eax, eax
je 0x4be5ab
mov eax, dword [esi + 0xf8]
cmp eax, 0x197
jne 0x4be5ab
xor ebx, ebx
cmp eax, 0x197
push edi
sete bl
call fcn.004bae90
mov esi, eax
add esp, 4
test esi, esi
je 0x4be12b
push esi
push ebx
push ebp
call fcn.004bb620
push esi
mov edi, eax
call dword [0x54ae6c]
add esp, 0x10
test edi, edi
je 0x4be749
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.004a2a90
add esp, 0xc
test eax, eax
je 0x4be623
cmp dword [esi + 0xef4], 4
jne 0x4be749
push edi
call fcn.004bae90
mov edi, eax
add esp, 4
test edi, edi
je 0x4be12b
push 5
push edi
push str.false
call fcn.004a2a90
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.00499d70
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 0x4be6bf
cmp eax, 0x190
jge 0x4be6bf
push 9
push edi
push str.Location:
call fcn.004a2a90
add esp, 0xc
test eax, eax
je 0x4be6bf
cmp dword [esi + 0x130], 0
jne 0x4be6bf
push edi
call fcn.004bae90
add esp, 4
test eax, eax
je 0x4be12b
cmp byte [eax], 0
jne 0x4be686
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 0x4be749
push eax
call dword [0x54ae74]
add esp, 4
mov dword [esi + 0x134], eax
test eax, eax
je 0x4be12b
push ebp
call fcn.004bb160
add esp, 4
jmp 0x4be2a2
cmp dword [esi + 0xc98], 0
je 0x4be72c
push 8
push edi
push str.Alt_Svc:
call fcn.004a2a90
add esp, 0xc
test eax, eax
je 0x4be72c
mov eax, dword [ebp + 0x5f0]
test byte [eax + 0x48], 1
je 0x4be72c
mov ecx, dword [ebp + 0x368]
xor ebx, ebx
cmp dword [ebp + 0x3e8], 0x14
push ecx
sete bl
lea ebx, [ebx*8 + 8]
call fcn.0049cf90
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.0049d6b0
add esp, 0x1c
jmp 0x4be2a2
mov edx, dword [ebp + 0x5f0]
test dword [edx + 0x40], 0x40000
je 0x4be749
push edi
push ebp
call fcn.004aba80
add esp, 8
test eax, eax
jne 0x4be74b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret