Function at 0x4bd9a0
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 0x4bdab8
cmp dword [esi + 0xc14], 0
jne 0x4bdab8
push 0xf
push edi
push 0x51ea28
call fcn.004a2490
add esp, 0xc
test eax, eax
je 0x4bdab8
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
add edi, 0xf
push edi
call fcn.004c8260
add esp, 0x10
test eax, eax
jne 0x4bda66
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 0x4bda39
cmp edx, eax
jl 0x4bda39
jg 0x4bda1e
cmp edi, ecx
jbe 0x4bda39
push str.Maximum_file_size_exceeded
push esi
call fcn.00499840
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.004a8650
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp eax, 1
jne 0x4bda9d
mov eax, dword [esi + 0x990]
or eax, dword [esi + 0x994]
jne 0x4bda1e
mov ecx, dword [esp + 0x20]
push 2
push ecx
call fcn.004a0bd0
push str.Overflow_Content_Length:_value__n
push esi
call fcn.00499770
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.00499840
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 8
ret
push 0xd
push edi
push 0x51ea38
call fcn.004a2490
add esp, 0xc
test eax, eax
je 0x4bdb21
push edi
call fcn.004ba870
mov edi, eax
add esp, 4
test edi, edi
jne 0x4bdae8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 8
ret
cmp byte [edi], 0
jne 0x4bdb01
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 0x4bdb72
cmp dword [ebp + 0x53c], 0
je 0x4bdb72
push str.keep_alive
push str.Proxy_Connection:
push edi
call fcn.004bb630
add esp, 0xc
test eax, eax
je 0x4bdb72
push 0
push ebp
call fcn.004a0bd0
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
push esi
call fcn.00499770
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [ebp + 0x3e8], 0xb
jne 0x4bdbbb
cmp dword [ebp + 0x53c], 0
je 0x4bdbbb
push str.close
push str.Proxy_Connection:
push edi
call fcn.004bb630
add esp, 0xc
test eax, eax
je 0x4bdbbb
push 1
push ebp
call fcn.004a0bd0
push str.HTTP_1.1_proxy_connection_set_close__n
push esi
call fcn.00499770
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [ebp + 0x3e8], ebx
jne 0x4bdbfa
push str.keep_alive
push str.Connection:
push edi
call fcn.004bb630
add esp, 0xc
test eax, eax
je 0x4bdbfa
push 0
push ebp
call fcn.004a0bd0
push str.HTTP_1.0_connection_set_to_keep_alive__n
push esi
call fcn.00499770
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.004bb630
add esp, 0xc
test eax, eax
je 0x4bdc26
push 2
push ebp
call fcn.004a0bd0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x59c], 0
jne 0x4bdc8f
push 0x12
push edi
push str.Transfer_Encoding:
call fcn.004a2490
add esp, 0xc
test eax, eax
je 0x4bdc62
push 1
add edi, 0x12
push edi
push ebp
call fcn.004a2770
add esp, 0xc
test eax, eax
je 0x4be0f9
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0x59c], 0
jne 0x4bdc8f
push 0x11
push edi
push str.Content_Encoding:
call fcn.004a2490
add esp, 0xc
test eax, eax
je 0x4bdc8f
cmp dword [esi + 0x9e8], 0
je 0x4bdc8f
push 0
add edi, 0x11
jmp 0x4bdc48
push 0xc
push edi
push str.Retry_After:
call fcn.004a2490
add esp, 0xc
test eax, eax
je 0x4bdd1a
xor eax, eax
lea ebx, [edi + 0xc]
push ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.004c7d20
mov edi, eax
add esp, 4
mov ebp, edx
cmp edi, 0xffffffff
jne 0x4bdcf6
cmp ebp, eax
jne 0x4bdcf6
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
push ebx
call fcn.004c8260
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.004d7e6d
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 0x4bdde0
push 0xe
push edi
push str.Content_Range:
call fcn.004a2490
add esp, 0xc
test eax, eax
je 0x4bdde0
mov al, byte [edi + 0xe]
add edi, 0xe
test al, al
je 0x4bdd6d
lea esp, [esp]
movzx ecx, al
push ecx
call fcn.004c15a0
add esp, 4
test eax, eax
jne 0x4bdd6d
cmp byte [edi], 0x2a
je 0x4bdd6d
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4bdd50
movzx edx, byte [edi]
push edx
call fcn.004c15a0
add esp, 4
test eax, eax
je 0x4bddca
lea ebp, [esi + 0xf0]
push ebp
push ebx
push 0
push edi
call fcn.004c8260
add esp, 0x10
test eax, eax
jne 0x4be0f9
mov eax, dword [esi + 0x1188]
cmp eax, dword [ebp]
jne 0x4be0f9
mov ecx, dword [esi + 0x118c]
cmp ecx, dword [ebp + 4]
jne 0x4be0f9
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 0x4bde64
cmp dword [esi + 0x1260], 0
je 0x4bde64
push 0xb
push edi
push str.Set_Cookie:
call fcn.004a2490
add esp, 0xc
test eax, eax
je 0x4bde64
push 2
push 2
push esi
call fcn.004a24a0
mov eax, dword [esi + 0x1218]
add esp, 0xc
test eax, eax
jne 0x4bde23
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.0049dcc0
push 2
push esi
call fcn.004a24e0
add esp, 0x28
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x59c], 0
jne 0x4bded6
push 0xe
push edi
push str.Last_Modified:
call fcn.004a2490
add esp, 0xc
test eax, eax
je 0x4bded6
cmp dword [esi + 0x84c], 0
jne 0x4bde93
cmp dword [esi + 0xba8], 0
je 0x4bded6
add edi, 0xe
push edi
call fcn.004c7d20
add esp, 4
mov dword [esi + 0x120], eax
mov dword [esi + 0x124], edx
cmp dword [esi + 0xba8], 0
je 0x4be0f9
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.004a2490
add esp, 0xc
test eax, eax
je 0x4bdef7
mov eax, dword [esi + 0xf8]
cmp eax, 0x191
je 0x4bdf18
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.004a2490
add esp, 0xc
test eax, eax
je 0x4bdf5b
mov eax, dword [esi + 0xf8]
cmp eax, 0x197
jne 0x4bdf5b
xor ebx, ebx
cmp eax, 0x197
push edi
sete bl
call fcn.004ba870
mov esi, eax
add esp, 4
test esi, esi
je 0x4bdadb
push esi
push ebx
push ebp
call fcn.004bb000
push esi
mov edi, eax
call dword [0x54ae6c]
add esp, 0x10
test edi, edi
je 0x4be0f9
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.004a2490
add esp, 0xc
test eax, eax
je 0x4bdfd3
cmp dword [esi + 0xef4], 4
jne 0x4be0f9
push edi
call fcn.004ba870
mov edi, eax
add esp, 4
test edi, edi
je 0x4bdadb
push 5
push edi
push str.false
call fcn.004a2490
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.00499770
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 0x4be06f
cmp eax, 0x190
jge 0x4be06f
push 9
push edi
push str.Location:
call fcn.004a2490
add esp, 0xc
test eax, eax
je 0x4be06f
cmp dword [esi + 0x130], 0
jne 0x4be06f
push edi
call fcn.004ba870
add esp, 4
test eax, eax
je 0x4bdadb
cmp byte [eax], 0
jne 0x4be036
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 0x4be0f9
push eax
call dword [0x54ae74]
add esp, 4
mov dword [esi + 0x134], eax
test eax, eax
je 0x4bdadb
push ebp
call fcn.004bab40
add esp, 4
jmp 0x4bdc52
cmp dword [esi + 0xc98], 0
je 0x4be0dc
push 8
push edi
push str.Alt_Svc:
call fcn.004a2490
add esp, 0xc
test eax, eax
je 0x4be0dc
mov eax, dword [ebp + 0x5f0]
test byte [eax + 0x48], 1
je 0x4be0dc
mov ecx, dword [ebp + 0x368]
xor ebx, ebx
cmp dword [ebp + 0x3e8], 0x14
push ecx
sete bl
lea ebx, [ebx*8 + 8]
call fcn.0049c990
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.0049d0b0
add esp, 0x1c
jmp 0x4bdc52
mov edx, dword [ebp + 0x5f0]
test dword [edx + 0x40], 0x40000
je 0x4be0f9
push edi
push ebp
call fcn.004ab420
add esp, 8
test eax, eax
jne 0x4be0fb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret