Function at 0x4bd910
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 0x4bda28
cmp dword [esi + 0xc14], 0
jne 0x4bda28
push 0xf
push edi
push 0x51ea30
call fcn.004a23e0
add esp, 0xc
test eax, eax
je 0x4bda28
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
add edi, 0xf
push edi
call fcn.004c81d0
add esp, 0x10
test eax, eax
jne 0x4bd9d6
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 0x4bd9a9
cmp edx, eax
jl 0x4bd9a9
jg 0x4bd98e
cmp edi, ecx
jbe 0x4bd9a9
push str.Maximum_file_size_exceeded
push esi
call fcn.00499790
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.004a85c0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp eax, 1
jne 0x4bda0d
mov eax, dword [esi + 0x990]
or eax, dword [esi + 0x994]
jne 0x4bd98e
mov ecx, dword [esp + 0x20]
push 2
push ecx
call fcn.004a0b20
push str.Overflow_Content_Length:_value__n
push esi
call fcn.004996c0
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.00499790
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 8
ret
push 0xd
push edi
push 0x51ea40
call fcn.004a23e0
add esp, 0xc
test eax, eax
je 0x4bda91
push edi
call fcn.004ba7c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4bda58
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 8
ret
cmp byte [edi], 0
jne 0x4bda71
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 0x4bdae2
cmp dword [ebp + 0x53c], 0
je 0x4bdae2
push str.keep_alive
push str.Proxy_Connection:
push edi
call fcn.004bb590
add esp, 0xc
test eax, eax
je 0x4bdae2
push 0
push ebp
call fcn.004a0b20
push str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
push esi
call fcn.004996c0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [ebp + 0x3e8], 0xb
jne 0x4bdb2b
cmp dword [ebp + 0x53c], 0
je 0x4bdb2b
push str.close
push str.Proxy_Connection:
push edi
call fcn.004bb590
add esp, 0xc
test eax, eax
je 0x4bdb2b
push 1
push ebp
call fcn.004a0b20
push str.HTTP_1.1_proxy_connection_set_close__n
push esi
call fcn.004996c0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [ebp + 0x3e8], ebx
jne 0x4bdb6a
push str.keep_alive
push str.Connection:
push edi
call fcn.004bb590
add esp, 0xc
test eax, eax
je 0x4bdb6a
push 0
push ebp
call fcn.004a0b20
push str.HTTP_1.0_connection_set_to_keep_alive__n
push esi
call fcn.004996c0
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.004bb590
add esp, 0xc
test eax, eax
je 0x4bdb96
push 2
push ebp
call fcn.004a0b20
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x59c], 0
jne 0x4bdbff
push 0x12
push edi
push str.Transfer_Encoding:
call fcn.004a23e0
add esp, 0xc
test eax, eax
je 0x4bdbd2
push 1
add edi, 0x12
push edi
push ebp
call 0x4a26c0
add esp, 0xc
test eax, eax
je 0x4be069
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0x59c], 0
jne 0x4bdbff
push 0x11
push edi
push str.Content_Encoding:
call fcn.004a23e0
add esp, 0xc
test eax, eax
je 0x4bdbff
cmp dword [esi + 0x9e8], 0
je 0x4bdbff
push 0
add edi, 0x11
jmp 0x4bdbb8
push 0xc
push edi
push str.Retry_After:
call fcn.004a23e0
add esp, 0xc
test eax, eax
je 0x4bdc8a
xor eax, eax
lea ebx, [edi + 0xc]
push ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.004c7c90
mov edi, eax
add esp, 4
mov ebp, edx
cmp edi, 0xffffffff
jne 0x4bdc66
cmp ebp, eax
jne 0x4bdc66
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
push ebx
call fcn.004c81d0
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.004d7ddd
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 0x4bdd50
push 0xe
push edi
push str.Content_Range:
call fcn.004a23e0
add esp, 0xc
test eax, eax
je 0x4bdd50
mov al, byte [edi + 0xe]
add edi, 0xe
test al, al
je 0x4bdcdd
lea esp, [esp]
movzx ecx, al
push ecx
call fcn.004c1510
add esp, 4
test eax, eax
jne 0x4bdcdd
cmp byte [edi], 0x2a
je 0x4bdcdd
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4bdcc0
movzx edx, byte [edi]
push edx
call fcn.004c1510
add esp, 4
test eax, eax
je 0x4bdd3a
lea ebp, [esi + 0xf0]
push ebp
push ebx
push 0
push edi
call fcn.004c81d0
add esp, 0x10
test eax, eax
jne 0x4be069
mov eax, dword [esi + 0x1188]
cmp eax, dword [ebp]
jne 0x4be069
mov ecx, dword [esi + 0x118c]
cmp ecx, dword [ebp + 4]
jne 0x4be069
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 0x4bddd4
cmp dword [esi + 0x1260], 0
je 0x4bddd4
push 0xb
push edi
push str.Set_Cookie:
call fcn.004a23e0
add esp, 0xc
test eax, eax
je 0x4bddd4
push 2
push 2
push esi
call fcn.004a23f0
mov eax, dword [esi + 0x1218]
add esp, 0xc
test eax, eax
jne 0x4bdd93
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.0049dc10
push 2
push esi
call fcn.004a2430
add esp, 0x28
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x59c], 0
jne 0x4bde46
push 0xe
push edi
push str.Last_Modified:
call fcn.004a23e0
add esp, 0xc
test eax, eax
je 0x4bde46
cmp dword [esi + 0x84c], 0
jne 0x4bde03
cmp dword [esi + 0xba8], 0
je 0x4bde46
add edi, 0xe
push edi
call fcn.004c7c90
add esp, 4
mov dword [esi + 0x120], eax
mov dword [esi + 0x124], edx
cmp dword [esi + 0xba8], 0
je 0x4be069
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.004a23e0
add esp, 0xc
test eax, eax
je 0x4bde67
mov eax, dword [esi + 0xf8]
cmp eax, 0x191
je 0x4bde88
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.004a23e0
add esp, 0xc
test eax, eax
je 0x4bdecb
mov eax, dword [esi + 0xf8]
cmp eax, 0x197
jne 0x4bdecb
xor ebx, ebx
cmp eax, 0x197
push edi
sete bl
call fcn.004ba7c0
mov esi, eax
add esp, 4
test esi, esi
je 0x4bda4b
push esi
push ebx
push ebp
call fcn.004baf60
push esi
mov edi, eax
call dword [0x54ae6c]
add esp, 0x10
test edi, edi
je 0x4be069
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.004a23e0
add esp, 0xc
test eax, eax
je 0x4bdf43
cmp dword [esi + 0xef4], 4
jne 0x4be069
push edi
call fcn.004ba7c0
mov edi, eax
add esp, 4
test edi, edi
je 0x4bda4b
push 5
push edi
push str.false
call fcn.004a23e0
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.004996c0
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 0x4bdfdf
cmp eax, 0x190
jge 0x4bdfdf
push 9
push edi
push str.Location:
call fcn.004a23e0
add esp, 0xc
test eax, eax
je 0x4bdfdf
cmp dword [esi + 0x130], 0
jne 0x4bdfdf
push edi
call fcn.004ba7c0
add esp, 4
test eax, eax
je 0x4bda4b
cmp byte [eax], 0
jne 0x4bdfa6
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 0x4be069
push eax
call dword [0x54ae74]
add esp, 4
mov dword [esi + 0x134], eax
test eax, eax
je 0x4bda4b
push ebp
call fcn.004baa90
add esp, 4
jmp 0x4bdbc2
cmp dword [esi + 0xc98], 0
je 0x4be04c
push 8
push edi
push str.Alt_Svc:
call fcn.004a23e0
add esp, 0xc
test eax, eax
je 0x4be04c
mov eax, dword [ebp + 0x5f0]
test byte [eax + 0x48], 1
je 0x4be04c
mov ecx, dword [ebp + 0x368]
xor ebx, ebx
cmp dword [ebp + 0x3e8], 0x14
push ecx
sete bl
lea ebx, [ebx*8 + 8]
call fcn.0049c8e0
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.0049d000
add esp, 0x1c
jmp 0x4bdbc2
mov edx, dword [ebp + 0x5f0]
test dword [edx + 0x40], 0x40000
je 0x4be069
push edi
push ebp
call fcn.004ab390
add esp, 8
test eax, eax
jne 0x4be06b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret